|
M16C30P_07 Datasheet, PDF (177/317 Pages) Renesas Technology Corp – 16-BIT SINGLE-CHIP MICROCOMPUTER M16C FAMILY / M16C/30 SERIES | |||
|
◁ |
M16C/30P Group
15. Serial Interface
15.1.5 Special Mode 3 (IE mode)(UART2)
In this mode, one bit of IEBus is approximated with one byte of UART mode waveform.
Table 15.17 lists the Registers to Be Used and Settings in IE Mode. Figure 15.32 shows the Bus Collision
Detect Function-Related BitsBus Collision Detect Function-Related Bits.
If the TXD2 pin output level and RXD2 pin input level do not match, a UART2 bus collision detect interrupt
request is generated.
Table 15.17 Registers to Be Used and Settings in IE Mode
Register
U2TB
U2RB (2)
U2BRG
U2MR
U2C0
U2C1
U2SMR
U2SMR2
U2SMR3
U2SMR4
Bit
Function
0 to 8
Set transmission data
0 to 8
Reception data can be read
OER, FER, PER, SUM Error flag
0 to 7
Set a bit rate
SMD2 to SMD0
Set to â110bâ
CKDIR
Select the internal clock or external clock
STPS
Set to â0â
PRY
Invalid because PRYE=0
PRYE
Set to â0â
IOPOL
Select the TXD/RXD input/output polarity
CLK1, CLK0
Select the count source for the U2BRG register
CRS
Invalid because CRD=1
TXEPT
Transmit register empty flag
CRD
Set to â1â
NCH
Select TXD2 pin output mode (1)
CKPOL
Set to â0â
UFORM
Set to â0â
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 the source of UART2 transmit interrupt
U2RRM,
U2LCH, U2ERE
Set to â0â
0 to 3, 7
Set to â0â
ABSCS
Select the sampling timing at which to detect a bus collision
ACSE
Set this bit to â1â to use the auto clear function of transmit enable bit
SSS
Select the transmit start condition
0 to 7
Set to â0â
0 to 7
Set to â0â
0 to 7
Set to â0â
NOTES:
1. TXD2 pin is N channel open-drain output. No NCH bit in the U2C0 register is assigned. When write, set to â0â.
2. Not all register bits are described above. Set those bits to â0â when writing to the registers in IE mode.
Rev.1.22 Mar 29, 2007 Page 161 of 291
REJ09B0179-0122
|
▷ |