PIC16F87XA
DS39582B-page 78
2003 Microchip Technology Inc.
FIGURE 9-5:
SPI MODE WAVEFORM (SLAVE MODE WITH CKE =
0
)
FIGURE 9-6:
SPI MODE WAVEFORM (SLAVE MODE WITH CKE =
1
)
SCK
(CKP =
1
SCK
(CKP =
0
Input
Sample
SDI
bit 7
bit 0
SDO
bit 7
bit 6
bit 5
bit 4
bit 3
bit 2
bit 1
bit 0
SSPIF
Interrupt
(SMP =
0
)
CKE =
0
)
CKE =
0
)
(SMP =
0
)
Write to
SSPBUF
SSPSR to
SSPBUF
SS
Flag
Optional
Next Q4 Cycle
after Q2
↓
SCK
(CKP =
1
SCK
(CKP =
0
Input
Sample
SDI
bit 7
bit 0
SDO
bit 7
bit 6
bit 5
bit 4
bit 3
bit 2
bit 1
bit 0
SSPIF
Interrupt
(SMP =
0
)
CKE =
1
)
CKE =
1
)
(SMP =
0
)
Write to
SSPBUF
SSPSR to
SSPBUF
SS
Flag
Not Optional
Next Q4 Cycle
after Q2
↓
http://www.xinpian.net
提供单片机解密、IC解密、芯片解密业务
010-62245566 13810019655