Electronic Components Datasheet Search
  English  ▼

X  

UM1865 Datasheet(PDF) 127 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) 127 Page - STMicroelectronics

Back Button UM1865 Datasheet HTML 123Page - STMicroelectronics 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 Next Button
Zoom Inzoom in Zoom Outzoom out
 127 / 132 page
background image
DocID027514 Rev 1
127/132
UM1865
SPI interface
132
Figure 9. SPI wire connection
The SPI master, i.e. an application processor, always controls when to start an SPI
transaction. This can happen at any time. It is started by putting low the nCS line to activate
the BlueNRG-MS device. Then the master should provide the SPI clock. Together with the
clock, the master should output the data on the SPI bus through the MOSI line, either
dummy data or valid data. At the same time, the slave returns data from the MISO line,
because SPI is in principle a shift register.
When the SPI master wants to send data to the BlueNRG-MS, i.e. an SPI write, it sets nCS
to low, then sends the SPI clock and dummy data to read an SPI header from the BlueNRG-
MS. The SPI header format will be described in the following section. If the SPI header
indicates that the BlueNRG-MS has enough space in the buffer, the SPI master can then
send real data over the SPI bus. The SPI master should not overwrite the BlueNRG-MS SPI
buffer, otherwise the communication will fail.
When the BlueNRG-MS wants to send data to the SPI master, i.e. an SPI read, it must use
the IRQ pin, because the SPI slave cannot control the nCS line. The BlueNRG-MS will set
the IRQ pin to high, which notifies the SPI master that there is data to be read. Then the SPI
master should start an SPI transaction, reading the SPI header, and from where it will know
how many bytes it should read back from the BlueNRG-MS. The SPI master should not
read bytes other than those indicated as the SPI header, otherwise the communication will
fail.
The DataRdy (IRQ) pin of the BlueNRG-MS should work as follows: (1) it must be high when
BlueNRG-MS has data to send to the SPI master; (2) It must be high impedance when
BlueNRG-MS has no data to send to the SPI master. On the SPI master side, this pin must
be configured as an input pin. The SPI master may poll this pin, or use it as an interrupt
source, to detect when an SPI read is required. Also there should be a pull down resistor,
either on the SPI master IRQ pin or externally connected. This pull down resistor makes
sure the DataRdy value goes back to 0, so it does not confuse the SPI master to misread
data. Note that the reason that IRQ pin must be high-Z when there is no data to send is
because we also use this pin as input when BlueNRG-MS boots up. The IRQ pin value will
determine if the updater mode is required or not. After the BlueNRG-MS goes to normal
working state, the IRQ pin is configured as output for SPI interface.
Note also that the MISO also goes to high-Z when BlueNRG-MS does not send data. This
allows multi-SPI slaves on the same bus. This other SPI slave may access the bus when
BlueNRG-MS does not.



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