|
M16C6NK Datasheet, PDF (207/404 Pages) Renesas Technology Corp – 16-BIT SINGLE-CHIP MICROCOMPUTER M16C FAMILY / M16C/60 SERIES | |||
|
◁ |
Under development
This document is under development and its contents are subject to change.
M16C/6N Group (M16C/6NK, M16C/6NM)
15. Serial Interface
15.1.5 Special Mode 3 (IE Mode)
In this mode, one bit of IEBus is approximated with one byte of UART mode waveform.
Table 15.16 lists the registers used in IE mode and the register values set. Figure 15.31 shows the
functions of bus collision detect function related bits.
If the TXDi pin (i = 0 to 2) output level and RXDi pin input level do not match, a UARTi bus collision detect
interrupt request is generated.
Use the IFSR06 and IFSR07 bits in the IFSR0 register to enable the UART0/UART1 bus collision detect function.
Table 15.16 Registers to Be Used and Settings in IE Mode
Register
Bit
Function
UiTB
UiRB (1)
0 to 8
0 to 8
Set transmission data
Reception data can be read
OER,FER,PER,SUM Error flag
UiBRG 0 to 7
Set a transfer rate
UiMR
SMD2 to SMD0
Set to â110bâ
CKDIR
Select the internal clock or external clock
STPS
Set to â0â
PRY
Invalid because the PRYE bit = 0
PRYE
Set to â0â
IOPOL
Select the TXD/RXD input/output polarity
UiC0
CLK1, 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 mode
CKPOL
Set to â0â
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
U2IRS (2)
U2RRM (2),
Reception complete flag
Select the source of UART2 transmit interrupt
Set to â0â
UiLCH, UiERE
UiSMR 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
UiSMR2 0 to 7
Set to â0â
UiSMR3 0 to 7
Set to â0â
UiSMR4 0 to 7
Set to â0â
IFSR0
IFSR06, IFSR07
Set to â1â
UCON
U0IRS, U1IRS
Select the source of UART0/UART1 transmit interrupt
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 IE mode.
2. Set the bit 4 and bit 5 in the U0C1 and U1C1 registers to â0â. The U0IRS, U1IRS, U0RRM and U1RRM
bits are in the UCON register.
Rev.2.00 Nov 28, 2005 page 189 of 378
REJ09B0124-0200
|
▷ |