9
2
3
f
o
5
0
2
,
2
0
.
g
u
A
0
.
1
.
v
e
R
0
1
0
-
7
8
1
0
B
9
0
J
E
R
Page 129
16. Serial I/O
p
u
o
r
G
0
8
/
C
6
1
M
Figure 16.5 Serial I/O-related registers (1)
b7
UARTi bit rate generator (Note 1, 2)
b0
Symbol
Address
When reset
U0BRG
036116
Indeterminate
U1BRG
036916
Indeterminate
U2BRG
033916
Indeterminate
U3BRG
032916
Indeterminate
U4BRG
02F916
Indeterminate
Function
Assuming that set value = n, BRGi divides the count source by
n + 1
0016 to FF16
Values that can be set
W
R
b7
b0
(b15)
(b8)
b7
b0
UARTi transmit buffer register (Note)
Function
Transmit data
Nothing is assigned.
When write, set "0". When read, their contents are indeterminate.
Symbol
Address
When reset
U0TB
036316, 036216
Indeterminate
U1TB
036B16, 036A16
Indeterminate
U2TB
033B16, 033A16
Indeterminate
U3TB
032B16, 032A16
Indeterminate
U4TB
02FB16, 02FA16
Indeterminate
W
R
(b15)
Symbol
Address
When reset
U0RB
036716, 036616
Indeterminate
U1RB
036F16, 036E16
Indeterminate
U2RB
033F16, 033E16
Indeterminate
U3RB
032F16, 032E16
Indeterminate
U4RB
Indeterminate
b7
b0
(b8)
b7
b0
UARTi receive buffer register
OER
FER
SUM
Function
(During UART mode)
Function
(During clock synchronous
serial I/O mode)
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: Bits 15 through 12 are set to “0” when the serial I/O mode select bit (bits 2 to 0 at addresses
036016, 036816, 033816, 032816 and 02F816) are set to “0002” or the receive enable bit is set to
“0”.
(Bit 15 is set to “0” when bits 14 to 12 all are set to “0”.) Bits 14 and 13 are also set to “0”
when the lower byte of the UARTi receive buffer register (addresses 036616, 036E16, 033E16,
032E16 and 02FE16) is read out.
Note 2: Arbitration lost detecting flag is allocated to U2RB, U3RB and U4RB and nothing but “0” may
be written. Nothing is assigned in bit 11 of U0RB and U1RB. When write, set "0". When read,
the value of this bit is “0”.
Invalid
PER
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
0 : No overrun error
1 : Overrun error found
Nothing is assigned.
When write, set "0". When read, the value of these bits is “0”.
Receive data
W
R
Receive data
ABT
Arbitration lost detecting
flag (Note 2)
Invalid
0 : Not detected
1 : Detected
Note 1: Use MOV instruction to write to this register.
Note 2: Write a value to this register while transmit/receive halts.
Note: Use MOV instruction to write to this register.