Microchip Technology MA160014 数据表
2010-2012 Microchip Technology Inc.
DS41412F-page 249
PIC18(L)F2X/4XK22
FIGURE 15-29:
I
2
C™ MASTER MODE WAVEFORM (RECEPTION, 7-BIT ADDRESS)
P
9
8
7
6
5
D0
D1
D2
D3
D4
D5
D6
D7
S
A7
A6
A5
A4
A3
A2
A1
SDAx
SCL
x
12
3
4
5
6
7
8
9
12
3
4
5
67
8
9
12
3
4
B
u
s m
a
ster
ter
m
inate
s
tra
n
sfer
AC
K
Re
ce
ivin
g
Da
ta
fr
o
m
Sl
a
v
e
Re
ce
ivin
g
Da
ta
fr
o
m
Sla
v
e
D0
D1
D2
D3
D4
D5
D6
D7
ACK
T
ra
n
smi
t A
ddr
ess to S
lave
SSPx
IF
BF
AC
K
i
s
not
sent
W
rite
t
o
SS
PxCON2
<0
>
(S
E
N =
1
),
W
rit
e
t
o
SS
Px
BUF
o
c
c
u
rs
h
e
re
,
A
C
K f
ro
m
Sl
a
v
e
M
a
ster
confi
g
ured
as a r
e
cei
v
er
b
y
p
ro
g
ra
m
m
in
g
S
SPxCON2
<3
> (
RCEN =
1
)
PE
N b
it
=
1
w
ri
tte
n her
e
D
a
ta
sh
if
te
d i
n
on
fal
ling ed
ge of
C
L
K
C
lear
ed by so
ft
w
a
re
st
ar
t X
M
IT
SEN =
0
SSPx
O
V
SD
A
x
=
0
, S
C
Lx =
1
wh
ile
CPU
(S
S
P
xS
T
A
T
<
0>)
AC
K
Cle
a
re
d
b
y
so
ft
wa
re
C
lea
re
d b
y
s
o
ft
w
a
re
S
e
t S
S
P
x
IF
in
terr
upt
at en
d of r
e
cei
v
e
Se
t P b
it
(SSP
x
S
T
A
T
<
4
>
)
an
d S
S
P
x
IF
Cle
a
re
d
in
sof
twar
e
A
C
K
fro
m
Ma
ster
Se
t SS
Px
IF
a
t e
n
d
Se
t SSP
x
IF in
te
rr
u
p
t
at
end o
f A
cknow
ledge
se
quence
S
e
t S
S
P
x
IF
inter
rupt
at e
nd of
A
ckno
w
-
ledge
seque
nce
of r
e
ceive
S
e
t A
C
K
E
N
, st
ar
t A
cknow
ledg
e sequ
ence
S
S
P
x
OV
i
s
set
beca
use
S
SPxB
U
F
is still fu
ll
S
D
Ax
= ACK
D
T =
1
RCEN cle
a
re
d
a
u
tom
a
tically
RCEN =
1
, st
ar
t
ne
xt r
e
ce
ive
W
rite
to
S
SPxCON2
<4
>
to st
ar
t A
cknowledge
seque
n
ce
SD
Ax
= ACK
D
T (
SSP
x
C
O
N
2
<
5
>
) =
0
RCEN cle
a
re
d
a
u
tom
a
tically
re
sponds to
S
S
P
x
IF
ACKEN
be
gi
n S
tart
condi
ti
on
C
lear
ed by so
ft
w
a
re
SDAx
= A
C
KDT
=
0
La
st bit is shif
ted
into S
S
P
xS
R and
con
tent
s ar
e unl
o
a
ded i
n
to S
S
P
x
B
U
F
RCEN
Maste
r conf
ig
ured
as a r
e
cei
v
er
b
y
p
ro
g
ra
m
m
in
g
S
SPxCON2
<3
> (
RCEN =
1
)
RCEN cle
a
re
d
au
toma
tically
ACK f
ro
m
M
a
s
te
r
SDA
x
=
ACKDT
=
0
RCE
N cle
a
re
d
auto
matica
lly
R/W