Datasheet
2010-2016 Microchip Technology Inc. DS40001412G-page 213
PIC18(L)F2X/4XK22
FIGURE 15-9: SPI MODE WAVEFORM (SLAVE MODE WITH CKE = 0)
FIGURE 15-10: SPI MODE WAVEFORM (SLAVE MODE WITH CKE = 1)
SCKx
(CKP = 1
SCKx
(CKP = 0
Input
Sample
SDIx
bit 7
SDOx bit 7
bit 6
bit 5 bit 4
bit 3
bit 2
bit 1 bit 0
SSPxIF
Interrupt
CKE = 0)
CKE = 0)
Write to
SSPxBUF
SSPxSR to
SSPxBUF
SSx
Flag
Optional
bit 0
detection active
Write Collision
Valid
SCKx
(CKP = 1
SCKx
(CKP = 0
Input
Sample
SDIx
bit 7
bit 0
SDOx bit 7
bit 6
bit 5 bit 4
bit 3 bit 2
bit 1 bit 0
SSPxIF
Interrupt
CKE = 1)
CKE = 1)
Write to
SSPxBUF
SSPxSR to
SSPxBUF
SSx
Flag
Not Optional
Write Collision
detection active
Valid