Datasheet
M16C/6S Group Serial I/O
R01DS0201EJ0502 Rev.5.02 page 95 of 203
Dec 25, 2012
Figure 1.13.3. U0TB to U2TB Register, U0RB to U2RB Register, and U0BRG to U2BRG Register
b7
(b15)
(b15)
Symbol Address After reset
U0RB 03A7
16
-03A6
16
Indeterminate
U1RB 03AF
16
-03AE
16
Indeterminate
U2RB 037F
16
-037E
16
Indeterminate
b7 b0
(b8)
b7 b0
UARTi receive buffer register (i=0 to 2)
Function
Bit name
Bit
symbol
0 : No framing error
1 : Framing error found
0 : No parity error
1 : Parity error found
0 : No error
1 : Error found
Note 1: When the UiMR register’s SMD2 to SMD0 bits = “000
2
” (serial I/O disabled) or the UiC1 register’s RE bit = “0” (reception disabled), all of the SUM,
PER, FER and OER bits are set to “0” (no error). The SUM bit is set to “0” (no error) when all of the PER, FER and OER bits = “0” (no error).
Also, the PER and FER bits are set to “0” by reading the lower byte of the UiRB register.
Note 2: The ABT bit is set to “0” by writing “0” in a program. (Writing “1” has no effect.)
OER
FER
PER
SUM
Overrun error flag (Note 1)
Framing error flag (Note 1)
Parity error flag (Note 1)
Error sum flag (Note 1)
0 : No overrun error
1 : Overrun error found
Nothing is assigned.
In an attempt to write to these bits, write “0”. The value, if read, turns out to be “0”.
Receive data (D
7
to D
0
)
ABT
Arbitration lost detecting
flag (Note 2)
0 : Not detected
1 : Detected
UARTi bit rate generator (i=0 to 2)(Notes 1, 2)
b0
Symbol Address After reset
U0BRG 03A1
16
Indeterminate
U1BRG 03A9
16
Indeterminate
U2BRG 0379
16
Indeterminate
Function
Assuming that set value = n, UiBRG divides the count source
by n + 1
00
16
to FF
16
Setting range
Note 1: Write to this register while serial I/O is neither transmitting nor receiving.
Note 2: Use MOV instruction to write to this register.
b7 b0
(b8)
b7 b0
UARTi transmit buffer register (i=0 to 2)(Note)
Function
Transmit data
Nothing is assigned.
In an attempt to write to these bits, write “0”. The value, if read, turns out to be indeterminate.
Symbol Address After reset
U0TB 03A3
16
-03A2
16
Indeterminate
U1TB 03AB
16
-03AA
16
Indeterminate
U2TB 037B
16
-037A
16
Indeterminate
RW
Note: Use MOV instruction to write to this register.
WO
RW
RW
RO
RO
RO
RO
RO
(b7-b0)
(b10-b9)
RW
WO
Receive data (D
8
)
RO
(b8)