Figure 15.19 Sample Flowchart For Slave Transmit Mode - Renesas H8 Series Hardware Manual

16-bit single-chip microcomputer
Hide thumbs Also See for H8 Series:
Table of Contents

Advertisement

Slave transmit mode
Clear AAS in ICSR
Write transmit data
in ICDRT
Read TDRE in ICSR
No
TDRE=1 ?
Yes
No
Last
byte?
Yes
Write transmit data
in ICDRT
Read TEND in ICSR
No
TEND=1 ?
Yes
Clear TEND in ICSR
Clear TRS in ICCR1 to 0
Dummy read ICDRR
Clear TDRE in ICSR
End

Figure 15.19 Sample Flowchart for Slave Transmit Mode

[1] Clear the AAS flag.
[1]
[2] Set transmit data for ICDRT (except for the last data).
[3] Wait for ICDRT empty.
[2]
[4] Set the last byte of transmit data.
[5] Wait for the last byte to be transmitted.
[3]
[6] Clear the TEND flag .
[7] Set slave receive mode.
[8] Dummy-read ICDRR to release the SCL line.
[4]
[9] Clear the TDRE flag.
[5]
[6]
[7]
[8]
[9]
2
Section 15 I
C Bus Interface 2 (IIC2)
Rev. 1.00 Aug. 28, 2006 Page 271 of 400
REJ09B0268-0100

Advertisement

Table of Contents
loading

Table of Contents