R01UH0136EJ0210 Rev.2.10
Page 508 of 800
Jul 31, 2012
M16C/64A Group
23. Serial Interface UARTi (i = 0 to 2, 5 to 7)
Notes:
1.
This table does not describe a procedure.
2.
Set bits not listed above to 0 when writing to the registers in SIM mode.
Table 23.25
Registers Used and Settings in SIM Mode
(1)
Register
Bit
Function
U2TB
(2)
0 to 7
Set transmit data.
U2RB
(2)
0 to 7
Received data can be read.
OER, FER, PER, SUM
Error flag
U2BRG
0 to 7
Set a bit rate.
U2MR
SMD2 to SMD0
Set to 101b.
CKDIR
Select the internal clock or external clock.
STPS
Set to 0.
PRY
Set to 1 in direct format or 0 in inverted format.
PRYE
Set to 1.
IOPOL
Set to 0.
U2C0
CLK0, CLK1
Select the count source for the U2BRG register.
CRS
Disabled because CRD is 1.
TXEPT
Transmit register empty flag
CRD
Set to 1.
NCH
Set to 0.
CKPOL
Set to 0.
UFORM
Set to 0 in direct format or 1 in inverted format.
U2C1
TE
Set to 1 to enable transmission.
TI
Transmit buffer empty flag
RE
Set to 1 to enable reception.
RI
Reception complete flag
U2IRS
Set to 1.
U2RRM
Set to 0.
U2LCH
Set to 0 in direct format or 1 in inverted format.
U2ERE
Set to 1.
U2SMR
(2)
0 to 3
Set to 0.
U2SMR2
0 to 7
Set to 0.
U2SMR3
0 to 7
Set to 0.
U2SMR4
0 to 7
Set to 0.
Содержание M16C/60 Series
Страница 853: ...M16C 64A Group R01UH0136EJ0210...