I'm currently working in a circuit which I'm trying to switch on using a button. The main idea is that when button is pressed, the power source gives power to a PIC microcontroller which writes '1' to PWR_CTL, causing the circuit to remain ON. I can use BTN_IN to detect when the button is pressed again for two seconds, and then, write '0' to PWR_CTL and power off the circuit.
The problem is: When the circuit is off, I have about 1.7 V in V_IN, which means to have 1V in the regulator output. This is causing several problems in the rest of the circuit, since it is not completely powered off (in addition I have an undesiderable consumption).
Can anybody suggest a simple soluition to keep the power source completely off?