NEC V850ES/F 3-L Series User Manual page 517

32-bit single-chip microcontroller
Table of Contents

Advertisement

2
I
C Bus (IIC)
IICCLn ← XXH
IICFn ← XXH
IICCn ← XXH
IICEn = 1
No
Communication mode?
Communication
direction flag = 1?
WTIMn = 1
Data processing
IICn ← data
No
Communication mode?
Clear ready flag
ACKDn = 1?
WRELn = 1
Clear communication mode flag
Figure 17-17
START
Selection of transfer flag
IICFn register setting
Yes
No
Yes
Yes
No
Ready?
Yes
No
Yes
Slave operation flowchart (1)
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).
User's Manual U18743EE1V2UM00
ACKEn = WTIMn = 1
WRELn = 1
Communication mode?
Yes
No
Ready?
Yes
Read data
Clear ready flag
Data processing
No
Transfer completed?
Yes
ACKEn = 0
WRELn = 1
Chapter 17
No
517

Advertisement

Table of Contents
loading

Table of Contents