Bit Rate - Renesas R8C Series User Manual

16-bit single-chip microcomputer
Hide thumbs Also See for R8C Series:
Table of Contents

Advertisement

R8C/1A Group, R8C/1B Group
15.2.2

Bit Rate

In UART mode, the bit rate is the frequency divided by the UiBRG (i = 0 or 1) register.
UART Mode
• Internal clock selected
UiBRG register setting value =
• External clock selected
UiBRG register setting value =
i = 0 or 1
Figure 15.12
Calculation Formula of UiBRG (i = 0 or 1) Register Setting Value
Table 15.7
Bit Rate Setting Example in UART Mode (Internal Clock Selected)
BRG
Bit Rate
Count
(bps)
Source
1200
2400
4800
9600
14400
19200
28800
31250
38400
51200
i = 0 or 1
Rev.1.30
Dec 08, 2006
REJ09B0252-0130
Fj: Count source frequency of the UiBRG register (f1, f8, or f32)
fEXT : Count source frequency of the UiBRG register (external clock)
System Clock = 20 MHz
UiBRG
Actual Time
Setting Value
f8
129(81h)
f8
64(40h)
f8
32(20h)
f1
129(81h)
f1
86(56h)
f1
64(40h)
f1
42(2Ah)
f1
39(27h)
f1
32(20h)
f1
23(17h)
Page 167 of 315
fj
- 1
Bit Rate × 16
fEXT
- 1
Bit Rate × 16
Error (%)
(bps)
1201.92
0.16
2403.85
0.16
4734.85
-1.36
9615.38
0.16
14367.82
-0.22
19230.77
0.16
29069.77
0.94
31250.00
0.00
37878.79
-1.36
52083.33
1.73
15. Serial Interface
System Clock = 8 MHz
UiBRG
Actual
Setting
Time (bps)
Value
51(33h)
1201.92
25(19h)
2403.85
12(0Ch)
4807.69
51(33h)
9615.38
34(22h)
14285.71
25(19h)
19230.77
16(10h)
29411.76
15(0Fh)
31250.00
12(0Ch)
38461.54
9(09h)
50000.00
Error (%)
0.16
0.16
0.16
0.16
-0.79
0.16
2.12
0.00
0.16
-2.34

Advertisement

Table of Contents
loading

Table of Contents