Datasheet
V850ES/JG3-H, V850ES/JH3-H CHAPTER 19 I
2
C BUS
R01UH0042EJ0500 Rev.5.00 Page 884 of 1513
Aug 12, 2011
The following shows an example of the processing of the slave device by an INTIICn interrupt (it is assumed that no
extension codes are used here). During INTIICn interrupt servicing, the status is confirmed and the following steps are
executed.
<1> When a stop condition is detected, communication is terminated.
<2> When a start condition is detected, the address is confirmed. If the address does not match, communication is
terminated. If the address matches, the communication mode is set, the wait state is released, and operation
returns from the interrupt (the ready flag is cleared).
<3> For data transmission/reception, when the ready flag is set, operation returns from the interrupt while the I
2
C0n
bus remains in the wait status.
Remark <1> to <3> above correspond to <1> to <3> in Figure 19-22 Slave Operation Flowchart (2).
Figure 19-22. Slave Operation Flowchart (2)
Yes
Yes
Yes
No
No
No
INTIICn occurred
Set ready flag
Interrupt servicing completed
SPDn = 1?
STDn = 1?
COIn = 1?
Clear communication
direction flag, ready flag,
and communication mode flag
<1>
<2>
<3>
Communication direction flag ← TRCn
Set communication mode flag
Clear ready flag