
Rev.2.10 Apr 14, 2006 page 186 of 378
REJ09B0124-0210
M16C/6N Group (M16C/6NK, M16C/6NM) 15. Serial Interface
Table 15.15 Registers to Be Used and Settings in Special Mode 2
Register Bit Function
UiTB
(1)
0 to 7 Set transmit data
UiRB
(1)
0 to 7 Receive data can be read
OER Overrun error flag
UiBRG 0 to 7 Set a bit rate
UiMR
(1)
SMD2 to SMD0 Set to 001b
CKDIR Set this bit to 0 for master mode or 1 for slave mode
IOPOL Set to 0
UiC0 CLK1 to CLK0 Select the count source for the UiBRG register
CRS Invalid because the CRD bit = 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 Set to 0
UiC1 TE Set this bit to 1 to enable transmission
TI Transmit buffer empty flag
RE Set this bit to 1 to enable reception
RI Reception complete flag
U2IRS
(2)
Select the UART2 transmit interrupt source
U2RRM
(2)
, Set to 0
UiLCH, UiERE
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, U1IRS Select the UART0 and UART1 transmit interrupt source
U0RRM, U1RRM Set to 0
CLKMD0 Invalid because the CLKMD1 bit = 0
CLKMD1, RCSP, 7 Set to 0
i = 0 to 2
NOTES:
1. Not all register bits are described above. Set those bits to 0 when writing to the registers in Special
Mode 2.
2. Set bits 4 and 5 in registers U0C1 and U1C1 to 0. Bits U0IRS, U1IRS, U0RRM, and U1RRM are in the
UCON register.
Comentários a estes Manuais