C8051F340/1/2/3/4/5/6/7/8/9/A/B/C/D
Table 18.1. Timer Settings for Standard Baud Rates Using the Internal Oscillator
Target
Actual
Baud
Baud
Rate (bps)
Rate (bps)
230400
230769
115200
115385
57600
57692
28800
28846
14400
14423
9600
9615
2400
2404
1200
1202
230400
230769
115200
115385
57600
57692
28800
28846
14400
14423
9600
9615
2400
2404
1200
1202
230400
230769
115200
115385
57600
57692
28800
28846
14400
14388
9600
9615
2400
2404
X = Don't care
*Note: SCA1-SCA0 and T1M define the Timer Clock Source. Bit definitions for these values can be found in
Section 21.1
.
212
Baud
Oscillator
Rate Error
Divide
Factor
0.16%
52
0.16%
104
0.16%
208
0.16%
416
0.16%
832
0.16%
1248
0.16%
4992
0.16%
9984
0.16%
104
0.16%
208
0.16%
416
0.16%
832
0.16%
1664
0.16%
2496
0.16%
9984
0.16%
19968
0.16%
208
0.16%
416
0.16%
832
0.16%
1664
0.08%
3336
0.16%
4992
0.16%
19968
Rev. 1.3
Timer Clock
SCA1-SCA0
Source
(pre-scale
select*
SYSCLK
XX
SYSCLK
XX
SYSCLK
XX
SYSCLK
XX
SYSCLK / 4
01
SYSCLK / 4
01
SYSCLK / 12
00
SYSCLK / 48
10
SYSCLK
XX
SYSCLK
XX
SYSCLK
XX
SYSCLK / 4
01
SYSCLK / 4
01
SYSCLK / 12
00
SYSCLK / 48
10
SYSCLK / 48
10
SYSCLK
XX
SYSCLK
XX
SYSCLK / 4
01
SYSCLK / 4
01
SYSCLK / 12
00
SYSCLK / 12
00
SYSCLK / 48
10
T1M*
Timer 1
Reload
Value (hex)
1
0xE6
1
0xCC
1
0x98
1
0x30
0
0x98
0
0x64
0
0x30
0
0x98
1
0xCC
1
0x98
1
0x30
0
0x98
0
0x30
0
0x98
0
0x98
0
0x30
1
0x98
1
0x30
0
0x98
0
0x30
0
0x75
0
0x30
0
0x30
Need help?
Do you have a question about the C8051F341 and is the answer not in the manual?