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

reading multiplexed SAADC input pin

Hello, I need to read SAADC input pin of nRF52832 that is multiplexed and wonder what the optimal strategy is to implement that.

Especially: setting a ppi channel so that a timer compare event is triggering sample task in SAADC does not seem to be applicable in this case.

The only way that comes to my mind to is to set up a timer and in each timer event callback perform a sequence of switching-multiplexer, calling nrf_drv_adc_sample() as many times as the channels are and reading data in the adc callback.

To me this does not seem to be a very elegant solution since can't make use of the automation to trigger the ADC sampling and perhaps and won't make use of the double buffering; the question is am I right with above, and if there is better strategy?

I found a similar topic but it does not answer the question above.

Parents Reply Children
No Data
Related