Datasheet

Section 16 I2C Bus Interface 2 (IIC2)
Page 984 of 1384 R01UH0310EJ0500 Rev. 5.00
Sep 25, 2012
H8S/2426, H8S/2426R, H8S/2424 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 16.16 Sample Flowchart for Slave Transmit Mode