Datasheet

Section 17 I
2
C Bus Interface 2 (IIC2)
R01UH0309EJ0500 Rev. 5.00 Page 1051 of 1408
Sep 24, 2012
H8S/2456, H8S/2456R, H8S/2454 Group
TDRE=1 ?
Yes
Yes
No
Slave transmit mode
Clear AAS in ICSR
Write transmit data
in ICDRT
Read TDRE in ICSR
End of
transmission?
Write transmit data
in ICDRT
Read TEND in ICSR
Clear TEND in ICSR
Set TRS=0 in ICCRA
Dummy read ICDRR
Clear TDRE in ICSR
End
[1] Clear the flag AAS.
[2] Set transmit data for ICDRT (except for the last data).
[3] Wait for ICDRT empty.
[4] Set the last byte of the transmit data.
[5] Wait the transmission end of the last byte.
[6] Clear the flag TEND.
[7] Set slave receive mode.
[8] Dummy read ICDRR to release the SCL line.
[9] Clear the flag TDRE.
No
No
Yes
TEND=1 ?
[1]
[2]
[3]
[4]
[5]
[6]
[7]
[8]
[9]
Figure 17.16 Sample Flowchart for Slave Transmit Mode