Hi,
I have a polarity protection circuit using a P channel mosfet that is working (Q1, R9, D28). R9 was initially connected to ground.
I'd like to add a switch to:
- Power on the circuit when it's pressed (no need for latching circuit, the switch keeps its position)
- When the switch is turned OFF, the MCU keeps the circuit active until it decides to shut it down by itself.
Since the switch I use is DPST, I guess one contact can be used to tell the MCU when the user wants to power down the circuit, then with the additional MOSFET force Q1 to switch off by setting MCU_POWEROFF_CONTROL to input (high impedance). I'd like to use a p-ch mosfet too for BOM simplicity.
I'm a beginner, would that work ?