Subsection 5.2.5 Part 4: MOSFETs
Now we’ll look at how the same switch is built with a MOSFET instead of a BJT. Recall its three terminals from the reading, Gate (G), Drain (D) and Source (S), and that it is voltage-controlled: the gate draws essentially no current in steady state because it is insulated from the channel by a thin oxide layer, and a conductive channel opens between drain and source once the gate-to-source voltage \(V_{GS}\) exceeds the threshold \(V_{th}\text{.}\) For our purposes a MOSFET behaves like a voltage-controlled resistor with two resistances, one very small and one effectively infinite, and \(V_{GS}\) chooses between them.

For an N-channel low-side switch the load connects between the supply and the drain; the source goes to ground. Drive the gate HIGH to turn on, LOW to turn off, and no limiting resistor is needed. A P-channel MOSFET (PFET) flips the topology: source at the supply, drain below, and the device turns on when the gate is pulled LOW.


For direct GPIO drive, \(|V_{th}|\) must be below 3.3 V. These are called logic-level MOSFETs. MOSFETs are also easy to saturate fully, which makes them reliable for fast switching without the careful \(R_{\text{lim}}\) sizing a BJT requires. One caution: the thin gate oxide that gives MOSFETs their voltage-controlled behavior also makes them vulnerable to damage from electrostatic discharge (ESD), so handle them carefully.
| MOSFET | BJT | |
|---|---|---|
| Terminals | Gate (G), Drain (D), Source (S) | Base (B), Collector (C), Emitter (E) |
| Controlling quantity | Voltage on the gate; gate current is essentially zero | Current into the base; must be supplied continuously while device is on |
| Saturation | Easy to saturate fully; no base-resistor calculation needed | Requires careful \(R_{\text{lim}}\) sizing to guarantee saturation |
| Power consumption | Lower: no steady-state gate current | Higher: base current flows whenever the device is on |
| Switching speed | Excellent for embedded use; gate capacitance limits very high-frequency switching | Can be slightly faster at very high frequencies (no gate capacitance to charge), at the cost of more power |
| ESD sensitivity | Vulnerable: the thin gate oxide is easily damaged by static discharge | More robust to ESD |
