Specifications
RX62N Group, RX621 Group RIIC Multi-Master Communication
R01AN0630EJ0100 Rev.1.00 Page 15 of 23
Sep 27, 2011
3.7.9 RDRF Interrupt Handling
Figure 10 shows the flowchart for RDRF interrupt handling.
RDRF Interrupt Handler
Data remaining = 0?
(Reception
complete?)
No
Yes
Request issuing a stop
condition
Remaining
data = 1?
Set up WAIT
Set up NACK
Yes
No
Read receive data
Read receive data
Increment master mode
reception counter
Yes
Master reception
count = 2?
No
Master reception
count = 1?
Set up WAIT
Set up NACK
No
Yes
Initial data?
Read receive data
(dummy read)
Read receive data
Yes
No
return
No
Remaining
data = 2?
Set up WAIT
Read receive data
Yes
No
Yes
Has
the reception count been
exceeded?
Yes
No
Set communication
in progress flag
Increment slave mode
reception counter
Last receive data read
(Clear the SCL = low state
and issue a stop condition)
Master mode
communication in
progress?
Figure 10 RDRF Interrupt Handling