Electronic Components Datasheet Search
  English  ▼

X  

UM1865 Datasheet(PDF) 130 Page - STMicroelectronics

Part # UM1865
Description  The purpose of this document is to describe the design of the application
PDF  132 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

UM1865 Datasheet(HTML) 130 Page - STMicroelectronics

Back Button UM1865 Datasheet HTML 124Page - STMicroelectronics UM1865 Datasheet HTML 125Page - STMicroelectronics UM1865 Datasheet HTML 126Page - STMicroelectronics UM1865 Datasheet HTML 127Page - STMicroelectronics UM1865 Datasheet HTML 128Page - STMicroelectronics UM1865 Datasheet HTML 129Page - STMicroelectronics UM1865 Datasheet HTML 130Page - STMicroelectronics UM1865 Datasheet HTML 131Page - STMicroelectronics UM1865 Datasheet HTML 132Page - STMicroelectronics  
Zoom Inzoom in Zoom Outzoom out
 130 / 132 page
background image
SPI interface
UM1865
130/132
DocID027514 Rev 1
5.2.4
SPI operation with BlueNRG-MS sleep mode
The BlueNRG-MS device is designed with a deep sleep mode, in which it turns off most of
the internal functions to save power. The BlueNRG-MS goes into sleep mode automatically
when there is no Bluetooth activity ongoing. So it is very likely that the BlueNRG-MS is
sleeping when the master starts an SPI transaction.
The BlueNRG-MS wakes up as soon as the nCS line is put to low. But then it needs to
initialize and prepare the SPI buffers. This will take some time. So the following sequence is
likely to occur on the SPI bus:
1.
The master puts the nCS line to low and the BlueNRG-MS wakes up. BlueNRG-MS is
expecting a command within 2 ms before going to sleep.
2.
The master sends the header, but the BlueNRG-MS replies with the READY byte as
0x00 or 0xFF. This means the BlueNRG-MS SPI interface is still not initialized.
3.
The master keeps polling the BlueNRG-MS, (releasing and asserting CS again). In
order to read again the header, the SPI master has to release the CS line and assert it
within 2ms from the previous CS assertion. After a while, the READY byte becomes
0x02 but both the buffer sizes are 0x00. This means the BlueNRG-MS SPI is initialized,
but the buffer is not yet prepared.
4.
As soon as the buffer size becomes non-zero, the master can write data to the
BlueNRG-MS.
With the measurement, the master should allow about 0.5 ms for the BlueNRG-MS to be
completely ready for the SPI communication. Note that 0.5 ms is when non-retention RAM
of BlueNRG-MS must be initialized upon wakeup (i.e. device in mode1 - slave only mode).
The value can be 0.3 ms if non-retention RAM initialization is not required, which makes the
SPI ready faster.
This waiting operation is only needed when the SPI bus is idle for a while. If the master is
continuously writing, from the 2nd write transaction there is no need to wait, because the
BlueNRG-MS will not sleep if there is still SPI data to be processed. Also, there is no need
to wait when reading from the BlueNRG-MS, because it cannot sleep if it still holds data for
the master.



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