Datasheet
DocID8349 Rev 7 99/170
ST7LITE20F2 ST7LITE25F2 ST7LITE29F2 On-chip peripherals
169
Figure 48. Single master / multiple slave configuration
11.4.6 Low power modes
Using the SPI to wake up the device from HALT mode
In slave configuration, the SPI is able to wake up the Device from HALT mode through a
SPIF interrupt. The data received is subsequently read from the SPIDR register when the
software is running (interrupt vector fetch). If multiple data transfers have been performed
before software clears the SPIF bit, then the OVR bit is set by hardware.
Note: When waking up from HALT mode, if the SPI remains in Slave mode, it is recommended to
perform an extra communications cycle to bring the SPI from HALT mode state to normal
state. If the SPI exits from Slave mode, it returns to normal state immediately.
Caution: The SPI can wake up the Device from HALT mode only if the Slave Select signal (external
SS
pin or the SSI bit in the SPICSR register) is low when the Device enters HALT mode. So if
Slave selection is configured as external (see Slave select management on page 93), make
sure the master drives a low level on the SS
pin when the slave enters HALT mode.
MISO
MOSI
MOSI
MOSI MOSI MOSIMISO MISO MISOMISO
SS
SS SS
SS
SS
SCK SCK
SCK
SCK
SCK
5V
Ports
Slave
Device
Slave
Device
Slave
Device
Slave
Device
Master
Device
Table 40. WAIT and HALT mode description
Mode Description
WAIT
No effect on SPI.
SPI interrupt events cause the device to exit from WAIT mode.
HALT
SPI registers are frozen.
In HALT mode, the SPI is inactive. SPI operation resumes when the Device is
woken up by an interrupt with “exit from HALT mode” capability. The data
received is subsequently read from the SPIDR register when the software is
running (interrupt vector fetching). If several data are received before the
wakeup event, then an overrun error is generated. This error can be detected
after the fetch of the interrupt routine that woke up the Device.










