Driving a MOSFET: gate voltage and resistors

A MOSFET gate draws almost no steady current. The job is applying the right voltage at the right speed. This chapter covers whether a 3.3 V pin fully turns a MOSFET on, the gate resistor, the pull-down and P-channel high-side drive.

DrivingChapter 06

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.

Design rule:   VGS(drive) ≥ the lowest VGS at which RDS(on) is listed VGS(th) only tells you where “certainly off” ends. The threshold falls ~4–7 mV/°C when hot; tie the gate firmly to 0 V to keep it off.
PartClassVGS(th) min–maxRDS(on) max (condition)VGS(max)VDS / ID
IRF540Nstandard2–4 V44 mΩ @ 10 V±20 V100 V / 33 A
IRLZ44Nlogic level1–2 V22 mΩ @ 10 V, 25 @ 5 V, 35 @ 4 V±16 V55 V / 47 A
AO3400Alow-voltage logic0.65–1.45 V26.5 mΩ @ 10 V, 32 @ 4.5 V, 48 @ 2.5 V±12 V30 V / 5.7 A
Si2302CDSlow-voltage logic0.4–1.0 V57 mΩ @ 4.5 V, 75 @ 2.5 V±8 V20 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.

Lab

Does my MCU fully turn it on?

Model: RDS(on) = R0 + A/(VGS − Vth), fitted to the datasheet max points (blue dots). Isat = k·(VGS − Vth)² from typical transfer curves. Vth is typical, so a real part can be worse. Resistive load from 12 V; VGS = VMCU. 100 °C: RDS(on) ×1.6, Vth −0.4 V.
Zero temperature coefficient (ZTC) point The transfer curves for different temperatures cross at one VGS. Below it, a hotter region draws more current and heats itself further. Above it, the MOSFET is self-stabilising. A fully-on switch sits far above ZTC; a MOSFET in linear mode sits below it and risks thermal runaway.

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).

τ = (RG + Rout) · Ciss    tr(10–90 %) ≈ 2,2·τ    Ipk ≈ Vdrive / (RG + Rout)    ζ = ((RG + Rout)/2)·√(Ciss/Lloop) Typical RG: 10–100 Ω from an MCU pin (the pin itself is already 20–50 Ω), 2–20 Ω from a gate driver. ζ ≥ ~0.7 is well damped, ζ < 0.3 rings visibly. Because of the Miller plateau a real gate takes longer than a pure RC.
Lab

Gate resistor: RC rise, peak current and ringing

Model: series R–L–C (R = RG + driver output resistance, C = Ciss constant, no Miller), ideal step. GPIO output resistance ~40 Ω at 3.3 V, ~25 Ω at 5 V, ~1.5 Ω for a gate driver. Dashed line: threshold (~1.5 V).

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.

Animation

No pull-down vs 100 kΩ pull-down: the gate during boot

An 8-second cycle: 0–4 s boot (GPIO Hi-Z), 4–6 s GPIO LOW, 6–8 s GPIO HIGH. The floating gate on the left drifts towards threshold (illustrative); the 100 kΩ on the right holds it at 0 V. Dashed line: threshold region.
  • 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.

Lab

P-MOS high-side: GPIO → N-MOS → P-MOS gate

P-MOS: VGS(max) = ±20 V, RDS(on) specified at −10 V, acceptable at −4.5 V. R1 = 10 kΩ pull-up. Divider: R2 = 10 kΩ; zener: R2 = 2.2 kΩ with a 12 V zener. Turn-off R1·Ciss ≈ 20 µs: for on/off switching, not fast PWM.

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.

XYZ30N05L — Absolute maximum ratings (TA = 25 °C)
SymbolParameterValueWhy it matters
VDSDrain–source voltage30 VSupply + inductive spike + ringing must stay below it; keep 20–30 % margin.
VGSGate–source voltage±12 VCannot be driven straight from a 12 V gate driver!
IDContinuous drain current (TC = 25 °C / 100 °C)40 A / 25 AAssumes the case at 25 °C; the real limit is thermal (chapter 13).
IDMPulsed drain current160 AFor short pulses (inrush). Check the pulse-width footnote.
EASSingle-pulse avalanche energy45 mJWhat it survives once with an unclamped inductive load (chapter 08).
PD, TJPower dissipation, junction temperature35 W, 150 °CPD also assumes TC = 25 °C; work it out with RθJA.
XYZ30N05L — Electrical characteristics (TJ = 25 °C)
SymbolConditionmintypmaxWhy it matters
V(BR)DSSVGS = 0, ID = 250 µA30 VWhere avalanche starts (in practice 1.1–1.3× higher).
VGS(th)VDS = VGS, ID = 250 µA1.0 V1.5 V2.2 VOnly 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.
QgVGS = 4.5 V, VDS = 15 V22 nC30 nCCharge needed to fill the gate: speed, driver current, bootstrap capacitor.
CissVGS = 0, VDS = 15 V, f = 1 MHz1800 pFGood for an RC estimate; Qg is more accurate for speed.
IGSSVGS = ±12 V±100 nAGate 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.

PartGuaranteed at 3.3 V?RDS(on) @ 3.3 VP = I²RVerdict
AO3400AYes (48 mΩ max at 2.5 V)≈ 39 mΩ≈ 0.35 WOK Borderline for SOT-23; see the check below.
IRLZ44NNo (lowest spec point is 4 V)≈ 42 mΩ (typ.)≈ 0.38 Wnot guaranteed VGS(th) max 2 V: a bad part may stay half-on. Safe with 5 V drive.
IRF540NNo (10 V only)undefinedwattsdon’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.
Load12 V, 3 AVGS3.3 VAO3400A RDS(on)≈ 39 mΩRθJA (SOT-23)≈ 100 °C/W
  1. Channel lossP = (3 A)² · 0.039 Ω≈ 0.35 W
  2. Temperature riseΔT = 0.35 W · 100 °C/W≈ +35 °Cgive the drain a generous copper pour
The AO3400A works but is borderline. Measure its temperature for long-term 3 A.

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.