CHAPTER 13 SERIAL INTERFACE UART0
Preliminary User’s Manual U16315EJ1V0UD
252
(3) Baud rate generator control register 0 (BRGC0)
This register selects the base clock of serial interface UART0 and controls the baud rate.
BRGC0 can be set by an 8-bit memory manipulation instruction.
RESET input sets this register to 1FH.
Figure 13-4. Format of Baud Rate Generator Control Register 0 (BRGC0)
Address: FF71H After reset: 1FH R/W
Symbol
7
6
5
4
3
2
1
0
BRGC0
TPS01
TPS00
0
MDL04
MDL03
MDL02
MDL01
MDL00
TPS01
TPS00
Base clock (f
XCLK
) selection
0
0
TM50 output (TO50)
0
1
f
X
/2 (5 MHz)
1
0
f
X
/2
3
(1.25 MHz)
1
1
f
X
/2
5
(312.5 kHz)
MDL04
MDL03
MDL02
MDL01
MDL00
k
Selection of 5-bit counter
output clock
0
0
×
×
×
×
Setting prohibited
0
1
0
0
0
8
f
XCLK
/8
0
1
0
0
1
9
f
XCLK
/9
0
1
0
1
0
10
f
XCLK
/10
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
1
1
0
1
0
26
f
XCLK
/26
1
1
0
1
1
27
f
XCLK
/27
1
1
1
0
0
28
f
XCLK
/28
1
1
1
1
0
30
f
XCLK
/30
1
1
1
1
1
31
f
XCLK
/31
Cautions 1. Make sure that bit 6 (TXE0) and bit 5 (RXE0) of the ASIM0 register = 0 when rewriting the
MDL04 to MDL00 bits.
2. The baud rate value is the output clock of the 5-bit counter divided by 2.
Remarks 1.
f
XCLK
: Frequency of base clock (Clock) selected by the TPS01 and TPS00 bits
2.
f
X
:
X1 input clock oscillation frequency
3.
k:
Value set by the MDL04 to MDL00 bits (k = 8, 9, 10, ..., 31)
4.
×
:
Don’t care
5.
Figures in parentheses apply to operation at f
X
= 10 MHz