R01UH0136EJ0210 Rev.2.10
Page 503 of 800
Jul 31, 2012
M16C/64A Group
23. Serial Interface UARTi (i = 0 to 2, 5 to 7)
Table 23.22
Registers Used and Settings in Special Mode 2
(1)
Register
Bits
Function
PCLKR
PCLK1
Select the count source for the UiBRG register.
UiTB
0 to 7
Set transmission data.
8
- (does not need to be set) If necessary, set to 0.
UiRB
0 to 7
Reception data can be read.
OER
Overrun error flag
8, 11, 13 to 15
When read, the read value is undefined.
UiBRG
0 to 7
Set bit rate.
UiMR
SMD2 to SMD0
Set to 001b.
CKDIR
Set to 0.
4 to 6
Set to 0.
IOPOL
Set to 0.
UiC0
CLK0, CLK1
Select the count source for the UiBRG register.
CRS
Disabled because CRD is 1
TXEPT
Transmit register empty flag
CRD
Set to 1.
NCH
Select TXDi pin output format.
CKPOL
Clock phases can be set in combination with the CKPH bit in the
UiSMR3 register.
UFORM
Select the LSB first or MSB first.
UiC1
TE
Set to 1 to enable transmission/reception.
TI
Transmit buffer empty flag
RE
Set to 1 to enable reception.
RI
Reception complete flag
UjIRS
Select UARTj transmit interrupt source.
UjRRM
Set to 1 to use continuous receive mode.
UiLCH
Set to 1 to use inverted data logic.
UiERE
Set to 0.
UiSMR
0 to 7
Set to 0.
UiSMR2
0 to 7
Set to 0.
UiSMR3
CKPH
Clock phases can be set in combination with the CKPOL bit in the
UiC0 register.
NODC
Set to 0.
0, 2, 4 to 7
Set to 0.
UiSMR4
0 to 7
Set to 0.
UCON
U0IRS
Select UART0 transmit interrupt source.
U1IRS
Select UART1 transmit interrupt source.
U0RRM
Set to 1 to use continuous receive mode.
U1RRM
Set to 1 to use continuous receive mode.
CLKMD0
Disabled because CLKMD1 is 0
CLKMD1, RCSP, 7 Set to 0.
i = 0 to 2, 5 to 7
;
j = 2, 5 to 7
Notes:
1.
This table does not describe a procedure.
2.
The TXD2 pin is N-channel open drain output. Nothing is assigned to the NCH bit in the U2C0
register. Only write 0 to this bit.
Содержание M16C/60 Series
Страница 853: ...M16C 64A Group R01UH0136EJ0210...