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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
05/10/02 09:39
Read: times


 
#22801 - RE: Text Format for Terminal Apps on 8051
The tutorial example I have used states the following:

SCON = 0x50; /* SCON: mode 1, 8-bit UART, enable rcvr */
TMOD |= 0x20; /* TMOD: timer 1, mode 2, 8-bit reload */
TH1 = 253; /* TH1: reload value for 1200 baud @ 16MHz */
TR1 = 1; /* TR1: timer 1 run */
TI = 1; /* TI: set TI to send first char of UART */

So I've been configuring my Terminal client with a 1200 baud, 8 data bits, no parity, 1 stop bit, and different configurations of flow control don't seem to affect it.

Now, the TH1 = 253 is curious because it states "1200 baud @ 16 MHz" and my crystal is 11 MHz... I have a book that says FDh (253) is 9600 & 11 MHz.. so I'm not sure.

Thanks again for your help!

-Ryan

List of 5 messages in thread
TopicAuthorDate
Text Format for Terminal Apps on 8051            01/01/70 00:00      
RE: Text Format for Terminal Apps on 8051            01/01/70 00:00      
RE: Text Format for Terminal Apps on 8051            01/01/70 00:00      
RE: Text Format for Terminal Apps on 8051            01/01/70 00:00      
RE: Text Format for Terminal Apps on 8051            01/01/70 00:00      

Back to Subject List