Datasheet

Table Of Contents
Data Sheet ADuC832
Rev. B | Page 79 of 92
After the values for DIV and T3FD are calculated, the actual
baud rate can be calculated using the following formula:
)643(2
2
+×
×
=
FDT
f
RateBaudActual
DIV
CORE
For example, to obtain a baud rate of 115,200 while operating at
16.78 MHz,
DIV = log(11,059,200/(32 × 115,200))/log(2) = 1.58 = 1
T3FD = (2 × 11,059,200)/(21 × 115,200) − 64 = 32 = 20H
Therefore, the actual baud rate is 114,912 bits/sec.
Table 44. Commonly Used Baud Rates Using Timer 3
Ideal Baud CD DIV T3CON T3FD % Error
230,400 0 1 81H 09H 0.25
115,200
0
2
82H
09H
0.25
115,200 1 1 81H 09H 0.25
115,200 2 0 80H 09H 0.25
57,600
0
3
83H
09H
0.25
57,600 1 2 82H 09H 0.25
57,600 2 1 81H 09H 0.25
57,600 3 0 80H 09H 0.25
38,400 0 3 83H 2DH 0.2
38,400 1 2 82H 2DH 0.2
38,400 2 1 81H 2DH 0.2
38,400 3 0 80H 2DH 0.2
19,200 0 4 84H 2DH 0.2
19,200 1 3 83H 2DH 0.2
19,200 2 2 82H 2DH 0.2
19,200
3
1
81H
2DH
0.2
19,200 4 0 80H 2DH 0.2
9600 0 5 85H 2DH 0.2
9600 1 4 84H 2DH 0.2
9600 2 3 83H 2DH 0.2
9600 3 2 82H 2DH 0.2
9600 4 1 81H 2DH 0.2
9600 5 0 80H 2DH 0.2