Hi guys! i am new here, this being my first thread. i have a basic doubt. once i have written a program for the 8051 microcontroller, how does this code go to the program memory of the 8051? i mean the code has to go to the microcontroller through one of the I/O ports (out of the 4 existing I/O ports), then how does it go to the program memory and not to the data memory? how does the microcontroller know whether it is a program code or normal data? answer to this question would help me in making my project. waiting for your replies. thanks.