Electronic Components Datasheet Search
  New Zealand  ▼
ALLDATASHEET.CO.NZ

X  

NRF9160-SICA-R7 Datasheet(PDF) 243 Page - Nordic Semiconductor

Part # NRF9160-SICA-R7
Description  nRF9160 Product Specification
PDF  400 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  NORDIC [Nordic Semiconductor]
Direct Link  https://www.nordicsemi.com/
Logo NORDIC - Nordic Semiconductor

NRF9160-SICA-R7 Datasheet(HTML) 243 Page - Nordic Semiconductor

Back Button NRF9160-SICA-R7 Datasheet HTML 239Page - Nordic Semiconductor NRF9160-SICA-R7 Datasheet HTML 240Page - Nordic Semiconductor NRF9160-SICA-R7 Datasheet HTML 241Page - Nordic Semiconductor NRF9160-SICA-R7 Datasheet HTML 242Page - Nordic Semiconductor NRF9160-SICA-R7 Datasheet HTML 243Page - Nordic Semiconductor NRF9160-SICA-R7 Datasheet HTML 244Page - Nordic Semiconductor NRF9160-SICA-R7 Datasheet HTML 245Page - Nordic Semiconductor NRF9160-SICA-R7 Datasheet HTML 246Page - Nordic Semiconductor NRF9160-SICA-R7 Datasheet HTML 247Page - Nordic Semiconductor Next Button
Zoom Inzoom in Zoom Outzoom out
 243 / 400 page
background image
Peripherals
6.14.4 Semaphore operation
The semaphore is a mechanism implemented inside the SPI slave that prevents simultaneous access to the
data buffers by the SPI slave and CPU.
The semaphore is by default assigned to the CPU after the SPI slave is enabled. No ACQUIRED event will be
generated for this initial semaphore handover. An ACQUIRED event will be generated immediately if the
ACQUIRE task is triggered while the semaphore is assigned to the CPU. The figure SPI semaphore FSM on
page 243 illustrates the transitions between states in the semaphore based on the relevant tasks and
events.
RELEASE
FREE
FREE
CPU
SPI
CPU PENDING
ACQUIRE
ENABLE change
ACQUIRE
STARTED
STOPPED
STOPPED
ACQUIRE
ACQUIRE &
CSN = high
Figure 77: SPI semaphore FSM
Note: The semaphore mechanism does not, at any time, prevent the CPU from performing read
or write access to the RXD.PTR register, the TXD.PTR registers, or the RAM that these pointers are
pointing to. The semaphore is only telling when these can be updated by the CPU so that safe
sharing is achieved.
The SPI slave will try to acquire the semaphore when STARTED event is detected, the even also indicates
that CSN is currently low. If the SPI slave does not manage to acquire the semaphore at this point (i.e., it
is under CPU's control), the transaction will be ignored. This means that all incoming data on MOSI will
be discarded, and the DEF (default) character will be clocked out on the MISO line throughout the whole
transaction. This will also be the case even if the semaphore is released by the CPU during the transaction.
In case of a race condition where the CPU and the SPI slave try to acquire the semaphore at the same
time, as illustrated in lifeline item 2 in figure SPI transaction when shortcut between END and ACQUIRE is
enabled on page 242, the semaphore will be granted to the CPU.
If the SPI slave acquires the semaphore, the transaction will be granted. The incoming data on MOSI will
be stored in the RXD buffer and the data in the TXD buffer will be clocked out on MISO.
When a granted transaction is completed and CSN goes high, the SPI slave will automatically release the
semaphore and generate the END event.
As long as the semaphore is available, the SPI slave can be granted multiple transactions one after the
other.
If the CPU tries to acquire the semaphore while it is assigned to the SPI slave, an immediate handover
will not be granted. However, the semaphore will be handed over to the CPU as soon as the SPI slave
has released the semaphore after the granted transaction is completed. If the END_ACQUIRE shortcut
is enabled and the CPU has triggered the ACQUIRE task during a granted transaction, only one ACQUIRE
request will be served following the END event.
4418_1315 v2.0
243



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