Some month ago i read anywhere here a thread on how to get an AVR switch itself off and with a switch on again. It was a circuit with 2 transistors (as far i can remember). But i can't find the Thread again. So please help me find that circuit again, or if you want to think about the following:
I want the ATMega to shutdown power with an I/O Port.
The Circuit is powered again when a switched is pressed.
Now the ATMega locks the power control so that the switch can be released.
The ATMega should be able to sense the state of the switch, to detect when it's pressed if running.
Would be Great if you find a solution with FET's ( Power Consumption is not more than 200mA)