nRF5 SDK v17.1.0
SPI Transaction Manager Example

The SPI Transaction Manager Example shows how to use the SPI transaction manager library to schedule transactions. In addition, the example uses the GFX library to draw images and print text.

The application communicates over serial peripheral interface (SPI) with one device that is present in the mbed Application Shield: the C12832A1Z LCD display with the ST7565 driver.

The example uses the RTC peripheral to generate regular tick events (once per second). The interrupt handler, executed in reaction to each tick event, schedules data transactions to display a new image on the screen. Additionally, the user can generate asynchronous data transfer requests by pressing Button 1 (invert the screen) or Button 4 (uninvert the screen). Such additional transfer requests show that the SPI transaction manager library can schedule transfer requests from different contexts and realize them in the order they were scheduled.

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

Testing

Test the SPI Transaction Manager Example application by performing the following steps:

  1. Compile and program the application.
  2. On the LCD, you can observe a "happy face" that is moved every second and text "NORDICSEMI".

Documentation feedback | Developer Zone | Subscribe | Updated