Im trying to detect power off. The signal power off looks like:
The time to get 0V equal 15seconds. GPIO EVENT and COMP do not see changes in the voltage level, they are blind.
But when signal looks like
then it works fine.
COMP works with hysteresis. Start signal level is 2.4V Threshold id 1.8V or 1.2V.
What can be source of problem?