I'm hoping someone can tell me if I'm on the right track. Do I understand correctly that on an nrf51, the LPCOMP can be configured to wake the processor on an analog input, only if that input exceeds a user specified threshold, then continue sending interrupts only for analog inputs above that threshold? We will also be using a softdevice for Bluetooth.
My goal is a low power device that runs for about 2 years on 4 AA lithium batteries. It will wake to count pulses on an analog input (from 0.1 to 1 sec apart), then go back to sleep after a period of inactivity. For battery life, it should only wake when the analog input is above a user selectable threshold (that can be adjusted in the field), and needs to start counting input pulses as quickly as 0.1 sec after waking up. Am I on the right track with an nrf51 and expecting to be able to configure LPCOMP to wake the processor when an analog input exceeds a preset value, then starting processing analog input triggered interrupts as quickly as 0.1 sec after the signal that wakes it up?