NEC 78K0 Series User Manual page 448

8-bit single-chip microcontrollers
Hide thumbs Also See for 78K0 Series:
Table of Contents

Advertisement

An example of the processing procedure of the slave with the INTIIC0 interrupt is explained below (processing
is performed assuming that no extension code is used). The INTIIC0 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
does not match.
processing returns from the interrupt (the ready flag is cleared).
<3> For data transmit/receive, only the ready flag is set. Processing returns from the interrupt with the I
remaining in the wait state.
Remark
<1> to <3> above correspond to <1> to <3> in Figure 17-26 Slave Operation Flowchart (2).
INTIIC0 generated
SPD0 = 1?
No
STD0 = 1?
No
Set ready flag
Interrupt servicing completed
448
CHAPTER 17 SERIAL INTERFACE IIC0
If the address matches, the communication mode is set, wait is cancelled, and
Figure 17-26. Slave Operation Flowchart (2)
<1>
Yes
<2>
Yes
COI0 = 1?
<3>
Communication direction flag
← TRC0
Set communication mode flag
Clear ready flag
Preliminary User's Manual U17260EJ3V1UD
No
Yes
Clear communication direction
communication mode flag
2
C bus
flag, ready flag, and

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents