Microchip Technology IC PIC MCU PIC18F65J15-I/PT TQFP-64 MCP PIC18F65J15-I/PT Data Sheet

Product codes
PIC18F65J15-I/PT
Page of 410
© 2009 Microchip Technology Inc.
DS39663F-page 231
PIC18F87J10 FAMILY
FIGURE 19-24:
I
2
C™ MASTER MODE WAVEFORM (RECEPTION, 7-BIT ADDRESSING)   
    
  
P
9
8
7
6
5
D0
D1
D2
D3
D4
D5
D6
D7
S
A7
A6
A5
A4
A3
A2
A1
SDA
SCL
1
234
5
6
78
9
1
234
5
6
7
8
9
12
3
4
B
u
s m
a
ster
ter
m
inat
es
tra
n
sfer
ACK
Re
ce
ivin
g
 D
at
a
 fr
om
 Sla
ve
Re
ce
iv
in
g
 Da
ta
 fr
o
m
 Sla
ve
D0
D1
D2
D3
D4
D5
D6
D7
ACK
R/W
 = 
1
T
ra
n
sm
it A
d
dr
ess to
 S
lave
SSPI
F
BF
 
AC
K
 is
 not
 sent
W
rite
 to S
S
P
C
ON2<
0>
 (
S
E
N
 =
 1
),
W
rit
e t
o
 SS
PBUF
 o
cc
u
rs
 h
er
e
,
ACK f
ro
m
 S
la
ve
Maste
r conf
ig
ured
 as a r
e
cei
ver
by pr
ogra
mmi
ng
 S
S
P
C
ON
2<
3>
 (R
C
E
N
 =
 1
)
PE
N b
it = 
1
wr
itte
n
 h
e
re
Da
ta
 sh
ift
e
d
 in
 o
n fa
llin
g
 e
d
g
e
 o
f CL
K
C
lear
ed i
n
 s
o
ftw
a
re
st
ar
t X
M
IT
SEN = 
0
SSPO
V
SD
A =
 0
, S
C
L =
 1
wh
ile
 CPU 
AC
K
Cle
a
re
d
 in
 so
ftwa
re
Cle
a
re
d
 in
 so
ftwa
re
S
e
t S
S
P
IF
 in
te
rr
up
t
at end
 of r
e
cei
ve
Se
t P b
it 
(S
SPS
TA
T
<
4
>
)
a
nd
 SS
PI
F
A
C
K
 fr
om M
a
ster
,
S
e
t S
S
P
IF
 at e
n
d
Se
t S
SPI
F
 in
te
rr
up
t
at
 end
 of A
cknow
le
dg
e
se
quen
ce
Se
t SS
PI
F in
te
rr
u
p
t
at en
d of A
ckno
w
le
dge
seque
nce
of r
e
ceive
S
e
t A
C
K
E
N
, sta
rt A
cknow
le
dge seq
uence,
SDA =
 A
C
KDT
 = 
1
R
C
E
N
 clear
e
d
autom
ati
cal
ly
RCEN = 
1
, st
ar
t
ne
xt r
eceive
W
rit
e
 to
 SS
PCO
N
2
<
4
>
to st
ar
t A
cknowledg
e sequ
ence,
SDA
 = ACKD
T (
SSP
CO
N2
<
5>
) = 
0
RC
E
N
 clea
re
d
autom
a
tically
ACKEN
be
gi
n S
tar
t condi
tio
n
C
lear
ed i
n
 so
ftw
are
SD
A
 =
 AC
K
D
0
 
La
st bit is sh
ifte
d into S
S
P
S
R
 an
d
co
ntent
s ar
e un
lo
aded 
in
to S
S
P
B
U
F
Cle
ar
e
d
 in
so
ftwa
re
S
SPO
V is
 s
e
t b
ec
a
u
se
S
SPB
UF
 is still fu
ll
re
sp
o
n
d
s t
o
 SS
PI
F