SPI Master Example

nRF5 SDK v12.1.0

The SPI Master Example demonstrates the use of the SPI or SPIM peripheral. It uses the SPI master driver . The application executes SPI transactions every 200 ms and toggles the LED when the transfer is completed.

If you connect one board that runs the SPI Master Example to a second board that runs the SPI Slave Example , you can observe that the board running the slave application receives valid data.

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

Testing

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

  1. Compile and program the application.
  2. Observe that the LED is toggled every 200 ms.