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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
11/01/02 15:32
Read: times


 
#31839 - RE: 8052 @ 115200 @ 11,0592 MHz
Frans:
Note: Use crystal=11.0592 MHz

Make sure to use Time 2 as baud rate generator:
TCLK=1
RCLK=1
C/T2=0
TR2=1

If you are running the timer 2 in 6 clock mode then the RCAP2 value is determined by:
RCAP2=65536-(11059200/(16*115200))

RCAP2=65530=0xFFFA
RCAP2H=0xFF
RCAP2L=0xFA


If you are running the timer 2 in 12 clock mode then the RCAP2 value is determined by:
RCAP2=65536-(11059200/(32*115200))

RCAP2=65533=0xFFFD
RCAP2H=0xFF
RCAP2L=0xFD



You should be able to nicely support the 115200 baud rate to PC.

Good Luck
Mike Karas





List of 5 messages in thread
TopicAuthorDate
8052 @ 115200 @ 11,0592 MHz            01/01/70 00:00      
RE: 8052 @ 115200 @ 11,0592 MHz            01/01/70 00:00      
RE: 8052 @ 115200 @ 11,0592 MHz            01/01/70 00:00      
RE: 8052 @ 115200 @ 11,0592 MHz            01/01/70 00:00      
RE: 8052 @ 115200 @ 11,0592 MHz            01/01/70 00:00      

Back to Subject List