NEC V850ES/KE1+ User Manual page 523

32-bit single-chip microcontrollers
Table of Contents

Advertisement

The following shows an example of the processing of the slave device by an INTIIC0 interrupt (it is assumed that
no extension codes are used here). During an INTIIC0 interrupt, 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 and wait 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
bus remains in the wait status.
Remark
<1> to <3> in the above correspond to <1> to <3> in Figure 16-19 Slave Operation Flowchart (2).
<R>
INTIIC0 occurred
Set ready flag
Interrupt servicing completed
Figure 16-19. Slave Operation Flowchart (2)
Yes
SPD0 = 1?
No
Yes
STD0 = 1?
No
<3>
2
CHAPTER 16 I
C BUS
<1>
<2>
COI0 = 1?
Yes
Communication direction flag ← TRC0
Set communication mode flag
Clear ready flag
User's Manual U16896EJ2V0UD
No
Clear communication
direction flag, ready flag,
and communication mode flag
2
C0
523

Advertisement

Table of Contents
loading

This manual is also suitable for:

?pd70f3302?pd703302?pd70f3302y?pd703302y

Table of Contents