Using comparator in deepsleep?

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.

I do not think so as part of the processor would have to run but I do not know what processor you have. I have done similar things with a micropower opamp such as a OPA241. You need to be careful about the input front end resistors divider values and the reference current.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.