VGS(th) is not the “turn-on voltage”
At VGS(th) the MOSFET is not on yet. The threshold is defined at a tiny current: typically ID = 250 µA. As a switch, VGS must reach the voltage at which RDS(on) is guaranteed.
| Part | Class | VGS(th) min–max | RDS(on) max (condition) | VGS(max) | VDS / ID |
|---|---|---|---|---|---|
| IRF540N | standard | 2–4 V | 44 mΩ @ 10 V | ±20 V | 100 V / 33 A |
| IRLZ44N | logic level | 1–2 V | 22 mΩ @ 10 V, 25 @ 5 V, 35 @ 4 V | ±16 V | 55 V / 47 A |
| AO3400A | low-voltage logic | 0.65–1.45 V | 26.5 mΩ @ 10 V, 32 @ 4.5 V, 48 @ 2.5 V | ±12 V | 30 V / 5.7 A |
| Si2302CDS | low-voltage logic | 0.4–1.0 V | 57 mΩ @ 4.5 V, 75 @ 2.5 V | ±8 V | 20 V / 2.6 A |
Values are datasheet typ/max figures and vary by vendor. Read the current datasheet of the exact part you use.
What does “logic level” mean?
A logic-level MOSFET has its RDS(on) guaranteed at 4.5 V or less. The name often has an “L”: IRL…, …L. That is enough for 5 V logic.
For a 3.3 V MCU, look for RDS(on) specified at 2.5 V or 2.7 V. “The threshold is 1–2 V, so 3.3 V is plenty” is the wrong reasoning.
Does my MCU fully turn it on?
The gate resistor (RG)
Electrically the gate is a capacitor: Ciss = CGS + CGD, hundreds of pF to a few nF. A series gate resistor does three jobs:
1 · Limit the peak current
A voltage step into an empty capacitor draws a large initial current: Ipk = V/(RG + Rout). RG protects the driver.
2 · Damp ringing
Trace inductance (5–50 nH) and Ciss form an LC circuit. Without RG the gate rings; the MOSFET can false-trigger or exceed VGS(max).
3 · Control dV/dt and EMI
A slower gate means a slower drain edge and less noise. The price is more switching loss (chapter 09).
Gate resistor: RC rise, peak current and ringing
The gate pull-down resistor
Without a pull-down the MOSFET can sit half-on at power-up. During boot and reset the MCU leaves the GPIO as a Hi-Z input, so the gate is connected to nothing.
A floating gate charges from leakage, pickup and above all drain swings through CGD. Near the threshold the load flickers and the MOSFET heats in its linear region.
No pull-down vs 100 kΩ pull-down: the gate during boot
- Value: 10–100 kΩ. 10 kΩ holds harder but draws 330 µA with the GPIO high; 100 kΩ draws only 33 µA.
- Placement: directly gate to source, on the MOSFET side of RG. The gate stays held even if RG opens.
- Turn-off: with the GPIO Hi-Z the gate discharges through RPD·Ciss: 0.2 ms with 100 kΩ and 2 nF. That is slow; normal turn-off should come from GPIO LOW.
VGS(max): protect the oxide
Exceed VGS(max) even briefly and the gate oxide punctures. The limit is ±20 V for most parts, ±12 V or ±8 V for logic-level parts. Ringing peaks and ESD can exceed it too.
- Zener clamp: a 12–15 V zener from gate to source. The standard fix for a P-MOS high-side on a 24 V rail.
- Resistor divider: pull the P-MOS gate to V+·R1/(R1+R2) instead of 0 V. Simple, but VGS follows V+; over a wide supply range a zener is safer.
Driving a P-channel high-side from an MCU
A 3.3 V pin cannot turn off a P-MOS on a 12 V rail. The P-MOS source sits at V+; to turn it off the gate must rise to V+. It is the same trap as the PNP in chapter 05.
The fix: pull the gate up to V+ with a resistor (off) and down with a small N-MOS (2N7002) or NPN (on). Above 20 V, add a divider or a zener.
P-MOS high-side: GPIO → N-MOS → P-MOS gate
Reading the datasheet: which numbers matter?
The first page is marketing; the real information is in two tables:
- Absolute maximum ratings: limits never to be exceeded. They are not operating points.
- Electrical characteristics: each number holds only under its condition.
Below is a fictional 30 V logic-level MOSFET and why each row matters.
| Symbol | Parameter | Value | Why it matters |
|---|---|---|---|
| VDS | Drain–source voltage | 30 V | Supply + inductive spike + ringing must stay below it; keep 20–30 % margin. |
| VGS | Gate–source voltage | ±12 V | Cannot be driven straight from a 12 V gate driver! |
| ID | Continuous drain current (TC = 25 °C / 100 °C) | 40 A / 25 A | Assumes the case at 25 °C; the real limit is thermal (chapter 13). |
| IDM | Pulsed drain current | 160 A | For short pulses (inrush). Check the pulse-width footnote. |
| EAS | Single-pulse avalanche energy | 45 mJ | What it survives once with an unclamped inductive load (chapter 08). |
| PD, TJ | Power dissipation, junction temperature | 35 W, 150 °C | PD also assumes TC = 25 °C; work it out with RθJA. |
| Symbol | Condition | min | typ | max | Why it matters |
|---|---|---|---|---|---|
| V(BR)DSS | VGS = 0, ID = 250 µA | 30 V | Where avalanche starts (in practice 1.1–1.3× higher). | ||
| VGS(th) | VDS = VGS, ID = 250 µA | 1.0 V | 1.5 V | 2.2 V | Only 250 µA: not “on”. The max shows how much noise margin “off” has. |
| RDS(on) | VGS = 10 V, ID = 20 A VGS = 4.5 V, ID = 15 A VGS = 2.5 V, ID = 5 A | 4.0 mΩ 5.5 mΩ 9 mΩ | 5.0 mΩ 7.0 mΩ 13 mΩ | For a 3.3 V MCU the 2.5 V row decides. Use the max, then multiply by ~1.5 for temperature. | |
| Qg | VGS = 4.5 V, VDS = 15 V | 22 nC | 30 nC | Charge needed to fill the gate: speed, driver current, bootstrap capacitor. | |
| Ciss | VGS = 0, VDS = 15 V, f = 1 MHz | 1800 pF | Good for an RC estimate; Qg is more accurate for speed. | ||
| IGSS | VGS = ±12 V | ±100 nA | Gate leakage: tells you how large a pull-down can be. |
XYZ30N05L is a fictional part; values resemble typical MOSFETs of this class.
Worked example
Which MOSFET lets a 3.3 V MCU switch a 12 V, 3 A LED strip?
Low-side switch; gate straight from the GPIO with 100 Ω series and 100 kΩ pull-down. VGS = 3.3 V.
| Part | Guaranteed at 3.3 V? | RDS(on) @ 3.3 V | P = I²R | Verdict |
|---|---|---|---|---|
| AO3400A | Yes (48 mΩ max at 2.5 V) | ≈ 39 mΩ | ≈ 0.35 W | OK Borderline for SOT-23; see the check below. |
| IRLZ44N | No (lowest spec point is 4 V) | ≈ 42 mΩ (typ.) | ≈ 0.38 W | not guaranteed VGS(th) max 2 V: a bad part may stay half-on. Safe with 5 V drive. |
| IRF540N | No (10 V only) | undefined | watts | don’t VGS(th) 2–4 V: at 3.3 V it stays off or burns in the linear region. Needs a 10–12 V gate driver. |
- Channel lossP = (3 A)² · 0.039 Ω≈ 0.35 W
- Temperature riseΔT = 0.35 W · 100 °C/W≈ +35 °Cgive the drain a generous copper pour
Try the same three parts at 3.3 V and 3 A in the “Does my MCU fully turn it on?” lab above. For PWM dimming, consider gate charge time too (chapter 09); a GPIO is fine up to a few kHz.