CSE 2317 W2 · Class 2 MOSFET switches and MOS gates
Sakeef Sani ↗ ↓ PDF

CSE 2317Week 2Class 2Sunday · 11:00 AM – 12:20 PM80 min

MOSFET switches and MOS gates

A switch you drive with voltage instead of current, and the NMOS inverters, NANDs and NORs built from it.

S present · L lecturer notes · → next step · F full screen · P presenter window
01 Cold open 0–4 min

15 billion switches, and your phone isn’t on fire

A current flagship phone chip holds roughly 15–20 billion transistors.

Pop culture

Doctor Strange checked 14,000,605 futures. Your phone's processor has about a thousand times more switches than that, and each one flips up to a few billion times per second.

Last class the BJT switch needed base current just to stay on. Multiply that by 15 billion.

Think deeper

Suppose every one of 15 billion switches leaked just 1 µA from a 1 V supply while idle. How much power is that?

Argue it in pairs for two minutes. There may be more than one defensible answer.

02 Concept 4–9 min

Enhancement NMOS: the gate builds its own wire

  • Structure: p-type substrate, two heavily doped n+ islands (source S, drain D), a thin SiO2 insulator and a gate G on top. Metal–Oxide–Semiconductor.
  • VGS = 0: S and D are two back-to-back pn junctions. No path, no current. Normally OFF (enhancement mode).
  • VGS > VT: positive gate charge pulls electrons to the surface and inverts it into a thin n-channel joining S to D. VT is the threshold voltage (≈ 0.3–1 V on chips, 1–4 V in power MOSFETs).
  • The gate is a capacitor plate: in DC, IG ≈ 0. The input is controlled by voltage, not current.
D (drain)S (source)Gbroken line =no channel yet
Pop culture

The channel is Hogwarts' Room of Requirement: it doesn't exist until you ask hard enough (VGS > VT), and the harder you ask, the bigger it gets.

03 Live lab 9–16 min

Grow a channel, then pinch it off

NMOS explorer: build a channel, then pinch it Raise VGS past VT to grow the channel; raise VDS past VGS − VT to pinch it off at the drain.
S · 0 VG · 3.00 VD · 4.00 Vp-type substrate (body, 0 V)n+ sourcen+ drainpinch-offSiO₂+++++++B
02.557.51001234562 V3 V4 V5 VTRIODESATURATIONVGSVDS(V)ID(mA)
RegionSaturation · current source
ID2.00 mA
VGS − VT2.00 V
rDS(on) ≈ 1/[2k(VGS−VT)]500 Ω
04 Concept 16–21 min

Three regions, three equations

RegionConditionDrain current
CutoffVGS < VTID=0I_D = 0
TriodeVDS < VGS − VTID=k[2(VGS−VT)VDS−VDS2]I_D = k\left[2(V_{GS}-V_T)V_{DS} - V_{DS}^2\right]
SaturationVDS ≥ VGS − VTID=k(VGS−VT)2I_D = k(V_{GS}-V_T)^2

For a small VDS drop the VDS² term: the channel is a voltage-controlled resistor.

ID≈2k(VGS−VT) VDS  ⇒  rDS(on)≈12k(VGS−VT)I_D \approx 2k(V_{GS}-V_T)\,V_{DS} \;\Rightarrow\; r_{DS(on)} \approx \frac{1}{2k(V_{GS}-V_T)}
Cutoffopen switch
Triodeclosed switch, rDS(on)
Saturationcurrent source: only passed through while switching
Gotcha

Name trap. A saturated BJT is a closed switch. A saturated MOSFET is a current source (like BJT active). The MOSFET's closed-switch region is triode.

05 Worked example 21–27 min

Worked example: region and current

Given

Enhancement NMOS with k = 0.4 mA/V², VT = 1.5 V.

Find

Region and ID for (a) VGS = 1 V, VDS = 5 V; (b) VGS = 4 V, VDS = 5 V; (c) VGS = 4 V, VDS = 0.5 V. (d) rDS(on) at VGS = 4 V; compare with VDS/ID in (c).

Method: compute the overdrive, compare with VDS, then pick the equation (Boylestad, enhancement MOSFET analysis)

Solution

Predict the answer first. Then reveal one step at a time.

06 Concept 27–30 min

Why MOSFETs won the switch war

BJT switch (last class)MOSFET switch
Controlled bybase current IBgate voltage VGS
DC input current when ONIB ≥ IC(sat)/β, all the time≈ 0 (insulated gate)
ON voltageVCE(sat) ≈ 0.2 V, fixedID·rDS(on), can be millivolts
Turn-off delaystorage time ts: excess minority chargeno storage time (majority carriers)
The catch—gate capacitance must be charged and discharged every switch
Gotcha

Zero DC gate current is not zero gate current. The gate is a capacitor: each transition needs a charge Q = CG·ΔV delivered in a short time, which means a large transient current.

Remember ts from last class, the BJT that refused to switch off? A MOSFET has nothing stored in a base to sweep out; its speed is set only by how fast you can move gate charge.

07 Think deeper 30–33 min

Critical thinking · “zero gate current”, so why a gate driver?

★ Critical thinking

A drone's motor controller uses a power MOSFET: total gate charge Qg = 60 nC (at VGS = 10 V), VGS(th) = 2–4 V, switched by 20 kHz PWM.

A student connects it straight to a 3.3 V microcontroller pin (20 mA max): "MOSFETs draw no gate current, so it's fine."

Explain, with numbers, why the MOSFET gets hot and why engineers add a gate driver.

Work it out first.
Press Solve when the class has an answer.

08 Concept 33–37 min

The resistive-load NMOS inverter

  • Vin < VT: MOSFET off, Vo = VDD = VOH.
  • Just past VT: saturation, Vo = VDD − RDk(Vin − VT)², falling fast.
  • Vin high: triode, rDS(on) ≪ RD gives a small VOL.

The edges of the "valid" input bands are where the curve's slope is −1: below VIL and above VIH noise is attenuated, between them it is amplified.

NML=VIL−VOLNMH=VOH−VIHNM_L = V_{IL} - V_{OL}\qquad NM_H = V_{OH} - V_{IH}
NM LNM H0123456012345VOLVIL (slope −1)VIH (slope −1)Vin (V)Vo (V)

VDD = 5 V, RD = 10 kΩ, k = 0.5 mA/V², VT = 1 V: the next worked example.

09 Worked example 37–41 min

VTC part 1: VOH, VOL and VIL

Given

Resistive-load NMOS inverter: VDD = 5 V, RD = 10 kΩ, k = 0.5 mA/V², VT = 1 V.

Find

VOH, VOL, VIL, and the static power with the output low.

Method: equate driver and load currents (Taub & Schilling, MOS inverter)

Solution

Predict the answer first. Then reveal one step at a time.

10 Worked example 41–45 min

VTC part 2: VIH and noise margins

Given

Same inverter (a = kRD = 5 V⁻¹). From part 1: VOH = 5 V, VOL = 0.124 V, VIL = 1.1 V.

Find

VIH, NML and NMH.

Method: slope −1 by implicit differentiation, solved together with the VTC

Solution

Predict the answer first. Then reveal one step at a time.

11 Your turn 45–48 min

Your turn · 1: pick RD

03:00
1 Exam CQ

Same MOSFET (k = 0.5 mA/V², VT = 1 V), VDD = 5 V, input high = 5 V.

The next stage needs VOL ≤ 0.2 V. Find the minimum RD, pick a standard E12 value, and give the static power when the output is low.

Work it out first.
Press Solve when the class has an answer.

12 Live lab 48–54 min

Swap the resistor for a transistor

A 10 kΩ on-chip resistor is huge, and slow: into 1 pF it rises in 2.2RDCL = 22 ns, while rDS(on) = 250 Ω pulls down in ≈ 0.55 ns. Use a transistor as the load.

NMOS inverter lab Pick a load, slide Vin, then compare the noise margins and the static power when the output is low.
Resistor RD from VDD: the textbook starting point.
+VDD = 5 VRD 10 kΩMDVinVo5.00 V0.60 VID ≈ 0
NM LNM H012345012345VOH 5.00VOL 0.12VILVIHVin (V)Vo (V)
VOH / VOL5.00 / 0.124 V
VIL / VIH1.10 / 2.05 V
NML = VIL − VOL0.98 V
NMH = VOH − VIH2.95 V
Static I (out low)488 µA
P = VDD·I (out low)2.44 mW
13 Your turn 54–58 min

Your turn · 2: the enhancement-load inverter

2 Exam CQ

Enhancement-load NMOS inverter: VDD = 5 V, both VT = 1 V, driver kD = 0.5 mA/V², load kL = 0.05 mA/V². Ignore body effect.

Find (a) VOH, (b) VOL when Vin = VOH, (c) the static power with the output low.

Work it out first.
Press Solve when the class has an answer.

14 Think deeper 58–60 min

Critical thinking · the load that gives up early

Think deeper

Why can the enhancement-load inverter never output the full 5 V, however long you wait?

Argue it in pairs for two minutes. There may be more than one defensible answer.

Think deeper

Same inverter, but kD = kL (ratio 1). What is VOL? Why is NMOS called ratioed logic?

Argue it in pairs for two minutes. There may be more than one defensible answer.

15 Live lab 60–64 min

NMOS NOR and NAND: parallel or series

NMOS NAND / NOR lab Flip A and B. Current (and power) flows only when a path to ground exists. Compare the '0' of the two gates.
+VDD = 5 VRD 10 kΩY0.245 VMAMBA5 VB5 Vseries: BOTH must be on2 × rDS(on)in the path
ABVYYI (mA)
005.000 V10.000
015.000 V10.000
105.000 V10.000
110.245 V00.475
rDS(on) each250 Ω
P now2.38 mW

Two in series ≈ 500 Ω. VOL = 0.245 V, double a lone inverter's 0.124 V. Try W/L 2×.

16 Your turn 64–67 min

Your turn · 3: the price of series transistors

3 Exam CQ

Two-input NMOS NAND: RD = 10 kΩ, VDD = 5 V, each pull-down k = 0.5 mA/V², VT = 1 V, A = B = 5 V.

Estimate VOL, compare it with a single inverter, and find the k (W/L) each transistor needs to restore the inverter's VOL.

Work it out first.
Press Solve when the class has an answer.

17 Think deeper 67–69 min

Critical thinking · NAND or NOR?

★ Trap

A classmate's notes say: “NAND is always preferred over NOR, in every logic family.”

Is that true for NMOS logic? Does your answer change for CMOS? Justify with what you saw in the gate lab.

Work it out first.
Press Solve when the class has an answer.

18 Concept 69–72 min

The NMOS power tax, and the CMOS escape

Every NMOS gate with its output low draws P=VDD⋅IP = V_{DD}\cdot I continuously. Our inverter: 2.44 mW.

One million such gates, half of them low: 1 × 10⁶ × 0.5 × 2.44 mW ≈ 1.2 kW. This is why NMOS chips of the late 1970s ran warm with only tens of thousands of transistors.

CMOS pairs a PMOS pull-up with an NMOS pull-down on the same input. In either steady state one of them is off, so there is no path from VDD to ground: static current ≈ leakage only, VOH = VDD, VOL = 0.

VDDPMOSNMOSinout
Pro tip

Try the CMOS tab in the inverter lab: full 0–5 V swing, a symmetric VTC, and static power ≈ 0. Power is now spent only while switching. Next week: CMOS in depth, plus TTL, ECL and I²L.

19 Real world 72–75 min

A MOSFET that makes a battery last a month

A finger pulse oximeter or an ECG patch has an analog front end and LEDs that draw a few mA. A MOSFET load switch between the battery and that circuitry turns it on only while measuring: power gating.

220 mAh cellAverage currentBattery life
Front end always on (3 mA)3 mA≈ 73 h (3 days)
Gated: on 10 % + 5 µA sleep0.305 mA≈ 721 h (30 days)

A switch with rDS(on) = 50 mΩ drops only 3 mA × 50 mΩ = 0.15 mV: the sensor never notices it is there.

BME corner

For a community health worker screening children for pneumonia (low SpO₂) in a rural upazila, a device that runs a month between charges is the difference between used and abandoned. Every wearable ECG and glucose monitor uses the same trick.

Drone corner

A quadcopter, like the student-built drones flown at Bangladeshi university robotics fests, spins each motor with an ESC: an H-bridge (or 3-phase bridge) of power MOSFETs at tens of kHz, each with a gate driver, exactly the design from slide 7.

20 Pop quiz 75–78 min

Pop quiz

Score 0

Question 1 / 5

An NMOS has VT = 1 V, VGS = 3 V and VDS = 1 V. It is in…

21 Recap 78–80 min

Three things to remember

01

VGS > VT builds the channel. Triode (VDS < VGS − VT) is the closed switch, rDS(on) ≈ 1/[2k(VGS − VT)]. Saturation is a current source.

02

NMOS inverter: VIL, VIH at slope −1; NML = VIL − VOL, NMH = VOH − VIH. Enhancement load: VOH = VDD − VT, ratioed.

03

NOR = parallel, NAND = series (needs n× W/L). Output low = static power VDD·I. CMOS removes it: next week.

HW Before next class

A 3.3 V resistive-load NMOS inverter: RD = 20 kΩ, k = 0.25 mA/V², VT = 0.7 V. Find VOL, VIL, VIH, both noise margins and the static power with the output low. Check each region.

Work it out first.
Press Solve when the class has an answer.