Datasheet

Section 15 I
2
C Bus Interface (IIC)
Rev. 6.00 Mar. 24, 2006 Page 263 of 412
REJ09B0142-0600
Master receive operation
Clear IRIC in ICCR
Yes
No
Yes
Yes
No
Yes
No
[1] Select receive mode.
[3] Wait for 1 byte to be received.
[4] Clear IRIC.
(to end the wait insertion)
[6] Read the receive data.
[9] Clear IRIC.
(to end the wait insertion)
[2] Start receiving. The first read
is a dummy read. After reading
ICDR, please clear IRIC immediately.
[7] Clear IRIC.
[10] Set acknowledge data for
the last reception.
[11] Clear IRIC.
(to end the wait insertion)
[12] Wait for 1 byte to be received.
[13] Clear wait mode.
Read receive data.
Clear IRIC.
(Note: After setting WAIT = 0,
IRIC should be cleared to 0.)
[14] Stop condition issuance.
[8] Wait for the next data to be
received.
[5] Wait for 1 byte to be received.
Read IRIC in ICCR
Read ICDR
Clear IRIC in ICCR
IRIC = 1?
IRIC = 1?
Yes
Last receive?
Last receive?
Set ACKB = 1 in ICSR
Set TRS = 1 in ICCR
Clear IRIC in ICCR
Read IRIC in ICCR
Set Wait = 0 in ICMR
Read ICDR
Clear IRIC in ICCR
Write BBSY = 0 and
SCP = 0 in ICCR
End
Set TRS = 0 in ICCR
Set ACKB = 0 in ICSR
Read IRIC in ICCR
IRIC = 1?
Yes
No
No
Read IRIC in ICCR
Clear IRIC in ICCR
No
IRIC = 1?
Set WAIT = 1 in ICMR
Clear IRIC in ICCR
Read ICDR
Figure 15.14 Sample Flowchart for Master Receive Mode