CHAPTER 10 SERIAL INTERFACE FUNCTION
User’s Manual U15195EJ5V0UD
433
(b) Baud rate generator control register 0 (BRGC0)
The BRGC0 register is an 8-bit register that controls the baud rate (serial transfer speed) of UART0.
This register can be read or written in 8-bit units.
Caution If the MDL7 to MDL0 bits are to be overwritten, the TXE0 and RXE0 bits should be set
to 0 in the ASIM0 register first.
7 6 5 4 3 2 1 0
Address
After
reset
BRGC0 MDL7 MDL6 MDL5 MDL4 MDL3 MDL2 MDL1 MDL0
FFFFFA07H FFH
Bit position
Bit name
Function
Specifies the 8-bit counter’s division value.
MDL7 MDL6 MDL5 MDL4 MDL3 MDL2 MDL1 MDL0
Division
value (k)
Serial clock
0 0 0 0 0
×
×
×
–
Setting
prohibited
0 0 0 0 1 0 0 0
8
f
CLK
/8
0 0 0 0 1 0 0 1
9
f
CLK
/9
0 0 0 0 1 0 1 0
10
f
CLK
/10
1 1 1 1 1 0 1 0
250
f
CLK
/250
1 1 1 1 1 0 1 1
251
f
CLK
/251
1 1 1 1 1 1 0 0
252
f
CLK
/252
1 1 1 1 1 1 0 1
253
f
CLK
/253
1 1 1 1 1 1 1 0
254
f
CLK
/254
1 1 1 1 1 1 1 1
255
f
CLK
/255
7 to 0
MDL7 to
MDL0
Remarks 1.
f
CLK
: Frequency [Hz] of base clock selected by TPS3 to TPS0 bits of CKSR0 register
2.
k: Value set by MDL7 to MDL0 bits (k = 8, 9, 10, ..., 255)
3.
The baud rate is the output clock for the 8-bit counter divided by 2
4.
×
: Don’t care
...
…
…
…
…
…
…
…
…
…