2
Section 17 I
C Bus Interface (IIC)
and TRS = 0 in ICCR
Set ACKB = 0 in ICSR
Read IRIC in ICCR
No
Read AAS and ADZ in ICSR
Read TRS in ICCR
Last reception?
Clear IRIC in ICCR
Read IRIC in ICCR
No
Set ACKB = 1 in ICSR
Clear IRIC in ICCR
Read IRIC in ICCR
No
Clear IRIC in ICCR
Figure 17.20 Sample Flowchart for Slave Receive Mode
Rev. 3.00 Jan 25, 2006 page 538 of 872
REJ09B0286-0300
Start
Initialize
Set MST = 0
IRIC = 1?
Yes
No
AAS = 1
General call address processing
and ADZ = 0?
Yes
No
TRS = 0?
Slave transmit mode
Yes
Yes
No
Read ICDR
IRIC = 1?
Yes
Read ICDR
IRIC = 1?
Yes
Read ICDR
End
[1]
[2]
* Description omitted
[3]
[1] Select slave receive mode.
[2] Wait for the first byte to be received (slave
address).
[3] Start receiving. The first read is a dummy read.
[4]
[4] Wait for the reception to end.
[5] Set acknowledge data for the last reception.
[6] Start the last reception.
[7] Wait for the reception to end.
[8] Read the last receive data.
[5]
[6]
[7]
[8]