| ??? 08/21/99 20:43 Read: times |
#673 - RE: from 8051 to PC |
Everything is possible my friend :)
Hardware: first of all u will need interface between PC and 8051. A good soloution is MAX233 (or max232 u will need some external caps). Connect pins P3.0(receive), P3.1(transmit) of 8051 to MAX233 to change TTL to RS232 voltage levels. Software: initialize SCON use mode 1 8-bit UART (baud rate variable) to transmit data from uC to ur PC use the instruction clr ti mov sbuf,A (@r0,..) jnb ti,$ ;wait ..when ti=1 ; transmit buffer is empty clr ti .... Vasilis |
| Topic | Author | Date |
| from 8051 to PC | 01/01/70 00:00 | |
RE: from 8051 to PC | 01/01/70 00:00 |



