NEC 78K0S/KA1+ User Manual page 210

8-bit single-chip microcontrollers
Hide thumbs Also See for 78K0S/KA1+:
Table of Contents

Advertisement

(3) Example of setting baud rate
Baud Rate
f
= 10.0 MHz
XP
[bps]
TPS63 to
k
Calculated
TPS60
600
6H
130
1200
5H
130
2400
4H
130
4800
3H
130
9600
2H
130
10400
1H
240
19200
1H
130
31250
0H
160
38400
0H
130
76800
0H
65
115200
0H
43
153600
0H
33
230400
0H
22
Remark TPS63 to TPS60: Bits 3 to 0 of clock selection register 6 (CKSR6) (setting of base clock (f
k:
f
:
XP
ERR:
210
CHAPTER 11 SERIAL INTERFACE UART6
Table 11-4. Set Data of Baud Rate Generator
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
1H
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)
Oscillation frequency of clock to peripheral hardware
Baud rate error
User's Manual U16898EJ3V0UD
f
= 8.38 MHz
XP
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
201
10423
0.22
109
19220
0.11
134
31268
0.06
109
38440
0.11
−0.80
55
76182
36
116389
1.03
27
155185
1.03
18
232778
1.03
f
= 4.19 MHz
XP
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
1H
101
10475
−0.28
0H
109
19220
0.11
0H
67
31268
0.06
−0.80
0H
55
38090
0H
27
77693
1.03
0H
18
116389
1.03
−2.58
0H
14
149643
0H
9
232778
1.03
))
XCLK6

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents