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

Problem stopping ADC and restart again

Hello,

I am trying to get a low consumption and I detect that the activation of the ADC increases the consumption.
So I am trying to configure the ADC and when I make the conversion I try to desactivate it completly.

I desactivate the ADC using this functions:

nrf_drv_saadc_uninit();
NVIC_ClearPendingIRQ(SAADC_IRQn);

I detect in my code that I can not desactivate the ADC as quickly as I want.
I can not desactivate it as soon as I have the last read adc conversion. i have to delay about 5 ms to apply this functions.

I would like to know why I need this delay to execute this functions.
If not I do this delay then I can not restart the ADC again .

Related