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 error in into a factor of two or three in . 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.
Gate-divider bias with source degeneration
The divider sets the gate voltage , drawing no gate current, so megohm resistors are fine and the stage's input resistance is high. The source resistor makes , and combining that with the square law gives a quadratic for :
Of its two roots, take the one with (the other has the gate below threshold and is not a solution of the square law). Then check saturation: . If rises, rises and falls: the same negative feedback as an emitter resistor. A large (several volts across it) makes , insensitive to and less sensitive to .
Drain-feedback bias
A resistor from drain to gate (and no resistor from gate to ground) carries no current, so and : the MOSFET is always in saturation (since ). The equations are and . If rises, 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
Given: , , , , ; NMOS with , (ignore ).
Find: , , , the region, and if is instead, with and without (for "without", keep the original ).
Solve: . With in mA, and : , so
Check: a threshold shift moves the degenerated stage by but the fixed- stage by . Plugging back: , consistent.
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 (, ). The first deck is the bias circuit; the second is the switch of the next section, using the same model with () as a stand-in for a power MOSFET.
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 , 3 % above the hand value: adds 13 % to the square law, and the source feedback absorbs most of it. The switch settles at and : an on-resistance of , close to .
The MOSFET as a low-side switch
Driven hard into triode, a MOSFET is a resistor between drain and source. The design points:
- Gate drive. on a datasheet is where the device begins to conduct (often at ); is specified at a much higher (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 is guaranteed at or lower.
- Conduction loss , with 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 (nanocoulombs). The switching time is roughly ; a 3.3 V pin through gives tens of milliamps, so a 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. ( to ) limits the pin's peak current and damps ringing between the gate capacitance and wiring inductance; ( to ) 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 | gate charge only during switching |
| on-state drop | to , roughly constant | : millivolts at low current |
| loss at 1 A | about 0.2 W plus base drive | : 30 mW for |
| parallel parts | need emitter resistors (runaway) | share current ( rises with temperature) |
| weak points | storage time, base current from the pin | ESD on the gate, spread, gate ringing |
Interactive: a small MOSFET as a switch
The lab's MOSFET with (a small-signal part) is driven at with a load on . It sits deep in triode at , : an on-resistance of . Lower towards 2 V to see it leave triode and stop being a switch.
Guided lab: bias point and a 1 A switch
Hand calculation. Bias: , for ; recompute with your MOSFET's measured . Switch: a logic-level MOSFET with at switching a load: , , .
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 with a DMM (it loads by about 6 %, so measure and instead and compute ). Expect between about and depending on the part's . Switch: use a , resistor (or a 12 V lamp) as the load, current limit 1.5 A, and drive the gate from 3.3 V. Measure with the DMM's 200 mV range directly at the MOSFET's pins: expect tens of millivolts, , and compute . Watch the gate and drain on a scope with a 1 kHz square drive to see the switching edges and the Miller plateau in .
Hazards and safe setup. Low voltage, current-limited. The load resistor dissipates 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. of 2 to 4 V means it may barely turn on: check at your .
- Taking the wrong quadratic root. The spurious root has .
- No gate pull-down. A floating gate can hold charge and leave the load half on.
- Ignoring 's temperature rise when sizing the heat sink.
Practice
- Repeat the worked example with and . Is the MOSFET still in saturation?
- A MOSFET switch carries ; at 25 °C and 1.6 times that when hot. Find the loss.
- Why does a drain-feedback stage always stay in saturation?
Answer
- (mA): , smaller root ; , , , : saturation.
- .
- , and saturation requires only , which always holds since .
Test yourself
Why is a source resistor used in MOSFET bias circuits?
- to increase the gate current
- to make less sensitive to and through negative feedback
- to put the MOSFET into triode
- to raise the input resistance
A MOSFET with switches . Its conduction loss is…
A datasheet's means that at the MOSFET…
- is fully on with its rated
- just begins to conduct, often about
- is in breakdown
- has zero gate charge
In the quadratic for a degenerated MOSFET stage, the larger root is rejected because…
- it gives a negative only
- it corresponds to , where the square law does not apply
- SPICE cannot compute it
- it violates KCL