NEC 78K0 Series User Manual page 344

8-bit single-chip microcontrollers
Hide thumbs Also See for 78K0 Series:
Table of Contents

Advertisement

(3) Example of setting baud rate
Baud
f
= 2.0 MHz
PRS
Rate
k
TPS01,
Calculated
[bps]
TPS00
Value
4800
2
26
4808
9600
2
13
9615
10400
2
12
10417
19200
1
26
19231
24000
1
21
23810
31250
1
16
31250
33660
1
15
33333
38400
1
13
38462
56000
1
9
55556
62500
1
8
62500
76800
115200
153600
Remark TPS01, TPS00: Bits 7 and 6 of baud rate generator control register 0 (BRGC0) (setting of base clock
k:
f
:
PRS
ERR:
344
CHAPTER 14 SERIAL INTERFACE UART0
Table 14-5. Set Data of Baud Rate Generator
f
= 5.0 MHz
PRS
ERR
k
TPS01,
Calculated
[%]
TPS00
Value
0.16
3
16
4883
0.16
3
8
9766
0.16
2
30
10417
0.16
2
16
19531
−0.79
2
13
24038
0
2
10
31250
−0.79
2
9
34722
0.16
2
8
39063
−0.79
1
22
56818
0
1
20
62500
1
16
78125
113636 −1.36
1
11
1
8
156250
(f
))
XCLK0
Value set by the MDL04 to MDL00 bits of BRGC0 (k = 8, 9, 10, ..., 31)
Peripheral hardware clock frequency
Baud rate error
Preliminary User's Manual U17260EJ3V1UD
f
= 10.0 MHz
PRS
ERR
k
TPS01,
Calculated
[%]
TPS00
Value
1.73
1.73
3
16
9766
0.16
3
15
10417
1.73
3
8
19531
0.16
2
26
24038
0
2
20
31250
3.34
2
18
34722
1.73
2
16
39063
1.46
2
11
56818
0
2
10
62500
1.73
2
8
78125
113636 −1.36
1
22
1.73
1
16
156250
f
= 20.0 MHz
PRS
ERR
k
TPS01,
Calculated
[%]
TPS00
Value
1.73
0.16
3
30
10417
1.73
3
16
19531
0.16
3
13
24038
0
3
10
31250
3.34
3
9
34722
1.73
3
8
39063
1.46
2
22
56818
0
2
20
62500
1.73
2
16
78125
113636 −1.36
2
11
1.73
2
8
156250
ERR
[%]
0.16
1.73
0.16
0
3.34
1.73
1.46
0
1.73
1.73

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents