Datasheet

Section 16 I
2
C Bus Interface 2 (IIC2) (Option)
Rev.7.00 Mar. 18, 2009 page 799 of 1136
REJ09B0109-0700
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),
and clear TDRE to 0.
[3] Wait for ICDRT empty.
[4] Set the last byte of the transmit data, and clear TDRE to 0.
[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