English
Language : 

PIC16F872_06 Datasheet, PDF (59/168 Pages) Microchip Technology – 28-Pin, 8-Bit CMOS Flash Microcontroller with 10-Bit A/D
FIGURE 9-3:
SS (optional)
SPI MODE TIMING (SLAVE MODE WITH CKE = 0)
PIC16F872
SCK (CKP = 0)
SCK (CKP = 1)
SDO
SDI (SMP = 0)
SSPIF
bit7
bit6
bit5
bit4
bit3
bit2
bit1
bit0
bit7
bit0
FIGURE 9-4:
SS
SPI MODE TIMING (SLAVE MODE WITH CKE = 1)
SCK (CKP = 0)
SCK (CKP = 1)
SDO
SDI (SMP = 0)
SSPIF
bit7
bit6
bit5
bit4
bit3
bit2
bit1
bit0
bit7
bit0
TABLE 9-1: REGISTERS ASSOCIATED WITH SPI OPERATION
Address Name
Bit 7
Bit 6 Bit 5 Bit 4 Bit 3
Bit 2
Bit 1
Bit 0
Value on:
POR,
BOR
Value on
all other
RESETS
0Bh, 8Bh, INTCON
10Bh, 18Bh
0Ch
PIR1
8Ch
PIE1
13h
SSPBUF
14h
SSPCON
GIE
PEIE TMR0IE INTE RBIE TMR0IF INTF RBIF 0000 000x 0000 000u
(1)
ADIF
(1)
(1) SSPIF CCP1IF TMR2IF TMR1IF r0rr 0000 0000 0000
(1)
ADIE (1) (1) SSPIE CCP1IE TMR2IE TMR1IE r0rr 0000 0000 0000
Synchronous Serial Port Receive Buffer/Transmit Register
xxxx xxxx uuuu uuuu
WCOL SSPOV SSPEN CKP SSPM3 SSPM2 SSPM1 SSPM0 0000 0000 0000 0000
94h
SSPSTAT SMP
CKE
D/A
P
S
R/W
UA
BF 0000 0000 0000 0000
Legend: x = unknown, u = unchanged, - = unimplemented, read as '0'. Shaded cells are not used by the SSP in SPI mode.
Note 1: These bits are reserved; always maintain these bits clear.
© 2006 Microchip Technology Inc.
DS30221C-page 57