44. Fix high-side switching

The provided circuit uses a P-channel MOSFET Q2 to switch a 12 V supply to R_LOAD = 24 Ω.

However, the load remains ON even when CTRL_IN = 0 V.

Fix the circuit using an N-channel MOSFET and suitable resistors so that:

  • At CTRL_IN = 0 V, the load is OFF with V_LOAD ≤ 0.1 V.
  • At CTRL_IN = 3.3 V, the load is ON with V_LOAD ≥ 11.5 V.
  • GPIO current I_GPIO remains below 1 mA.

Keep the supplied MOSFET and load properties unchanged.

Example test cases:

CTRL_INRequired V_LOADGPIO Current
0 V≤0.1 V<1 mA
3.3 V≥11.5 V<1 mA