English
Language : 

PIC18F2331_07 Datasheet, PDF (220/400 Pages) Microchip Technology – 28/40/44-Pin Enhanced Flash Microcontrollers with nanoWatt Technology, High Performance PWM and A/D
PIC18F2331/2431/4331/4431
FIGURE 18-4:
SS
SPI MODE TIMING (SLAVE MODE WITH CKE = 1)
SCK (CKP = 0)
SCK (CKP = 1)
SDO
bit 7
bit 6
bit 5
bit 4
bit 3
bit 2
bit 1
bit 0
SDI (SMP = 0)
bit 7
bit 0
SSPIF
TABLE 18-1: REGISTERS ASSOCIATED WITH SPI OPERATION
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
INTCON GIE/GIEH PEIE/GIEL TMR0IE INT0IE RBIE TMR0IF INT0IF RBIF 0000 000x 0000 000u
PIR1
—
ADIF RCIF TXIF SSPIF CCP1IF TMR2IF TMR1IF -000 0000 -000 0000
PIE1
—
ADIE RCIE TXIE SSPIE CCP1IE TMR2IE TMR1IE -000 0000 -000 0000
TRISC PORTC Data Direction Register
1111 1111 1111 1111
SSPBUF SSP Receive Buffer/Transmit Register
xxxx xxxx uuuu uuuu
SSPCON WCOL SSPOV SSPEN CKP SSPM3 SSPM2 SSPM1 SSPM0 0000 0000 0000 0000
TRISA TRISA7(1) TRISA6(2) PORTA Data Direction Register
1111 1111 1111 1111
SSPSTAT SMP
CKE
D/A
P
S
R/W
UA
BF 0000 0000 0000 0000
Legend:
Note 1:
x = unknown, u = unchanged, - = unimplemented, read as ‘0’. Shaded cells are not used by the SSP in
SPI mode.
RA7 and associated bits are configured as port pins in INTIO2 Oscillator mode only and read ‘0’ in all other
modes.
2: RA6 and associated bits are configured as port pins in RCIO, ECIO and INTIO2 (with port function on RA6)
Oscillator mode only and read ‘0’ in all other oscillator modes.
DS39616C-page 218
Preliminary
© 2007 Microchip Technology Inc.