Datasheet

Section 17 I
2
C Bus Interface 2 (IIC2)
R01UH0309EJ0500 Rev. 5.00 Page 1055 of 1408
Sep 24, 2012
H8S/2456, H8S/2456R, H8S/2454 Group
17.7 Usage Notes
1. Issue (retransmit) the start/stop conditions after the fall of the ninth clock is confirmed.
Check SCLO in the I
2
C control register B (IICRB) to confirm the fall of the ninth clock.
When the start/stop conditions are issued (retransmitted) at the specific timing under the
following condition (i) or (ii), such conditions may not be output successfully. This does not
occur in other cases.
(i) When the rising of SCL falls behind the time specified in section 17.6, Bit Synchronous
Circuit, by the load of the SCL bus (load capacitance or pull-up resistance)
(ii) When the bit synchronous circuit is activated by extending the low period of eighth and
ninth clocks, that is driven by the slave device
2. Control WAIT in the I
2
C bus mode register (ICMR) to be set to 0.
When WAIT is set to 1, and SCL is driven low for two or more transfer clocks by the slave
device at the eighth and ninth clocks, the high period of ninth clock may be shortened. This
does not occur in other cases.
3. In slave receive mode, even if a slave address does not match, received data is stored in
ICDRR, and then the RDRF bit in ICSR is set. To confirm whether or not the addresses
matched, see the AAS bit in the I2C bus status register (ICSR). (See figure 17.17, Sample
Flowchart for Slave Receive Mode.)
4. If 0 is written to the ICE bit in ICCRA or 1 is written to the IICRST bit in ICCRB in one of the
following four states, the BBSY bit in ICCRB and STOP bit in ICSR are undefined.
(1) This module is the bus master of the I2C in master transmission mode (MST = 1 and TRS
= 1 in ICCRA).
(2) This module is the bus master of the I2C in master reception mode (MST = 1 and TRS = 0
in ICCRA).
(3) This module is transmitting data in slave transmission mode (MST = 0 and TRS = 1 in
ICCRA).
(4) This module is transmitting an acknowledgment in slave reception mode (MST = 0 and
TRS = 0 in ICCRA).
The undefined state of BBSY in ICCRB can be exited in one of the following ways:
Input the start condition (SCL = high and SDA falling) to set BBSY to 1.
Input the stop condition (SCL = high and SDA rising) to clear BBSY to 0.
Write 1 to BBSY and 0 to SCP in ICCRB to issue the start condition with SCL = high and
SDA = high in master transmission mode. BBSY is set to 1 when the start condition (SCL
= high and SDA falling) is output.