Microchip Technology MCU PIC PIC18F87K22-I/PTRSL TQFP-80 MCP PIC18F87K22-I/PTRSL Ficha De Dados
Códigos do produto
PIC18F87K22-I/PTRSL
2009-2011 Microchip Technology Inc.
DS39960D-page 319
PIC18F87K22 FAMILY
FIGURE 21-24:
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
aster
ter
m
inate
s
tra
n
sfer
AC
K
Re
ce
ivin
g
Da
ta
fr
o
m
Sl
av
e
Re
ce
ivin
g Da
ta
fr
om
Sla
ve
D0
D1
D2
D3
D4
D5
D6
D7
ACK
R/W
=
1
T
ra
n
smi
t A
ddr
ess to S
lave
SSPx
IF
BF
AC
K
is
not
sent
W
rite
to
SS
PxCON2
<0
>
(
S
E
N
=
1
),
W
rit
e
to
SS
Px
BUF
o
cc
ur
s h
er
e
,
A
C
K f
ro
m
Sl
a
ve
M
a
ster
confi
gured
as a r
e
cei
ver
by
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
ifte
d i
n
on
fal
ling ed
ge of
C
L
K
C
lear
ed i
n
so
ftw
ar
e
st
ar
t X
M
IT
SEN =
0
SSPO
V
SD
A
x =
0
, S
C
Lx =
1
,
w
hil
e CP
U
(S
S
P
xS
TA
T
<
0>)
AC
K
Cle
a
re
d
in
so
ftwa
re
Cl
ea
re
d in
so
ftwa
re
S
et S
S
P
xIF
in
terr
upt
at en
d of r
e
cei
ve
Se
t P b
it
(SSP
xS
TA
T
<
4
>
)
an
d S
S
P
xIF
A
C
K
fro
m
ma
ster
,
Se
t SS
Px
IF
a
t e
nd
Se
t SSP
xI
F in
te
rr
u
pt
at
end o
f A
cknow
ledge
se
quence
Se
t SSP
xI
F in
te
rr
up
t
at
end o
f A
ckn
ow
le
dge
seq
uence
of r
e
ceive
S
et A
C
K
E
N
, st
art A
ckno
w
le
dge se
quence
,
S
D
Ax
= ACK
D
T =
1
RCEN cle
a
re
d
au
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
xC
O
N
2
<
5
>
) =
0
RCEN cle
a
re
d
au
tom
a
tically
respo
nds to
S
S
P
xIF
ACKEN
be
gi
n S
tart
condi
tion
C
lear
ed i
n
so
ftw
ar
e
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
aded i
nto S
S
P
xB
U
F
Cle
a
re
d
in
sof
twar
e
S
S
P
O
V
is
set
beca
use
S
SPxB
U
F
is still fu
ll