I have two regulated supplies, 5V and 12V. I need to switch an output between OFF, 5V, and 12V using a microcontroller. The output must be able to source up to 1A.
It should not be possible to short 5V and 12V together due to a software glitch.
Here's my "unsafe" design (possible to short the 2 together by bringing both 12V_EN and 5V_EN high):

It uses back-to-back MOSFETs for 5V to avoid current flowing from 12V to 5V through the body diode whilst 5V_EN is low.
Here's a simulation of it: https://www.falstad.com/circuit/cir...dNRseEo7JA4R7eh-Jz3MorKhlOKk-aUvCEg4-VSUtHqIA
How can I improve this to make it "safe"?
It should not be possible to short 5V and 12V together due to a software glitch.
Here's my "unsafe" design (possible to short the 2 together by bringing both 12V_EN and 5V_EN high):

It uses back-to-back MOSFETs for 5V to avoid current flowing from 12V to 5V through the body diode whilst 5V_EN is low.
Here's a simulation of it: https://www.falstad.com/circuit/cir...dNRseEo7JA4R7eh-Jz3MorKhlOKk-aUvCEg4-VSUtHqIA
How can I improve this to make it "safe"?


