Electronic Components Datasheet Search
  British  ▼
ALLDATASHEET.CO.UK

X  

STM8S Datasheet(PDF) 280 Page - STMicroelectronics

Part # STM8S
Description  STM8S Series and STM8AF Series 8-bit microcontrollers
PDF  467 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

STM8S Datasheet(HTML) 280 Page - STMicroelectronics

Back Button STM8S Datasheet HTML 276Page - STMicroelectronics STM8S Datasheet HTML 277Page - STMicroelectronics STM8S Datasheet HTML 278Page - STMicroelectronics STM8S Datasheet HTML 279Page - STMicroelectronics STM8S Datasheet HTML 280Page - STMicroelectronics STM8S Datasheet HTML 281Page - STMicroelectronics STM8S Datasheet HTML 282Page - STMicroelectronics STM8S Datasheet HTML 283Page - STMicroelectronics STM8S Datasheet HTML 284Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 280 / 467 page
background image
Serial peripheral interface (SPI)
RM0016
280/467
DocID14587 Rev 14
20.3.10
SPI low power modes
Using the SPI to wake up the device from Halt mode
When the microcontroller is in Halt mode, the SPI is still capable of responding as a slave
provided the NSS pin is tied low or the SSI bit is reset before entering Halt mode.
When the first sampling edge of data (as defined by the CPHA bit) is detected:
The WKUP bit is set in the SPI_SR register
An interrupt is generated if the WKIE bit in the SPI_ICR register is set.
This interrupt wakes up the device from Halt mode.
Due to the time needed to restore the system clock, the SPI slave sends or receives a
few data before being able to communicate correctly. It is then mandatory to use the
following protocol:
A specific value is written into the SPI_DR before entering Halt mode. This value
indicates to the external master that the SPI is in Halt mode
The external master sends the same byte continuously until it receives from the
SPI slave device a new value other than the unique value indicating the SPI is in
Halt mode. This new value indicates the SPI slave has woken-up and can
correctly communicate.
Restrictions in receive-only modes
The wakeup functionality is not guaranteed in receive-only modes (BDM = 0 and
RXONLY = 1 or BDM = 1 and BDOE = 0) since the time needed to restore the system clock
can be greater than the data reception time. A loss of data in reception would then be
induced and the slave device can not indicate to the master which data has been properly
received.
20.3.11
SPI interrupts
Table 45. SPI behavior in low power modes
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. If the SPI is in master mode, then
communication resumes when the device is woken up by an interrupt with
“wakeup from Halt mode” capability.
If the SPI is in slave mode, then it can wake up the MCU from Halt mode after
detecting the first sampling edge of data.
Table 46. SPI interrupt requests
Interrupt event
Event
flag
Enable
control
bit
Exit
from
Wait
Exit
from
Halt
Transmit buffer empty flag
TXE
TXIE
Yes
No
Receive buffer not empty flag
RXNE
RXIE
Yes
No



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com