Datasheet
Section 17 I
2
C Bus Interface (IIC)
Rev. 3.00 Sep. 28, 2009 Page 509 of 910
REJ09B0350-0300
Channel Register Name Abbreviation R/W
Initial
Value
Address
Data Bus
Width
I
2
C bus extended control register_2 ICXR_2 R/W H'00 H'FE8C 8
I
2
C bus control register_2 ICCR_2 R/W H'01 H'FE88 8
I
2
C bus status register_2 ICSR_2 R/W H'00 H'FE89 8
I
2
C bus data register_2 ICDR_2 R/W ⎯ H'FE8E 8
Second slave address register_2 SARX_2 R/W H'01 H'FE8E 8
I
2
C bus mode register_2 ICMR_2 R/W H'00 H'FE8F 8
Channel 2
Slave address register_2 SAR_2 R/W H'00 H'FE8F 8
I
2
C bus control initialization
register_2
ICRES_2 R/W H'0F H'FE8A 8
Note: * Upper address: when RELOCATE = 0
Lower address: when RELOCATE = 1
17.3.1 I
2
C Bus Data Register (ICDR)
ICDR is an 8-bit readable/writable register that is used as a transmit data register when
transmitting and a receive data register when receiving. ICDR is internally divided into a shift
register (ICDRS), receive buffer (ICDRR), and transmit buffer (ICDRT). Data transfers among
these three registers are performed automatically in accordance with changes in the bus state, and
they affect the status of internal flags such as ICDRE and ICDRF.
In master transmit mode with the I
2
C bus format, writing transmit data to ICDR should be
performed after start condition detection. When the start condition is detected, previous write data
is ignored. In slave transmit mode, writing should be performed after the slave addresses match
and the TRS bit is automatically changed to 1.
In transmit mode (TRS = 1), transmit data can be written to ICDRT when the ICDRE flag is 1.
After the transmit data has been written to ICDRT, the ICDRE flag is cleared to 0. Then, when
ICDRS becomes empty on completion of the previous transmission, the data are automatically
transferred from ICDRT to ICDRS and the ICDRE flag is set to 1. As long as ICDRS contains
data to be transmitted or data being transmitted, data written to ICDRT are retained there.
In receive mode (TRS = 0), data is not transferred from ICDRT to ICDRS. Thus, do not write to
ICDRT when in this mode.
In receive mode (TRS = 0), data received in ICDRR can be read when the ICDRF flag is 1. After
the data has been read from ICDRR, the ICDRF flag is cleared to 0. Each time ICDRS contains
data on completion of one round of reception, the data is automatically transferred from ICDRS to