RL78/G15 CHAPTER 13 SERIAL INTERFACE IICA
R01UH0959EJ0110 Rev.1.10 Page 563 of 765
Mar 7, 2023
An example of the processing procedure of the slave with the INTIICA0 interrupt is explained below (processing is
performed assuming that no extension code is used). The INTIICA0 interrupt checks the status, and the following
operations are performed.
<1> Communication is stopped if the stop condition is issued.
<2> If the start condition is issued, the address is checked and communication is completed if the address is not
matched.
If the address is matched, the communication mode is set, the wait state is released, and processing returns from
the interrupt (the ready flag is cleared).
<3> For data transmission/reception, only the ready flag is set. Processing returns from the interrupt while the I
2
C bus
remains in the wait state.
Remark <1> to <3> above correspond to <1> to <3> in Figure 13-30 Slave Operation Procedure (2).
Figure 13-30. Slave Operation Procedure (2)
Yes
SPD0 = 1?
No
No
Set the ready flag
INTIICA0 generated
STD0 = 1?
No
Yes
Yes
COI0 = 1?
Communication direction flag
← TRC0
Set the communication mode flag
Clear the ready flag
Interrupt servicing completed
Clear the communication
direction flag, ready flag, and
communication mode flag
<1>
<2>
<3>