nRF5 SDK v17.1.0
SPI Slave Example

The SPI Slave Example demonstrates the use of the SPIS peripheral. It uses the SPIS driver - legacy layer.

In the main loop, the application prepares the SPIS for a transfer and waits until the transfer is completed. Every time a transfer is completed, the LED is toggled.


You can find the source code and the project file of the example in the following folder: <InstallFolder>\examples\peripheral\spis

Hardware configuration:

The default pin assignments for the SCLK, MOSI, and MISO lines can be found in sdk_config.h. The default pin assignment for the CS pin can be found in main.c.


Test the SPI Slave Example application by performing the following steps:

  1. Compile and program the application.
  2. Observe that no LED is toggled.
  3. Connect the board to another board that runs the SPI Master Example.
  4. Observe that the LED is toggled every 200 ms.

Documentation feedback | Developer Zone | Subscribe | Updated