Loading simulator…
A P-channel high-side MOSFET turns off only when its gate rises near its source voltage. The supplied 12 V high-side circuit stays on with a 0 V gate drive; an N-channel MOSFET and pull-up fix the polarity and provide 3.3 V GPIO control.
Q2 has its source at VCC = 12 V. Pulling its gate near ground makes VGS strongly negative, so it turns on, not off.R_PULL = 10 kΩ from Q2’s gate to the 12 V source node. When nothing pulls the gate down, and Q2 turns off.Q1 has its drain at the P-channel gate node, source at ground, and gate driven by CTRL_IN through I_GPIO. When CTRL_IN = 3.3 V, Q1 turns on and pulls Q2’s gate low. The negative Q2 gate-source voltage turns on the high-side load path.CTRL_IN = 0 V, Q1 is off and R_PULL switches Q2 off.Set CTRL_IN = 0 V and 3.3 V. Check when LOW, when HIGH, and I_GPIO < 1 mA in both settled states. Observe the V_GATE_P probe move toward 12 V for OFF and toward ground for ON.