??? 10/24/05 18:06 Read: times |
#102844 - nothing much except the SCON 0x52 which Responding to: ???'s previous message |
i am in try to receive a byte from pc on microcontroller at89c51, but SBUF always have a value "0" whatever i send from pc. i am using following code. please let me know what is wrong with this code
nothing much except the SCON 0x52 which definitely should be 0x50. This, however should not make SBUF a permanent zero. If it was the baudrate, your SBUF would be wrong, not zero so hardware: P0=SBUF P0 will be zero if you do not have pull-up resistors on the pins is the MAX232 correctly connected, is the caps the right size, if tantalums is the polarity right. are you connecting correctly to the PC? if you have a DB9 on your board, do you use the correct cable "crossed" or "straight". This, of course can do the same if reversed w/o a DB9 Erik |
Topic | Author | Date |
problem in serial communication | 01/01/70 00:00 | |
Missing info | 01/01/70 00:00 | |
Missing TI = 0; | 01/01/70 00:00 | |
Why TI = 0??? | 01/01/70 00:00 | |
Better practice! | 01/01/70 00:00 | |
nothing much except the SCON 0x52 which![]() | 01/01/70 00:00 |