Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
01/07/03 14:41
Read: times


 
#35843 - 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


List of 4 messages in thread
TopicAuthorDate
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      

Back to Subject List