15 billion switches, and your phone isn’t on fire
A current flagship phone chip holds roughly 15–20 billion transistors.
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.
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.
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.
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.
Grow a channel, then pinch it off
Three regions, three equations
| Region | Condition | Drain current |
|---|---|---|
| Cutoff | VGS < VT | ID=0 |
| Triode | VDS < VGS − VT | ID=k[2(VGS−VT)VDS−VDS2] |
| Saturation | VDS ≥ VGS − VT | ID=k(VGS−VT)2 |
For a small VDS drop the VDS² term: the channel is a voltage-controlled resistor.
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.
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.
Why MOSFETs won the switch war
| BJT switch (last class) | MOSFET switch | |
|---|---|---|
| Controlled by | base current IB | gate voltage VGS |
| DC input current when ON | IB ≥ IC(sat)/β, all the time | ≈ 0 (insulated gate) |
| ON voltage | VCE(sat) ≈ 0.2 V, fixed | ID·rDS(on), can be millivolts |
| Turn-off delay | storage time ts: excess minority charge | no storage time (majority carriers) |
| The catch | — | gate capacitance must be charged and discharged every switch |
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.
Critical thinking · “zero gate current”, so why a gate driver?
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.
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.
VDD = 5 V, RD = 10 kΩ, k = 0.5 mA/V², VT = 1 V: the next worked example.
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.
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.
Your turn · 1: pick RD
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.
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.
Your turn · 2: the enhancement-load inverter
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.
Critical thinking · the load that gives up early
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.
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.
NMOS NOR and NAND: parallel or series
| A | B | VY | Y | I (mA) |
|---|---|---|---|---|
| 0 | 0 | 5.000 V | 1 | 0.000 |
| 0 | 1 | 5.000 V | 1 | 0.000 |
| 1 | 0 | 5.000 V | 1 | 0.000 |
| 1 | 1 | 0.245 V | 0 | 0.475 |
Two in series ≈ 500 Ω. VOL = 0.245 V, double a lone inverter's 0.124 V. Try W/L 2×.
Your turn · 3: the price of series transistors
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.
Critical thinking · NAND or NOR?
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.
The NMOS power tax, and the CMOS escape
Every NMOS gate with its output low draws P=VDD⋅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.
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.
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 cell | Average current | Battery life |
|---|---|---|
| Front end always on (3 mA) | 3 mA | ≈ 73 h (3 days) |
| Gated: on 10 % + 5 µA sleep | 0.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.
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.
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.
Pop quiz
Question 1 / 5
An NMOS has VT = 1 V, VGS = 3 V and VDS = 1 V. It is in…
Three things to remember
VGS > VT builds the channel. Triode (VDS < VGS − VT) is the closed switch, rDS(on) ≈ 1/[2k(VGS − VT)]. Saturation is a current source.
NMOS inverter: VIL, VIH at slope −1; NML = VIL − VOL, NMH = VOH − VIH. Enhancement load: VOH = VDD − VT, ratioed.
NOR = parallel, NAND = series (needs n× W/L). Output low = static power VDD·I. CMOS removes it: next week.
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.