CMT2380F17
Rev0.1 | 215/347
www.cmostek.com
18.7.4.2 Using Timer 2 as the Baud Rate Generator
When Timer 2 is used as the baud
rate generator (either TCLK or RCLK in T2CON is ‘1’), the baud rate is
as follows.
2
SMOD2 X (SMOD1 + 1)
x F
SYSCLK
32 x (65536
–
(RCAP2H, RCAP2L))
Mode 1, 3 Baud Rate =
; T2X12=0
or =
;
T2X12=1
2
SMOD2 X (SMOD1 + 1)
x F
SYSCLK
16
x (65536
–
(RCAP2H, RCAP2L))
Note:
If SMOD2=0, the baud rate formula is as same as standard 8051. If SMOD2=1, there is an enhanced function
for baud rate setting. Table 18
–21 defines the Baud Rate setting with SMOD2 factor in Timer 2 baud rate
generator.
Table 18-21. SMOD2 application criteria in Mode 1 & 3 using Timer 2
SMOD2
SMOD1
Baud Rate
Note
Recommended Max.
Receive Error (%)
0
X
Default Baud Rate
Standard function
3%
1
0
Double Baud Rate
Enhanced function
3%
1
1
Double Baud Rate
X2
Enhanced function
2%
Note: When Timer 2 in Double Baud Rate x2 (SMOD1=1 & SMOD2=1) mode, the RCAP2H & RPAC2L can
not equal to 65534 & 65535.
Table 18
–22 ~ Table 18–37 list various commonly used baud rates and how they can be obtained from
Timer 2 in its Baud-Rate Generator Mode.
Table 18-22. Timer 2 Generated Commonly Used Baud Rates @ FSYSCLK=11.0592MHz
Baud Rate
[RCAP2H, RCAP2L]
, the Reload Value
T2X12=0 & SMOD2=0
T2X12=1 & SMOD2=0
SMOD1=0
SMOD1=1
Error
SMOD1=0
SMOD1=1
Error
1200
65248
65248
0.0%
64960
64960
0.0%
2400
65392
65392
0.0%
65248
65248
0.0%
4800
65464
65464
0.0%
65392
65392
0.0%
9600
65500
65500
0.0%
65464
65464
0.0%
14400
65512
65512
0.0%
65488
65488
0.0%
19200
65518
65518
0.0%
65500
65500
0.0%
28800
65524
65524
0.0%
65512
65512
0.0%
38400
65527
65527
0.0%
65518
65518
0.0%
57600
65530
65530
0.0%
65524
65524
0.0%
115200
65533
65533
0.0%
65530
65530
0.0%
230400
--
--
--
65533
65533
0.0%
Summary of Contents for CMT2380F17
Page 27: ...CMT2380F17 Rev0 1 27 347 www cmostek com 1 25 Phase Noise...
Page 177: ...CMT2380F17 Rev0 1 177 347 www cmostek com Figure 17 3 PCA Interrupt System...
Page 246: ...CMT2380F17 Rev0 1 246 347 www cmostek com SnMIPS S0MI S1MI 1 P3 3 P4 7...