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

NRF52840 SAADC configuration with easyDMA interrupt after x samplings

hello Nordic

i am using nrf 52840 dev kit, sdk 16.0

i want to make a sampling of 2 channels at 32MHz rate. the data shell be passed to RAM via easyDMA, after every 4 samplings i whish to raise an interrupt so i can average the readings from each channel. 

(as i understand if i do oversampling and burst then it reads one channel several time and averaging and then do the same for the other channel, this solution is not good for me because i need to compare the reading of the 2 channels with each other so the data needs to be collected as simultaneously as possible) 

what the optimal way to achieve the above ?

also, if i use app_timer as the RTC timer for the saadc, does it involves the CPU ?, can it use ppi? (the name "app" makes me suspicious :) ) and is it a good solution for 32MHz sampling rate or is it to fit ?

best regards

Ziv

Parents Reply Children
No Data
Related