Rev. 1.0, 02/00, page 505 of 1141
End
Set TRS=0 in ICCR
Clear IRIC flag in ICCR
Set ACKB=1 in ICSR
Set TRS=1 in ICCR
Read ICDR
Read IRIC flag in ICCR
Clear IRIC flag in ICCR
Set ACKB=0 in ICSR
Write BBSY=0 and
SCP=0 in ICCR
Last receive?
IRIC=1?
No
No
Yes
Yes
Read ICDR
Read ICDR
Read IRIC flag in ICCR
Clear IRIC flag in ICCR
Clear IRIC flag in ICCR
IRIC=1?
No
Yes
[3]
[1]
[2]
[5]
[6]
[4]
[7]
[8]
[9]
[10 ]
Master receive mode
Select receive mode.
Set acknowledge data.
Start receiving. The first read is a dummy
read.
Wait for 1 byte to be received.
Set acknowledge data for the last receive.
Start the last receive.
Wait for 1 byte to be received.
Select transmit mode.
Read the last receive data (if ICDR is read
without selecting transmit mode, receive
operations will resume).
Generate a stop condition.
[1]
[2]
[3]
[4]
[5]
[6]
[7]
[8]
[9]
[10]
Figure 23.15 Flowchart for Master Receive Mode (Example)