Hi
I am new to microcontroller, can anyone give me transmit & receive program to upload & download data between PC & 89c51 microcontroller.
Thanks
Centiago
If you can, I would ecourage you to build/buy a development board with RS-232 port ( https://www.pjrc.com/tech/8051/board3/schematic.html ) which includes some very usefull additional features such as for example SRAM ..
Using a monitor program you will be able to upload/download contains of this SRAM, run programs dowloaded to SRAM and many more ..
Check out this link: https://www.pjrc.com/tech/8051/paulmon2.html
try first the parallel port instead of the serial just to get used to the interfacing as parallel is easier to understand and in assembly is easier to get data, serial is more complex in acquiring data as you have to wait that buffer is full and respond to the interrupt, more work
enjoy
RS232 interface can generate interrupts and it needs few wires, but it will cost more because of a external RS232 level -shifter (such as max232) is needed.
parallel port need almost no externel components, but it is diffcult to handle the realtime applications because of no interrupt will be generated if you use the parallel port.
You can do this by using parallel port as well as serial port.
But asyou are new to Microcontroller then use Parallel port for your convenience, and usr At89C52 rather than AT89C51, because of memeory size because you are interfacing the data transfer from the PC.
first try to understand at what protocal does the keyboard works then by using the 8051 core i think it is possible to communicate the micro controller with the computer keyboard