TExcelTAD
Home › Analog Electronics: Diodes, Transistors & Op-Amps › MOSFET Biasing and the MOSFET Switch

MOSFET Biasing and the MOSFET Switch

A MOSFET's gate draws no DC current, so biasing it looks easy: put a voltage on the gate and the drain current follows. The catch is that the threshold voltage of discrete MOSFETs varies by a volt or more between parts, and the square law turns a 0.5 V0.5\ \text{V} error in VtV_t into a factor of two or three in IDI_D. As with the BJT (BJT Biasing), the cure is negative feedback through a source resistor. The second half of the lesson uses the MOSFET the way most of them are used: as a switch, which for loads above a few hundred milliamps beats the BJT switch of The BJT as a Switch.

VDD = +12 V R12 MOhm R21 MOhm RD2.2k RS1k G: 4.00 V DS +12 V G load12 Ohm RG 100 RGS 100k GPIO0/3.3 V Q1

Gate-divider bias with source degeneration

The divider sets the gate voltage VG=VDDR2/(R1+R2)V_G = V_{DD} R_2/(R_1 + R_2), drawing no gate current, so megohm resistors are fine and the stage's input resistance is high. The source resistor makes VGS=VG−IDRSV_{GS} = V_G - I_D R_S, and combining that with the square law gives a quadratic for IDI_D:

ID=k2(VG−IDRS−Vt)2I_D = \frac{k}{2}\left(V_G - I_D R_S - V_t\right)^2

Of its two roots, take the one with VG−IDRS>VtV_G - I_D R_S > V_t (the other has the gate below threshold and is not a solution of the square law). Then check saturation: VDS≥VovV_{DS} \ge V_{ov}. If IDI_D rises, VSV_S rises and VGSV_{GS} falls: the same negative feedback as an emitter resistor. A large RSR_S (several volts across it) makes ID≈(VG−Vt)/RSI_D \approx (V_G - V_t)/R_S, insensitive to kk and less sensitive to VtV_t.

Drain-feedback bias

A resistor RGR_G from drain to gate (and no resistor from gate to ground) carries no current, so VG=VDV_G = V_D and VDS=VGSV_{DS} = V_{GS}: the MOSFET is always in saturation (since VDS=VGS>VovV_{DS} = V_{GS} > V_{ov}). The equations are ID=(k/2)(VD−Vt)2I_D = (k/2)(V_D - V_t)^2 and VD=VDD−IDRDV_D = V_{DD} - I_D R_D. If IDI_D rises, VDV_D falls and pulls the gate down. It is the MOSFET version of collector feedback and the basis of the diode-connected transistor in Current Mirrors.

Worked example: bias and its sensitivity to VtV_t

Given: VDD=12 VV_{DD} = 12\ \text{V}, R1=2 MΩR_1 = 2\ \text{M}\Omega, R2=1 MΩR_2 = 1\ \text{M}\Omega, RD=2.2 kΩR_D = 2.2\ \text{k}\Omega, RS=1 kΩR_S = 1\ \text{k}\Omega; NMOS with k=2 mA/V2k = 2\ \text{mA/V}^2, Vt=1 VV_t = 1\ \text{V} (ignore λ\lambda).

Find: IDI_D, VGSV_{GS}, VDV_D, the region, and IDI_D if VtV_t is 1.5 V1.5\ \text{V} instead, with and without RSR_S (for "without", keep the original VGSV_{GS}).

Solve: VG=4 VV_G = 4\ \text{V}. With IDI_D in mA, k/2=1 mA/V2k/2 = 1\ \text{mA/V}^2 and RS=1 kΩR_S = 1\ \text{k}\Omega: ID=(3−ID)2I_D = (3 - I_D)^2, so

ID2−7ID+9=0  ⇒  ID=7−132=1.697 mA(the root 5.30 mA gives VGS<Vt)VGS=4−1.697=2.303 V,Vov=1.303 V,VD=12−2.2⋅1.697=8.27 VVDS=8.27−1.70=6.57 V>Vov: saturationVt=1.5 V:ID=(2.5−ID)2⇒ID=1.342 mA;without RS:ID=1⋅(2.303−1.5)2=0.645 mA\begin{aligned} I_D^2 - 7 I_D + 9 &= 0 \;\Rightarrow\; I_D = \frac{7 - \sqrt{13}}{2} = 1.697\ \text{mA} \quad (\text{the root } 5.30\ \text{mA gives } V_{GS} < V_t) \\ V_{GS} &= 4 - 1.697 = 2.303\ \text{V}, \quad V_{ov} = 1.303\ \text{V}, \quad V_D = 12 - 2.2 \cdot 1.697 = 8.27\ \text{V} \\ V_{DS} &= 8.27 - 1.70 = 6.57\ \text{V} > V_{ov}: \text{ saturation} \\ V_t = 1.5\ \text{V}:&\quad I_D = (2.5 - I_D)^2 \Rightarrow I_D = 1.342\ \text{mA}; \quad \text{without } R_S: I_D = 1 \cdot (2.303 - 1.5)^2 = 0.645\ \text{mA} \end{aligned}

Check: a 0.5 V0.5\ \text{V} threshold shift moves the degenerated stage by −21 %-21\ \% but the fixed-VGSV_{GS} stage by −62 %-62\ \%. Plugging 1.697 mA1.697\ \text{mA} back: (2.303−1)2=1.698(2.303 - 1)^2 = 1.698, consistent.

python · try it yourself
import numpy as np

def bias(VG, RS, k=2e-3, Vt=1.0):
    # (k/2) RS^2 ID^2 - (k RS (VG - Vt) + 1) ID + (k/2)(VG - Vt)^2 = 0, smaller root
    a = k / 2 * RS**2
    b = -(k * RS * (VG - Vt) + 1)
    c = k / 2 * (VG - Vt) ** 2
    return (-b - np.sqrt(b * b - 4 * a * c)) / (2 * a)

VDD, RD, RS = 12.0, 2.2e3, 1e3
VG = VDD * 1e6 / 3e6
for Vt in [0.5, 1.0, 1.5, 2.0]:
    ID = bias(VG, RS, Vt=Vt)
    print(f"Vt = {Vt:.1f} V: ID = {ID*1e3:.3f} mA, VD = {VDD - RD*ID:.2f} V, VGS = {VG - RS*ID:.3f} V")

# drain-feedback bias, RD = 4.7k: ID = (k/2)(VDD - ID RD - Vt)^2 is the same quadratic with VG = VDD, RS = RD
ID = bias(VDD, 4.7e3)
print(f"drain feedback: ID = {ID*1e3:.3f} mA, VD = VG = {VDD - 4.7e3*ID:.3f} V")
Vt = 0.5 V: ID = 2.064 mA, VD = 7.46 V, VGS = 1.936 V
Vt = 1.0 V: ID = 1.697 mA, VD = 8.27 V, VGS = 2.303 V
Vt = 1.5 V: ID = 1.342 mA, VD = 9.05 V, VGS = 2.658 V
Vt = 2.0 V: ID = 1.000 mA, VD = 9.80 V, VGS = 3.000 V
drain feedback: ID = 2.037 mA, VD = VG = 2.427 V

Cross-check with SPICE

MN is the course's level-1 NMOS (k=2 mA/V2k = 2\ \text{mA/V}^2, λ=0.02 V−1\lambda = 0.02\ \text{V}^{-1}). The first deck is the bias circuit; the second is the switch of the next section, using the same model with W/L=1000W/L = 1000 (k=2 A/V2k = 2\ \text{A/V}^2) as a stand-in for a power MOSFET.

bash · try it yourself
cat > bias.cir <<'EOF'
* Gate-divider bias with source degeneration
.model MN NMOS(Level=1 Vto=1 Kp=2m Lambda=0.02)
VDD vdd 0 12
R1 vdd g 2meg
R2 g 0 1meg
RD vdd d 2.2k
RS s 0 1k
M1 d g s s MN W=1u L=1u
.control
op
let id = v(s)/1k
print v(g) v(s) v(d) id
.endc
.end
EOF
ngspice -b bias.cir 2>&1 | grep -E '^(v\(|id)'
cat > sw.cir <<'EOF'
* Low-side switch: NMOS with W/L = 1000, 3.3 V gate, 12 Ohm load on 12 V
.model MN NMOS(Level=1 Vto=1 Kp=2m Lambda=0.02)
VDD vdd 0 12
VG g 0 3.3
RL vdd d 12
M1 d g 0 0 MN W=1000u L=1u
.control
op
let id = (12 - v(d))/12
let ron = v(d)/id
print v(d) id ron
.endc
.end
EOF
ngspice -b sw.cir 2>&1 | grep -E '^(v\(|id|ron)'
v(g) = 4.000000e+00
v(s) = 1.753192e+00
v(d) = 8.142977e+00
id = 1.753192e-03
v(d) = 2.232321e-01
id = 9.813973e-01
ron = 2.274636e-01

The bias current is 1.753 mA1.753\ \text{mA}, 3 % above the hand value: λVDS=0.02⋅6.4\lambda V_{DS} = 0.02 \cdot 6.4 adds 13 % to the square law, and the source feedback absorbs most of it. The switch settles at VDS=0.223 VV_{DS} = 0.223\ \text{V} and 0.981 A0.981\ \text{A}: an on-resistance of 0.227 Ω0.227\ \Omega, close to 1/(kVov)=1/(2⋅2.3)=0.217 Ω1/(k V_{ov}) = 1/(2 \cdot 2.3) = 0.217\ \Omega.

The MOSFET as a low-side switch

Driven hard into triode, a MOSFET is a resistor RDS(on)R_{DS(on)} between drain and source. The design points:

  • Gate drive. VGS(th)V_{GS(th)} on a datasheet is where the device begins to conduct (often at 250 μA250\ \mu\text{A}); RDS(on)R_{DS(on)} is specified at a much higher VGSV_{GS} (10 V for standard parts, 4.5 V or 2.5 V for logic-level parts). From a 3.3 V pin, choose a part whose RDS(on)R_{DS(on)} is guaranteed at VGS=2.5 VV_{GS} = 2.5\ \text{V} or lower.
  • Conduction loss P=ID2RDS(on)P = I_D^2 R_{DS(on)}, with RDS(on)R_{DS(on)} taken at the hot junction temperature (it rises by roughly 1.5 to 2 times from 25 °C to 125 °C).
  • Gate charge. The gate is a capacitor, characterised by the total gate charge QgQ_g (nanocoulombs). The switching time is roughly t≈Qg/IGt \approx Q_g/I_G; a 3.3 V pin through RG=100 ΩR_G = 100\ \Omega gives tens of milliamps, so a 10 nC10\ \text{nC} part switches in a few hundred nanoseconds to about a microsecond. At high PWM frequencies use a gate driver IC (Power Electronics).
  • Gate resistor and pull-down. RGR_G (1010 to 100 Ω100\ \Omega) limits the pin's peak current and damps ringing between the gate capacitance and wiring inductance; RGSR_{GS} (1010 to 100 kΩ100\ \text{k}\Omega) keeps the gate off while the driver is in reset.
  • Inductive loads still need a flyback diode; the MOSFET's body diode does not help a low-side switch.
BJT switch MOSFET switch
drive continuous base current IC/βforcedI_C/\beta_\text{forced} gate charge only during switching
on-state drop VCE,sat≈0.1V_{CE,\text{sat}} \approx 0.1 to 0.3 V0.3\ \text{V}, roughly constant IDRDS(on)I_D R_{DS(on)}: millivolts at low current
loss at 1 A about 0.2 W plus base drive I2RI^2 R: 30 mW for 30 mΩ30\ \text{m}\Omega
parallel parts need emitter resistors (runaway) share current (RDS(on)R_{DS(on)} rises with temperature)
weak points storage time, base current from the pin ESD on the gate, VGS(th)V_{GS(th)} spread, gate ringing

Interactive: a small MOSFET as a switch

The lab's MOSFET with k=10 mA/V2k = 10\ \text{mA/V}^2 (a small-signal part) is driven at VGS=5 VV_{GS} = 5\ \text{V} with a 500 Ω500\ \Omega load on 12 V12\ \text{V}. It sits deep in triode at ID=22.77 mAI_D = 22.77\ \text{mA}, VDS=616.7 mVV_{DS} = 616.7\ \text{mV}: an on-resistance of 27 Ω27\ \Omega. Lower VGSV_{GS} towards 2 V to see it leave triode and stop being a switch.

020 mA40 mA60 mA80 mA0510VDS (V)ID2.0 V2.5 V3.0 V3.5 V4.0 V4.5 V5.0 VQtriodesaturationVGS5.00 VVov4.00 Vload lineVDD12.0 VVDD/RD24.0 mAQ-pointID22.8 mAVDS617 mVtriode

Guided lab: bias point and a 1 A switch

Hand calculation. Bias: ID≈1.7 mAI_D \approx 1.7\ \text{mA}, VD≈8.3 VV_D \approx 8.3\ \text{V} for Vt=1 VV_t = 1\ \text{V}; recompute with your MOSFET's measured VtV_t. Switch: a logic-level MOSFET with RDS(on)=30 mΩR_{DS(on)} = 30\ \text{m}\Omega at VGS=2.5 VV_{GS} = 2.5\ \text{V} switching a 12 Ω12\ \Omega load: ID=1.0 AI_D = 1.0\ \text{A}, VDS=30 mVV_{DS} = 30\ \text{mV}, P=30 mWP = 30\ \text{mW}.

Simulation. The Python run and the SPICE decks.

What you would measure. Bias stage: on a 12 V bench supply with a 20 mA limit, measure VGV_G with a 10 MΩ10\ \text{M}\Omega DMM (it loads R2∥R1=667 kΩR_2 \parallel R_1 = 667\ \text{k}\Omega by about 6 %, so measure VSV_S and VDV_D instead and compute ID=VS/RSI_D = V_S/R_S). Expect IDI_D between about 11 and 2 mA2\ \text{mA} depending on the part's VtV_t. Switch: use a 12 Ω12\ \Omega, 25 W25\ \text{W} resistor (or a 12 V lamp) as the load, current limit 1.5 A, and drive the gate from 3.3 V. Measure VDSV_{DS} with the DMM's 200 mV range directly at the MOSFET's pins: expect tens of millivolts, ±1 mV\pm 1\ \text{mV}, and compute RDS(on)R_{DS(on)}. Watch the gate and drain on a scope with a 1 kHz square drive to see the switching edges and the Miller plateau in VGSV_{GS}.

Hazards and safe setup. Low voltage, current-limited. The load resistor dissipates 12 W12\ \text{W} and gets hot: mount it on a heat sink or in free air away from the breadboard and from fingers. Gate ESD precautions as in MOSFET and JFET.

Pitfalls

  • Driving a standard MOSFET from 3.3 V. VGS(th)V_{GS(th)} of 2 to 4 V means it may barely turn on: check RDS(on)R_{DS(on)} at your VGSV_{GS}.
  • Taking the wrong quadratic root. The spurious root has VGS<VtV_{GS} < V_t.
  • No gate pull-down. A floating gate can hold charge and leave the load half on.
  • Ignoring RDS(on)R_{DS(on)}'s temperature rise when sizing the heat sink.

Practice

  1. Repeat the worked example with RS=2.2 kΩR_S = 2.2\ \text{k}\Omega and Vt=1 VV_t = 1\ \text{V}. Is the MOSFET still in saturation?
  2. A MOSFET switch carries 3 A3\ \text{A}; RDS(on)=20 mΩR_{DS(on)} = 20\ \text{m}\Omega at 25 °C and 1.6 times that when hot. Find the loss.
  3. Why does a drain-feedback stage always stay in saturation?
Answer
  1. ID=(3−2.2ID)2I_D = (3 - 2.2 I_D)^2 (mA): 4.84ID2−14.2ID+9=04.84 I_D^2 - 14.2 I_D + 9 = 0, smaller root ID=0.926 mAI_D = 0.926\ \text{mA}; VGS=1.962 VV_{GS} = 1.962\ \text{V}, Vov=0.962 VV_{ov} = 0.962\ \text{V}, VD=9.96 VV_D = 9.96\ \text{V}, VDS=7.92 VV_{DS} = 7.92\ \text{V}: saturation.
  2. P=9⋅0.032=0.29 WP = 9 \cdot 0.032 = 0.29\ \text{W}.
  3. VDS=VGSV_{DS} = V_{GS}, and saturation requires only VDS≥VGS−VtV_{DS} \ge V_{GS} - V_t, which always holds since Vt>0V_t > 0.

Test yourself

Why is a source resistor used in MOSFET bias circuits?

  1. to increase the gate current
  2. to make IDI_D less sensitive to VtV_t and kk through negative feedback
  3. to put the MOSFET into triode
  4. to raise the input resistance

A MOSFET with RDS(on)=50 mΩR_{DS(on)} = 50\ \text{m}\Omega switches 2 A2\ \text{A}. Its conduction loss is…

  1. 0.1 W0.1\ \text{W}
  2. 0.2 W0.2\ \text{W}
  3. 1 W1\ \text{W}
  4. 2.5 W2.5\ \text{W}

A datasheet's VGS(th)=1.5 VV_{GS(th)} = 1.5\ \text{V} means that at VGS=1.5 VV_{GS} = 1.5\ \text{V} the MOSFET…

  1. is fully on with its rated RDS(on)R_{DS(on)}
  2. just begins to conduct, often about 250 μA250\ \mu\text{A}
  3. is in breakdown
  4. has zero gate charge

In the quadratic for a degenerated MOSFET stage, the larger root is rejected because…

  1. it gives a negative VDSV_{DS} only
  2. it corresponds to VGS<VtV_{GS} < V_t, where the square law does not apply
  3. SPICE cannot compute it
  4. it violates KCL