629
I
2
C Bus (IIC)
Chapter 18
Preliminary User’s Manual U17566EE1V2UM00
Figure 18-17
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).
Ye
s
Ye
s
Ye
s
Ye
s
Ye
s
Ye
s
Ye
s
Ye
s
No
No
No
No
No
No
No
No
S
TART
Comm
u
nic
a
tion mode?
Comm
u
nic
a
tion mode?
Comm
u
nic
a
tion mode?
Re
a
dy?
Re
a
dy?
Re
a
d d
a
t
a
Cle
a
r re
a
dy fl
a
g
Cle
a
r re
a
dy fl
a
g
Comm
u
nic
a
tion
direction fl
a
g = 1?
WTIMn = 1
WRELn = 1
ACKEn = 0
WRELn = 1
ACKEn = WTIMn = 1
ACKDn = 1?
WRELn = 1
Cle
a
r comm
u
nic
a
tion mode fl
a
g
D
a
t
a
proce
ss
ing
D
a
t
a
proce
ss
ing
Tr
a
n
s
fer completed?
IICn
←
d
a
t
a
IICCn
←
XXH
IICEn = 1
IICCLn
←
XXH
IICFn
←
XXH
S
election of tr
a
n
s
fer fl
a
g
IICFn regi
s
ter
s
etting
electronic components distributor