Our system has an on/off button. This button , should work like this- when you switch(/push) to on, it will immediately turn on the mcu . But when you want to turn off, i will have to check some conditions in the software ,and then decide- allowing the turning off, or , wait for a few seconds and then turn off.
I am looking for a simple way (circuit) to do that .(something with a MOSFet and capacitor ? )
Thanks a lot .