| ??? 01/07/03 14:41 Read: times |
#35844 - Serial Port Initialisation code |
Hi,
I was wondering if you could verify if the following code segment will intialise the 8051 serial port to 8N1 format at 9600 baud correctly. Cheers. MOV TH1, #0FDH ; reload value for the counter to give 9600 baud MOV SCON, #40H ; set serial port mode to 8 bit UART MOV TMOD, #20H ; set counter mode to 8-bit autoreload mode SETB TR1 ; start timer |
| Topic | Author | Date |
| Serial Port Initialisation code | 01/01/70 00:00 | |
| Serial Port Initialisation code | 01/01/70 00:00 | |
| RE: Serial Port Initialisation code | 01/01/70 00:00 | |
RE: Serial Port Initialisation code | 01/01/70 00:00 |



