|
M16C30P_07 Datasheet, PDF (164/317 Pages) Renesas Technology Corp – 16-BIT SINGLE-CHIP MICROCOMPUTER M16C FAMILY / M16C/30 SERIES | |||
|
◁ |
M16C/30P Group
15. Serial Interface
Table 15.11 Registers to Be Used and Settings in I2C Mode (1)
Register
Bit
UiTB
UiRB (3)
UiBRG
UiMR (3)
UiC0
0 to 7
0 to 7
8
ABT
OER
0 to 7
SMD2 to SMD0
CKDIR
IOPOL
CLK1, CLK0
UiC1
UiSMR
CRS
TXEPT
CRD (4)
NCH
CKPOL
UFORM
TE
TI
RE
RI
U2IRS (1)
U2RRM (1),
UiLCH, UiERE
IICM
ABC
UiSMR2
BBS
3 to 7
IICM2
CSC
SWC
ALS
STAC
SWC2
SDHI
7
Function
Master
Slave
Set transmission data
Set transmission data
Reception data can be read
Reception data can be read
ACK or NACK is set in this bit
ACK or NACK is set in this bit
Arbitration lost detection flag
Invalid
Overrun error flag
Overrun error flag
Set a bit rate
Invalid
Set to â010bâ
Set to â010bâ
Set to â0â
Set to â1â
Set to â0â
Set to â0â
Select the count source for the UiBRG
register
Invalid
Invalid because CRD = 1
Invalid because CRD = 1
Transmit buffer empty flag
Transmit buffer empty flag
Set to â1â
Set to â1â
Set to â1â (2)
Set to â1â (2)
Set to â0â
Set to â0â
Set to â1â
Set to â1â
Set this bit to â1â to enable transmission Set this bit to â1â to enable transmission
Transmit buffer empty flag
Transmit buffer empty flag
Set this bit to â1â to enable reception
Set this bit to â1â to enable reception
Reception complete flag
Reception complete flag
Invalid
Invalid
Set to â0â
Set to â0â
Set to â1â
Set to â1â
Select the timing at which arbitration-lost Invalid
is detected
Bus busy flag
Bus busy flag
Set to â0â
Set to â0â
See Table 15.13 I2C Mode Functions See Table 15.13 I2C Mode Functions
Set this bit to â1â to enable clock
synchronization
Set to â0â
Set this bit to â1â to have SCLi output fixed Set this bit to â1â to have SCLi output fixed
to âLâ at the falling edge of the 9th bit of to âLâ at the falling edge of the 9th bit of
clock
clock
Set this bit to â1â to have SDAi output Set to â0â
stopped when arbitration-lost is detected
Set to â0â
Set this bit to â1â to initialize UARTi at
start condition detection
Set this bit to â1â to have SCLi output
forcibly pulled low
Set this bit to â1â to have SCLi output
forcibly pulled low
Set this bit to â1â to disable SDAi output Set this bit to â1â to disable SDAi output
Set to â0â
Set to â0â
NOTES:
1. Set the bit 4 and bit 5 in the U0C1 and U1C1 register to â0â. The U0IRS, U1IRS, U0RRM and U1RRM bits are
in the UCON register.
2. TXD2 pin is N channel open-drain output. No NCH bit in the U2C0 register is assigned. When write, set to â0â.
3. Not all register bits are described above. Set those bits to â0â when writing to the registers in I2C mode.
4. When using UART1 in I2C mode and enabling the CTS/RTS separate function of UART0, set the CRD bit in the
U1C0 register to â0â (CTS/RTS enable) and the CRS bit to â0â (CTS input).
i=0 to 2
Rev.1.22 Mar 29, 2007 Page 148 of 291
REJ09B0179-0122
|
▷ |