625
I
2
C Bus (IIC)
Chapter 18
Preliminary User’s Manual U17566EE1V2UM00
Figure 18-14
Master operation flowchart (1)
IICCn
←
××
H
IICEn =
S
PIEn = WTIMn
=
S
PTn = 1
IICCLn
←
××
H
S
elect tr
a
n
s
fer clock
S
TTn = 1
S
TART
ACKEn = 0
No
No
No
No
No
No
No
No
No
Ye
s
Ye
s
Ye
s
Ye
s
Ye
s
Ye
s
Ye
s
INTIICn = 1?
WTIMn = 0
ACKEn = 1
INTIICn = 1?
INTIICn = 1?
TRCn = 1?
ACKDn = 1?
M
S
T
S
n = 1?
Ye
s
No
INTIICn = 1?
INTIICn = 1?
ACKDn = 1?
WRELn = 1
S
t
a
rt reception
Ye
s
(
s
top condition detection)
W
a
it
W
a
it time i
s
s
ec
u
red
b
y
s
oftw
a
re (
s
ee
Table 17-6
)
Ye
s
(
s
t
a
rt condition gener
a
tion)
Comm
u
nic
a
tion re
s
erv
a
tion
S
t
a
rt IICn write tr
a
n
s
fer
S
top condition detection,
s
t
a
rt condition gener
a
tion
b
y
comm
u
nic
a
tion re
s
erv
a
tion
Gener
a
te
s
top condition
(no
s
l
a
ve with m
a
tching
a
ddre
ss
)
No (receive)
Addre
ss
tr
a
n
s
fer
completion
Ye
s
(tr
a
n
s
mit)
End
S
t
a
rt IICn write tr
a
n
s
fer
D
a
t
a
proce
ss
ing
Tr
a
n
s
fer completed?
Gener
a
te
s
top condition
S
PTn = 1
(re
s
t
a
rt)
End
Tr
a
n
s
fer completed?
D
a
t
a
proce
ss
ing
electronic components distributor