This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Turning SPI peripheral on/off from PPI

I have an application working using PPI to start a SPI master transaction from a GPIOTE event. Unfortunately, I currently have very high current consumption which I am led to believe is because the SPI peripheral is always enabled. Can the SPI peripheral turned on/off using PPI?

I'd like to do the following: On GPIOTE event:

  1. turn SPI peripheral on 2.Take Chip select low
  2. start SPI transaction

On SPI stop event:

  1. Take Chip Select High 2.Turn off SPI peripheral

I realise I can do this completely in software, but PPI seems like a very elegant and fast solution, so would like to use this if possible.

Related