Simple example for continous mode of the SAADC using nrf library

Hello,

I am trying to find a simple example of how to setup and run the SAADC on the nrf5340 in continous mode.

I would like to use the internal timer and only need to sample one channel (at 20kHz).

I am not using Zephyr but rather the nrf library or even bare metal registers.

This is the closest I have found but it is a one shot triggered example

NordicSnippets/examples/saadc/main.c at master · andenore/NordicSnippets

This specific mode is more difficult to find.

Any examples or links appreciated.

Thanks

/Jonas

Related