Okay in the above picture, I want to supply power to the MCU with a Li-ion Battery 3.7V-4.2V Max when fully charged.
I added a P-channel mosfet to have Reverse Polarity Protection, next to the mosfet there is a 3.3V LDO that sends an aproppiate voltage to the MCU.
There is also a Capacitor to keep the MCU in deep sleep mode for some seconds, and here is the doubt:
¿Do I need to place a schottky diode after the LDO?
Wondering if is dangerous to the battery, when I press the switch to turn off the circuit and then the capacitor release power not only to the MCU also to the battery through the LDO and mosfet or is not dangerous and the schottky diode is only placed there to minimize current leakage?
I'm pretty new to this and I really want to learn about it, I hope some of you guys can help me with this topic, please.