English
Language : 

M16C29 Datasheet, PDF (231/499 Pages) Renesas Technology Corp – RENESAS MCU M16C FAMILY / M16C/Tiny SERIES
M16C/29 Group
14. Serial I/O
P13
P12
P72(CLK2)
P71(RxD2)
P70(TxD2)
MCU
(Master)
P93
P72(CLK2)
P71(RxD2)
P70(TxD2)
MCU
(Slave)
P93
P72(CLK2)
P71(RxD2)
P70(TxD2)
MCU
(Slave)
Figure 14.26 Serial Bus Communication Control Example (UART2)
Table 14.16 Registers to Be Used and Settings in Special Mode 2
Register
U2TB(1)
U2RB(1)
Bit
0 to 7
0 to 7
Function
Set transmission data
Reception data can be read
OER
Overrun error flag
U2BRG
U2MR(1)
0 to 7
SMD2 to SMD0
Set bit rate
Set to 0012
CKDIR
Set this bit to 0 for master mode or 1 for slave mode
IOPOL
Set to 0
U2C0
CLK1, CLK0
Select the count source for the U2BRG register
CRS
Invalid because CRD is set to 1
TXEPT
Transmit register empty flag
CRD
Set to 1
NCH
Select TxD2 pin output format
CKPOL
Clock phases can be set in combination with the CKPH bit in the U2SMR3 register
UFORM
Select the LSB first or MSB first
U2C1
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
Select UART2 transmit interrupt cause
U2RRM,
Set to 0
U2LCH, U2ERE
U2SMR 0 to 7
Set to 0
U2SMR2 0 to 7
Set to 0
U2SMR3 CKPH
Clock phases can be set in combination with the CKPOL bit in the U2C0 register
NODC
Set to 0
0, 2, 4 to 7
Set to 0
U2SMR4 0 to 7
Set to 0
NOTE:
1.Not all bits in the registers are described above. Set those bits to 0 when writing to the registers in Special Mode 2.
Rev. 1.12 Mar.30, 2007 page 207 of 458
REJ09B0101-0112