interactive
Four ways to switch a load with a MOSFET. Press ON and OFF on each, change the gate drive, and watch the node voltages, VGS, current and FET dissipation. The drive menus include the common mistakes, so you can see each one fail. Companion to the MOSFET Switch Primer.
Each FET is a level-1 (square-law) model. In the ohmic region \(I=K\cdot (V_{\text{ov}}\cdot V_{\text{DS}}-V_{\text{DS}}^{2}/2)\); in saturation \(I=K\cdot V_{\text{ov}}^{2}/2\), where \(V_{\text{ov}}=|V_{\text{GS}}|-|V_{\text{th}}|\). The loop current is solved by bisection so that the FET current equals the load current.
Default parts: NMOS \(V_{\text{th}}=2\ \text{V}\), \(R_{\text{DS}(\text{on})}\approx 20\ \text{m}\Omega\) at 10 V. PMOS \(|V_{\text{th}}|=2\ \text{V}\), \(R_{\text{DS}(\text{on})}\approx 50\ \text{m}\Omega\) at −10 V (PMOS is worse for the same size). The "logic-level" NMOS has \(V_{\text{th}}=1\ \text{V}\); the "standard" NMOS has \(V_{\text{th}}=3\ \text{V}\), the high end of a 2–4 V spread.
Drivers are ideal voltage sources. Body diodes are drawn but stay reverse-biased in these orientations. Switching transients, temperature and gate charge are not modelled; the primer covers those.