BLE with ADC

Hi, I am making BLE low power pult, using nrf52811 chip and NRF Connect SDK v2.3.0.

So, the device is sleeping and waiting for button event

When button is pressed, device wakes up and starts advertising for 250 ms, then returns to sleep.

This part works great.

Next thing I need is to measure battery voltage, it works, but as I can guess it affects BLE advertising perfomance.

If ADC is initialized, and button is pressed frequently I could lose half of BLE Advertising on receiving part.

Without ADC everything works well and I lose nothing.

As I can guees ADC has big wake up time and thats the reason.

I tried zephyr adc driver and nrfx, result is the same.

So, I think I need fully disable / uninitialize ADC between readings, but I didn't find the correct way. 

Thank you,

Anton

Related