Datasheet

2012 Microchip Technology Inc. Preliminary DS41639A-page 213
PIC16(L)F1454/5/9
22.2.6 SPI OPERATION IN SLEEP MODE
In SPI Master mode, module clocks may be operating
at a different speed than when in full power mode; in
the case of the Sleep mode, all clocks are halted.
Special care must be taken by the user when the MSSP
clock is much faster than the system clock.
In Slave mode, when MSSP interrupts are enabled,
after the master completes sending data, an MSSP
interrupt will wake the controller from Sleep.
If an exit from Sleep mode is not desired, MSSP inter-
rupts should be disabled.
In SPI Master mode, when the Sleep mode is selected,
all module clocks are halted and the transmis-
sion/reception will remain in that state until the device
wakes. After the device returns to Run mode, the mod-
ule will resume transmitting and receiving data.
In SPI Slave mode, the SPI Transmit/Receive Shift
register operates asynchronously to the device. This
allows the device to be placed in Sleep mode and data
to be shifted into the SPI Transmit/Receive Shift
register. When all eight bits have been received, the
MSSP interrupt flag bit will be set and if enabled, will
wake the device.
TABLE 22-1: SUMMARY OF REGISTERS ASSOCIATED WITH SPI OPERATION
Name Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Register
on Page
ANSELA
(3)
ANSA4 133
INTCON GIE PEIE
TMR0IE INTE IOCIE TMR0IF INTF IOCIF 96
PIE1
TMR1GIE ADIE
(3)
RCIE TXIE SSP1IE TMR2IE TMR1IE 97
PIR1
TMR1GIF ADIF
(3)
RCIF TXIF SSP1IF TMR2IF TMR1IF 99
SSP1BUF Synchronous Serial Port Receive Buffer/Transmit Register 207*
SSP1CON1 WCOL SSPOV SSPEN CKP SSPM<3:0> 253
SSP1CON3
ACKTIM PCIE SCIE BOEN SDAHT SBCDE AHEN DHEN 255
SSP1STAT SMP CKE
D/A P S R/W UA BF 251
TRISA
TRISA5 TRISA4
(1)
(1)
(1)
132
TRISC
TRISC7
(2)
TRISC6
(2)
TRISC5 TRISC4 TRISC3 TRISC2 TRISC1 TRISC0 140
Legend: — = Unimplemented location, read as ‘0’. Shaded cells are not used by the MSSP in SPI mode.
* Page provides register information.
Note 1: Unimplemented, read as ‘1’.
2: PIC16(L)F1459 only.
3: PIC16(L)F1455/9 only.