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

How to disable the ADC in nRF9160 after taking a sample

Hello,

When enabling the ADC in the nRF9160 and taking a sample, the power consumption increases with several mA.

How do I disable it, to save battery power when putting the unit to deep sleep?

So far, this is tested without luck:

NRFX_IRQ_DISABLE(DT_NORDIC_NRF_SAADC_ADC_0_IRQ);
nrf_saadc_int_disable(NRF_SAADC_INT_END | NRF_SAADC_INT_CALIBRATEDONE);
nrf_saadc_disable();

Related