![background image](http://html1.mh-extra.com/html/nec/v850e-dx3/v850e-dx3_preliminary-users-manual_4115960626.webp)
626
Chapter 18
I
2
C Bus (IIC)
Preliminary User’s Manual U17566EE1V2UM00
18.15.2
Master operation 2
The following shows the flowchart for master communication when the
communication reservation function is disabled (IICRSVn bit = 1) and the
master operation is started without detecting a stop condition
(STCENn bit = 1).
Figure 18-15
Master operation flowchart (2)
No (receive)
IICCLn
←
××
H
IICFn
←
××
H
IICCn
←
××
H
IICEn =
S
PIEn = WTIMn = 1
S
TTn = 1
S
TART
No
Ye
s
IICB
S
Yn = 0?
No
Ye
s
WTIMn = 0
ACKEn = 1
WRELn = 1
S
t
a
rt reception
ACKEn = 0
S
PTn = 1
Gener
a
te
s
top condition
No
Ye
s
Ye
s
(tr
a
n
s
mit)
INTIICn = 1?
No
Ye
s
Ye
s
INTIICn = 1?
No
Ye
s
INTIICn = 1?
No
Ye
s
ACKDn = 1?
No
Ye
s
No
ACKDn = 1?
TRCn = 1?
S
TCFn = 0?
End
Tr
a
n
s
fer clock
s
election
IICFn regi
s
ter
s
etting
IICCn regi
s
ter initi
a
l
s
etting
W
a
it time i
s
s
ec
u
red
b
y
s
oftw
a
re
(
s
ee
Table 17-7
)
In
s
ert w
a
it
S
t
a
rt IICn write tr
a
n
s
fer
S
top m
as
ter comm
u
nic
a
tion
M
as
ter comm
u
nic
a
tion i
s
s
topped
b
ec
aus
e
bus
i
s
occ
u
pied
Ye
s
(
a
ddre
ss
tr
a
n
s
fer completion)
S
t
a
rt IICn write tr
a
n
s
fer
Gener
a
te
s
top condition
(no
s
l
a
ve with m
a
tching
a
ddre
ss
)
End
D
a
t
a
proce
ss
ing
D
a
t
a
proce
ss
ing
Reception completed?
Tr
a
n
s
fer completed?
(re
s
t
a
rt)
electronic components distributor