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

SAADC multiple channel buffer inconsistencies

I am using nRF52 DK.

When I do 2 analog inputs using the SAADC, I noticed that, in the SAADC callback,  p_event->data.done.p_buffer[0] corresponds to the correct SAADC channel (channel 0) and p_event->data.done.p_buffer[1] corresponds to the correct SAADC channel (channel 1). After about 3 seconds of printing out the values from the channels, I notice that p_event->data.done.p_buffer[0] now corresponds to SAADC channel 1 and p_event->data.done.p_buffer[1] corresponds to channel 0. What is going on? 

Thanks

Related