| ??? 04/11/00 19:35 Read: times |
#2180 - Serial port on 8051 |
I'm trying to get the serial port on my 8051 to work but the code seems to freeze at the point where the check for TI high is. If I leave the port config as it defaults to and just mov a value directly to sbuf without checking to see if ti is set, the port works.
the code i have been using is as follows: For 19200 baud in mode 1 mov 02h,#ffh mov scon,#0eh mov tmod,#20h mov th1,#f0h mov pcon,#80h clr ti mov sbuf,02h nop jnb ti,$(line above) sjmp (rest of programme) please help. I'm desperate! Chris |
| Topic | Author | Date |
| Serial port on 8051 | 01/01/70 00:00 | |
| RE: Serial port on 8051 | 01/01/70 00:00 | |
RE: Serial port on 8051 | 01/01/70 00:00 |



