40. Control high-side load

A 3.3 V microcontroller GPIO CTRL_IN must control the positive 12 V supply to a fixed R_LOAD = 240 Ω.

Using the provided NPN transistor Q1, PNP transistor Q2, and suitable resistors, design a high-side switching circuit so that:

  • At CTRL_IN = 0 V, the load is OFF with V_LOAD ≤ 0.2 V.
  • At CTRL_IN = 3.3 V, the load is ON with V_LOAD ≥ 11 V.
  • GPIO current I_GPIO remains below 1 mA.
  • Both transistors operate in saturation when ON.

The load ground must remain connected to system ground.

Example test cases:

CTRL_INRequired V_LOADGPIO Current
0 V≤0.2 V<1 mA
3.3 V≥11 V<1 mA