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();

Parents
  • Interestingly I use the ADC and can't see any documentation on disablement or de-linking the pin as an Analog input. I had assumed the acquistion time was the total active time of the pin and it is offline afterwards. How often are you calling the ADC sample? Have you tried making the pin polling much longer to see if the ADC does turn off between samples?

Reply
  • Interestingly I use the ADC and can't see any documentation on disablement or de-linking the pin as an Analog input. I had assumed the acquistion time was the total active time of the pin and it is offline afterwards. How often are you calling the ADC sample? Have you tried making the pin polling much longer to see if the ADC does turn off between samples?

Children
Related