R01UH0092EJ0110 Rev.1.10
Page 473 of 807
Jul 31, 2012
M16C/64C Group
23. Serial Interface UARTi (i = 0 to 2, 5 to 7)
Table 23.8
Registers Used and Settings in Clock Synchronous Serial I/O Mode
(1)
Register
Bits
Function
PCLKR
PCLK1
Select the count source for the UiBRG register.
PCLKSTP1
PCKSTP1A
Set to 0 when using f1.
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.
8, 11, 13 to 15
When read, the read value is undefined.
OER
Overrun error flag
UiBRG
0 to 7
Set bit rate.
UiMR
SMD2 to SMD0
Set to 001b.
CKDIR
Select internal clock or external clock.
4 to 6
Set to 0.
IOPOL
Set to 0.
UiC0
CLK1 to CLK0
Select the count source for the UiBRG register.
CRS
If
CTS
or
RTS
is used, select which function to use.
TXEPT
Transmit register empty flag
CRD
Enable or disable the
CTS
or
RTS
function.
NCH
Select TXDi pin output mode.
(2)
CKPOL
Select the transmit/receive clock polarity.
UFORM
Select 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 source of UARTj transmit interrupt.
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
0 to 2
Set to 0.
NODC
Select clock output mode.
4 to 7
Set to 0.
UiSMR4
0 to 7
Set to 0.
UCON
U0IRS
Select source of UART0 transmit interrupt.
U1IRS
Select source of UART1 transmit interrupt.
U0RRM
Set to 1 to use continuous receive mode.
U1RRM
Set to 1 to use continuous receive mode.
CLKMD0
Select the transmit/receive clock output pin when CLKMD1 is 1.
CLKMD1
Set to 1 to output UART1 transmit/receive clock from two pins.
RCSP
Set to 1 to separate the
CTS0
/
RTS
signal of UART0.
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. If
necessary, set it to 0.
Summary of Contents for M16C Series
Page 846: ...M16C 64C Group R01UH0092EJ0110...