
Sanity check: ESP32-controlled P-MOS high-side switch
Hi,
Could someone sanity-check this small high-side switch block?
I’m using an ESP32 GPIO (12V_EN, 3.3 V logic) to switch an OLED supply rail. The input rail is currently named +12V, and the switched output is 12V_OLED.
The net names still say 12 V, but the final rail may be higher, possibly up to around 15 V. Because of that, I added the resistor divider on the P-MOS gate instead of pulling it directly to ground, to keep Vgs within a safe range.
The intended behavior is:
12V_ENlow → OLED supply off12V_ENhigh → OLED supply on
Could you check whether this topology is correct, especially the P-MOS source/drain orientation and the gate divider?
Schematic attached.