I'm designing a device which will be off more than 99% of the time. The device is powered from a single AA battery through a DC-DC converter (has enable pin) and comes to life when a button is pressed. The device executed a routine and turns off.
In order to start working I'm thinking of enabling power to the MCU using the button that will latch the DC-DC converter enable pin high and after the MCU is done it will release the latch so the DC-DC enable will go low and the system will turn off. This will enable me to save the maximal battery life.
Anything wrong with this approach?
Here is a latching circuit I've thought about. The user presses SW1, which is momentary, and that pulls the enable pin high. The DC-DC converter powers up and outputs 3.3V which is fed back to the enable pin and keep it high.
An N-channel mosfet is kept open using a resistor from gate to GND. This could be 200k - 500k range. When it is time to shut down the gate which is connected to an MCU pin is pulled high and that drops the voltage at the enable pin.
Update 2 So it seems this DC-DC is a bit strange due to the diode being forward biased all the time. I've picked another device: XT1861. This has the enable switch setup a bit differently so here is an idea how to implement a latching circuit using the new DC-DC (I don't know if this actually works). The idea here is to use the switch to open the pass FET which will start the converter and that voltage will keep Q1 conducting which in turns keeps the FET conducting. Pulling the MCU's pin to ground will close Q1. That's the idea anyway...