I'm relatively new to development on the nRF52832 and I'm trying to find information on how to use the sleep mode with the SAADC.
Goal: The micro should be in sleep mode until an event is triggered - this event can range from a few millivolts to the full scale of the ADC (zero otherwise). Once the event is triggered the micro wakes up, samples the ADC until the event finishes (~10s) and then goes back to sleep.
Things I would like to know:
-
How to set up the nRF52832 to interrupt on the rising edge of an ADC value (or just a threshold level if that is not possible), but still be able to use it as an ADC?
-
How long does the nRF52832 take to wake from "sleep"?
Thanks for your help!