What exactly happens when i load th e program on the microcontroller?

i am using a parallel port to program my controller(atmega16) with the help of bascom avr... 2,4,5,11 pins of the port are connected to the MOSI, RESET,CLOCK and MISO respectively.. 18-25 are ground... can someone pls tell me how the data is being transfered and how does the programmer detects the chip?
1 answer 1