Microchip Technology MCU PIC PIC18F87K22-I/PTRSL TQFP-80 MCP PIC18F87K22-I/PTRSL Data Sheet

Product codes
PIC18F87K22-I/PTRSL
Page of 550
 2009-2011 Microchip Technology Inc.
DS39960D-page 303
PIC18F87K22 FAMILY
FIGURE 21-11:
I
2
C™ SLAVE MODE TIMING WITH SEN = 0 AND ADMSK<5:1> = 01001 
(RECEPTION, 10-BIT ADDRESS) 
SDA
x
SCL
x
S
S
P
xIF
 (P
IR1<
3>
 or 
P
IR3<
7>
BF
 (
S
SPx
S
TA
T
<0
>)
S
1
2
3
4
56
7
8
9
1
2
3
4
5
6
7
89
1
2
3
4
5
7
8
9
P
1
1
1
1
0
A
9
A
8
A
7
A
6
A
5
X
A
3
A2
X
X
D7
D6
D5
D4
D3
D1
D
0
Re
ce
iv
e Da
ta
 Byte
ACK
R/W
 = 
0
ACK
Re
ceive F
irs
t B
yte of A
d
dr
ess
C
le
a
re
d in
 so
ftwa
re
D2
6
 
Cle
a
re
d
 in
 so
ftw
ar
e
R
e
ce
iv
e S
econd B
yte 
of A
ddre
ss
C
lea
re
d b
y h
a
rd
w
a
re
w
he
n
 SSP
xADD is u
p
d
at
e
d
w
ith
 lo
w
 byte 
of add
ress
UA
 (
S
S
P
xS
TA
T
<
1>)
Cl
ock is h
e
ld
 lo
w u
n
til
updat
e of S
S
P
xA
D
D
 has 
ta
ken pl
ac
e
UA
 is 
set indicat
in
g
 tha
t
the S
S
P
xA
D
D
 nee
ds to b
e
upda
ted
U
A
 is
 set 
in
di
cati
ng 
that
S
S
P
xA
D
D
 nee
ds to b
e
update
d
C
le
ar
ed 
by har
d
w
a
re
 w
hen
SSP
xADD is u
pd
a
te
d
 wi
th
 h
ig
h
by
te of 
addr
e
ss
S
SPxB
U
F
 is wr
itte
n with
co
n
te
nt
s o
f SS
Px
SR
D
um
m
re
a
d o
f SS
Px
BUF
to clear
 B
F
 flag
AC
K
CKP
 (
S
SPxCON<4
>
)
12
3
4
5
7
8
9
D7
D6
D5
D4
D3
D1
D0
Re
ce
ive
 Da
ta
 B
yte
B
us m
a
ste
r
term
inates
tran
sfer
D2
6
ACK
Cle
a
re
d
 in
 so
ftwa
re
Cle
a
re
d
 in
 so
ftwa
re
SS
PO
V (
SSP
xC
O
N
1
<
6
>
)
S
SPO
V
 is
 s
et
because
 S
S
P
xB
U
F
 is
stil
l f
u
ll. AC
K
 is no
t sent.
(C
K
P
 do
es not 
reset 
to ‘
0
’ w
hen 
S
E
N
 =
 0
)
Clo
ck is h
e
ld
 lo
w u
n
til
upda
te of 
S
S
P
xA
D
D
 ha
ta
ke
n
 pl
ac
e
 
No
te
1
:
x
 = Do
n’t c
are
 (i.e
., a
dd
ress
 bit c
an e
ithe
r b
e a
 ‘1
’ or
 a ‘
0
’)
.
2:
In
 th
is 
ex
am
pl
e
, a
n
 a
d
dr
ess e
qu
a
l to
 A9
.A8
.A
7
.A6
.A5
.X.A3
.A2
.X.X will b
e
 Ackn
o
wl
ed
g
ed
 a
nd
 ca
us
e a
n i
n
te
rr
u
pt.
3:
N
ot
e th
at 
the 
Mo
st S
ign
ifi
can
t bi
ts of 
the
 ad
dre
ss a
re 
not 
af
fe
cted
 by
 the
 bi
mas
ki
ng.