CHAPTER 14 SERIAL INTERFACE UART0
Preliminary User’s Manual U17260EJ3V1UD
333
(3) Baud rate generator control register 0 (BRGC0)
This register selects the base clock of serial interface UART0 and the division value of the 5-bit counter.
BRGC0 can be set by an 8-bit memory manipulation instruction.
Reset signal generation sets this register to 1FH.
Figure 14-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
Base clock (f
XCLK0
) selection
TPS01
TPS00
f
PRS
= 2 MHz
f
PRS
= 5 MHz
f
PRS
= 10 MHz f
PRS
= 20 MHz
0
0
TM50
output
Note
0
1
f
PRS
/2
1 MHz
2.5 MHz
5 MHz
10 MHz
1
0
f
PRS
/2
3
250 kHz
625 kHz
1.25 MHz
2.5 MHz
1
1
f
PRS
/2
5
62.5 kHz
156.25 kHz
312.5 kHz
625 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
XCLK0
/8
0 1 0 0 1
9
f
XCLK0
/9
0 1 0 1 0
10
f
XCLK0
/10
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
1 1 0 1 0
26
f
XCLK0
/26
1 1 0 1 1
27
f
XCLK0
/27
1 1 1 0 0
28
f
XCLK0
/28
1 1 1 0 1
29
f
XCLK0
/29
1 1 1 1 0
30
f
XCLK0
/30
1 1 1 1 1
31
f
XCLK0
/31
Note
Note the following points when selecting the TM50 output as the base clock.
•
Mode in which the count clock is cleared and started upon a match of TM50 and CR50 (TMC506 = 0)
Start the operation of 8-bit timer/event counter 50 first and then enable the timer F/F inversion operation
(TMC501 = 1).
•
PWM mode (TMC506 = 1)
Start the operation of 8-bit timer/event counter 50 first and then set the count clock to make the duty =
50%.
It is not necessary to enable the TO50 pin as a timer output pin in any mode.