NEC 78K0/KD1 Series User Manual page 307

8-bit single-chip microcontrollers
Table of Contents

Advertisement

(3) Example of setting baud rate
Baud Rate
f
= 10.0 MHz
X
[bps]
TPS63 to
k
TPS60
600
6H
130
1200
5H
130
2400
4H
130
4800
3H
130
9600
2H
130
10400
2H
120
19200
1H
130
31250
1H
80
38400
0H
130
76800
0H
65
115200
0H
43
153600
0H
33
230400
0H
22
Caution The maximum permissible frequency of the base clock (f
Remark TPS63 to TPS60: Bits 3 to 0 of clock selection register 6 (CKSR6) (setting of base clock (f
k:
f
:
X
ERR:
CHAPTER 14 SERIAL INTERFACE UART6
Table 14-4. Set Data of Baud Rate Generator
Calculated
ERR[%] TPS63 to
Value
TPS60
601
0.16
6H
1202
0.16
5H
2404
0.16
4H
4808
0.16
3H
9615
0.16
2H
10417
0.16
2H
19231
0.16
1H
31250
0.00
0H
38462
0.16
0H
76923
0.16
0H
116279
0.94
0H
−1.36
151515
0H
−1.36
227272
0H
Value set by MDL67 to MDL60 bits of baud rate generator control register 6
(BRGC6) (k = 8, 9, 10, ..., 255)
X1 input clock oscillation frequency
Baud rate error
Preliminary User's Manual U16315EJ1V0UD
f
= 8.38 MHz
X
k
Calculated
ERR[%] TPS63 to
Value
TPS60
109
601
0.11
109
1201
0.11
109
2403
0.11
109
4805
0.11
109
9610
0.11
101
10371
0.28
109
19200
0.11
134
31268
0.06
109
38440
0.11
−0.80
55
76182
36
116388
1.03
27
155185
1.03
18
232777
1.03
) is 25 MHz.
XCLK
f
= 4.19 MHz
X
k
Calculated
ERR[%]
Value
5H
109
601
0.11
4H
109
1201
0.11
3H
109
2403
0.11
2H
109
4805
0.11
1H
109
9610
0.11
−0.28
1H
101
10475
0H
109
19220
0.11
0H
67
31268
0.06
−0.80
0H
55
38090
0H
27
77593
1.03
0H
18
116389
1.03
−2.58
0H
14
149643
0H
9
232778
1.03
))
XCLK
307

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents