Can I use the analog comperator in the deepsleep mode?
I would trigger the interrupt only above a given, constant voltage...working with high/low or rising/falling are not enough options in my case.
When the source voltage is stable, the interrupt is working perfectly using falling/rising.
But when working on LiPo, falling/rising-interrupt will trigger interrupt randomly, because a wakeup from deepsleep is drawing more current from the battery and will change the supply voltage of my analog sensor and the output voltage will fall.
When going to deepsleep again, the battery voltage will rise and trigger the interrupt again, because the sensor output will rise as the sensor itself is supplied by the battery.
Thanks for Your help.