M16C/62P Group (M16C/62P, M16C/62PT)
Table 17. 19 Registers to Be Used and Settings in SIM Mode
Register
Bit
(1)
U2TB
0 to 7
(1)
U2RB
0 to 7
OER,FER,PER,SUM Error flag
U2BRG
0 to 7
U2MR
SMD2 to SMD0
CKDIR
STPS
PRY
PRYE
IOPOL
U2C0
CLK1, CLK0
CRS
TXEPT
CRD
NCH
CKPOL
UFORM
U2C1
TE
TI
RE
RI
U2IRS
U2RRM
U2LCH
U2ERE
(1)
U2SMR
0 to 3
U2SMR2
0 to 7
U2SMR3
0 to 7
U2SMR4
0 to 7
NOTES:
1. Not all register bits are described above. Set those bits to "0" when writing to the registers in SIM mode.
R
e
. v
2
3 .
0
S
e
p
0
, 1
2
0
0
4
R
E
J
0
9
B
0
1
8
5
0 -
2
3
0
Z
Set transmission data
Reception data can be read
Set a transfer rate
Set to "101b"
Select the internal clock or external clock
Set to "0"
Set this bit to "1" for direct format or "0" for inverse format
Set to "1"
Set to "0"
Select the count source for the U2BRG register
Invalid because CRD = 1
Transmit register empty flag
Set to "1"
Set to "0"
Set to "0"
Set this bit to "0" for direct format or "1" for inverse format
Set this bit to "1" to enable transmission
Transmit buffer empty flag
Set this bit to "1" to enable reception
Reception complete flag
Set to "1"
Set to "0"
Set this bit to "0" for direct format or "1" for inverse format
Set to "1"
Set to "0"
Set to "0"
Set to "0"
Set to "0"
page 198
f o
3
6
4
Function
17. Serial I/O