Hello;
I am building a project based on a 3.3v PIC. I'd like to have the PIC be able to turn itself off on demand so that I can safetly shutdown by wrapping up any pending Flash memory writes etc.
I have 2 sources of power. One is continuous and can be used to power the entire solution and the 2nd is switched power. When the 2nd source is switched on, the PIC circuit should power up, then when the 2nd source is switched off, the PIC should finish up any pending flash writes, etc, then shut itself down.
Generally this was what I was thinking... I would use a MOSFET which would switch power going to the device. The MOSFET would provide power to a 3.3v regulator and a 5v regulator which would drive the device's circuitry. Once powered up, the pic would take over control of the MOSFET.
I'd appreciate any feedback or suggestions.
I am building a project based on a 3.3v PIC. I'd like to have the PIC be able to turn itself off on demand so that I can safetly shutdown by wrapping up any pending Flash memory writes etc.
I have 2 sources of power. One is continuous and can be used to power the entire solution and the 2nd is switched power. When the 2nd source is switched on, the PIC circuit should power up, then when the 2nd source is switched off, the PIC should finish up any pending flash writes, etc, then shut itself down.
Generally this was what I was thinking... I would use a MOSFET which would switch power going to the device. The MOSFET would provide power to a 3.3v regulator and a 5v regulator which would drive the device's circuitry. Once powered up, the pic would take over control of the MOSFET.
I'd appreciate any feedback or suggestions.