Hi,
I designed a latch that can be turned on when shorting SW_ON pin to the ground and turned off when shorting SW_OFF pin to the ground.
The idea is to wake-up when an RTC clock chip alarm triggers, then do some action including servo operation, and finally turn the power off.
Please find the circuit attached.
When operate from the button, the circuit works as expected, but when the AT328P tries to turn the system off shorting SW_OFF pin to the ground, I just get a reboot.
I suspect that the AT328P gets under powered before the voltage gets low enough for the latch to change state.
How would you troubleshoot this issue?
Any suggestion?