CSE 2317 W2 · Class 1 The BJT switch: load lines and switching times
Sakeef Sani ↗ ↓ PDF

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

The BJT switch: load lines and switching times

Where a switch lives on the output characteristics, how hard to drive it, and why it cannot let go instantly.

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

The switch that won't let go

You tell a transistor to switch OFF. For the next hundred nanoseconds it keeps conducting as if nothing happened. Then it collapses.

Pop culture

Wile E. Coyote runs off the cliff and hangs in mid-air, legs still spinning, until he looks down. A saturated transistor does the same thing. Today we measure that hang time, give it a name (storage time) and learn to shorten it.

Think deeper

Guess before we start: for a transistor switch driven hard into saturation, which is slower, turning ON or turning OFF?

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

Closer to home: an IPS keeping your fan running through load-shedding switches its power devices thousands of times a second. Every slow edge is wasted as heat.

02 Concept 3–8 min

One line, two addresses: the DC load line

KVL around the collector loop of a common-emitter switch gives the only (IC, VCE) pairs the circuit allows:

VCC=ICRC+VCE    ⟹    IC=VCC−VCERCV_{CC} = I_C R_C + V_{CE}\;\;\Longrightarrow\;\; I_C = \frac{V_{CC}-V_{CE}}{R_C}

A straight line on the output characteristics. The transistor (through IB) picks where on it you sit: the Q-point.

EndVCEICSwitch
CutoffVCC≈ 0OFF (open)
Saturation≈ 0.2 V(VCC − 0.2)/RCON (closed)
Pro tip

Amplifiers live in the middle of the line; switches live only at its two ends. They should race through the middle as fast as possible, because that is where the transistor is both carrying current and dropping voltage, so it heats.

Gotcha

The ideal intercept is VCC/RC at VCE = 0. The real ON point stops just short of it, at VCE(sat) ≈ 0.2 V. Use IC(sat) = (VCC − 0.2)/RC in calculations.

03 Live lab 8–14 min

Slide the Q-point along the line

Load-line explorer Change IB and the Q-point slides along the load line. A switch should only ever sit at the two ends.
SATURATIONCUTOFF (IB= 0)002244668810101212VCE(V)IC(mA)20 µA40 µA60 µA80 µAload line · VCC/RC= 10.0 mAOFFONQ
Active · amplifier territory
VCE3.64 V
IC6.36 mA
β·IB6.00 mA
IB(min)98 µA
Overdrive0.61×
P = VCE·IC23.1 mW
04 Concept 14–18 min

How hard to push: saturation and overdrive

To reach the ON point, the base must supply at least what the load needs, divided by the worst β you might get:

IB  ≥  IB(min)=IC(sat)βminI_B \;\ge\; I_{B(min)} = \frac{I_{C(sat)}}{\beta_{min}}

How far past that minimum you go is the overdrive factor:

ODF=IBIB(min)=βminIBIC(sat),βforced=IC(sat)IB<βmin\text{ODF} = \frac{I_B}{I_{B(min)}} = \frac{\beta_{min}I_B}{I_{C(sat)}},\qquad \beta_{forced} = \frac{I_{C(sat)}}{I_B} < \beta_{min}

Last class: IC(sat) = 4.8 mA, βmin = 50 ⇒ IB(min) = 96 µA; with IB = 0.43 mA, ODF = 0.43/0.096 ≈ 4.5.

Gotcha

In saturation, IC ≠ βIB. β·IB is what the transistor could carry; RC decides what it does carry. The ratio IC/IB in saturation is the forced β, always below β.

Pro tip

Why βmin? One reel of BC547s can range from about 110 to 800 in β, and β drops at low temperature and at high current. Designs use 2–5× overdrive for margin. Why not 50×? Slide 14.

05 Your turn 18–23 min

Your turn · 1: read the load line

04:00
1 Exam CQ

VCC = 9 V, RC = 1.5 kΩ, β = βmin = 100, VCE(sat) = 0.2 V.

  1. Find the load-line end points and the ON point.
  2. For IB = 30 µA find the Q-point. Switch or amplifier?
  3. Find IB(min) and the ODF at IB = 100 µA.
  4. Compare the transistor's power at (b) and in saturation.

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

06 Worked example 23–29 min

Worked example: an ESP32 drives a 12 V relay

Given

A rooftop water-pump controller in a Dhaka apartment: an ESP32 pin (VOH = 3.3 V) switches a 12 V relay coil (Rcoil = 240 Ω) through an NPN with βmin = 50. VBE(sat) = 0.8 V, VCE(sat) = 0.2 V.

Find

RB (standard E12 value) for at least 2× overdrive, the resulting ODF, pin current and ON-state dissipation.

Method: saturated-switch design (Boylestad, transistor switching networks; Millman & Taub, transistor switch)

Solution

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

07 Live lab 29–33 min

Design lab: one pin, three loads

Base-resistor designer Pick a board and a load, then find an RB that saturates the transistor without cooking the pin.
+5 Vcoil 70 ΩQGPIO3.3 V HIGHRB = 10 kΩ0.26 mAVCE 4.09 Vturn-offkick!
IC(sat) needed68.6 mA
IB from pin0.26 mA
Overdrive0.19×
IC actual13.0 mA
PQ53 mW
2× design820 Ω
Not saturated. βminIB = 13.0 mA < 68.6 mA. VCE = 4.09 V: the load is starved and the transistor heats.
08 Concept 33–37 min

Four times that steal your speed

  • td delay: input edge → iC reaches 10 %. Charging the junction capacitances up to cut-in.
  • tr rise: 10 % → 90 % of ICS. Building up base charge through the active region.
  • ts storage: input falls → iC drops to 90 %. Removing the excess charge stored in saturation.
  • tf fall: 90 % → 10 %. Back through the active region.
ton=td+trtoff=ts+tft_{on} = t_d + t_r \qquad t_{off} = t_s + t_f
viniC90%10%tdtrtstftontoffstored chargedrainingsaturated at ICS
Why saturation stores charge

In saturation both junctions are forward-biased, so the collector junction injects too and the base fills with minority carriers beyond what ICS needs. That excess QS must drain before the collector junction can reverse-bias; until then iC stays stuck at ICS.

09 Live lab 37–44 min

The switching oscilloscope

Switching oscilloscope Watch the beam: iC lags the input on both edges. Push the overdrive up and see which bracket grows.
90 %10 %ICS = 10 mAviniB±2.5 mAiC0–10 mAtd 14 nstr 14 nsts 21 nstf 14 nsSTORED CHARGE0.0 pCOFFjunctions reverse-biased
Speed-up capacitor
td14 ns
tr14 ns
ts21 ns
tf14 ns
ton27 ns
toff35 ns
fmax16.0 MHz

β = 50, ICS = 10 mA, τ = 25 ns, τs = 50 ns · leaves saturation after 20 ns (ts formula: 20 ns); readout ts is to the 90 % point

10 Concept 44–48 min

Charge control: formulas you can use

While active, iC relaxes toward βiB with time constant τ. From 0 toward βIB1:

iC(t)=βIB1(1−e−t/τ)  ⇒  tr=τln⁡βIB1−0.1ICSβIB1−0.9ICSi_C(t) = \beta I_{B1}\left(1-e^{-t/\tau}\right)\;\Rightarrow\; t_r = \tau\ln\frac{\beta I_{B1}-0.1I_{CS}}{\beta I_{B1}-0.9I_{CS}}

Excess charge drains with time constant τs, pulled by the reverse current IB2:

ts=τsln⁡IB1+IB2ICS/β+IB2t_s = \tau_s\ln\frac{I_{B1}+I_{B2}}{I_{CS}/\beta + I_{B2}}

Same idea for the fall, now heading toward −βIB2:

tf=τln⁡0.9ICS+βIB20.1ICS+βIB2t_f = \tau\ln\frac{0.9I_{CS}+\beta I_{B2}}{0.1I_{CS}+\beta I_{B2}}

The trade-off

More IB1 (overdrive): βIB1 ≫ ICS, so tr shrinks. But IB1 sits in the numerator of ts: storage grows.

More IB2 (reverse drive): shrinks ts and tf. Costs a negative supply or a clever circuit.

Gotcha

If βIB1 ≤ 0.9 ICS the log's argument goes negative: iC never reaches 90 %. Check βIB1 > ICS (saturation) before using any of these.

11 Worked example 48–53 min

Worked example: rise, storage and fall

Given

β = 50, τ = 20 ns, τs = 40 ns, ICS = 10 mA. Turn-on drive IB1 = 0.5 mA; turn-off reverse drive IB2 = 0.25 mA.

Find

tr, ts and tf. Then: what happens if you double IB1?

Method: charge-control model (Taub & Schilling; Millman & Taub, switching times)

Solution

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

12 Your turn 53–58 min

Your turn · 2: how much reverse drive?

04:00
2 Exam CQ

β = 40, τ = 15 ns, τs = 60 ns, ICS = 20 mA, IB1 = 1.0 mA, IB2 = 0.5 mA.

  1. Confirm saturation and find the ODF.
  2. Find tr and ts.
  3. What IB2 would cut ts to 10 ns?

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

13 Concept 58–61 min

Two cheap fixes for storage time

(a) speed-up capacitorvinCRBQ+VCCRCedges: spike through C · DC: RB only(b) Schottky clampRB+VCCRCSBDexcess IB → collector, not the base

(a) At each edge C is momentarily a short: a big current spike pours charge in on the rising edge and yanks it out on the falling edge. In steady state C is an open circuit, so RB alone sets a modest IB1 and little charge is stored. Both edges get faster. Rule of thumb: RBC ≈ τ.

(b) A Schottky diode (VF ≈ 0.3–0.4 V) from base to collector turns on before the collector junction (≈ 0.5 V) can. Extra base current is diverted into the collector, so the transistor sits at the edge of saturation instead of deep in it.

VCE≈VBE−VSBD≈0.3–0.4 VV_{CE} \approx V_{BE} - V_{SBD} \approx 0.3\text{–}0.4\ \text{V}

No deep saturation, so almost no excess charge: ts ≈ 0.

Pro tip

This is the “S” in 74S and 74LS TTL, where every transistor that could saturate carries a built-in Schottky clamp. Week 3.

14 Think deeper 61–64 min

Critical thinking · two arguments

Think deeper

“More base current is always safer. Let's drive the base with 50× overdrive.” Argue against it.

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

Think deeper

A Schottky diode is still a diode. Why doesn't the clamp diode itself suffer storage time?

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

15 Your turn 64–67 min

Your turn · 3: the dim LED

3 Trap

An Arduino (5 V pin) drives a red LED (VF = 2.0 V) with a 150 Ω series resistor from +5 V through an NPN (βmin = 100). A student picks RB = 100 kΩ “because the base only needs microamps”.

Is the LED fully on? Find IC, VCE and the transistor's power. Then fix RB.

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

16 Concept 67–70 min

Where the switch gets hot

ON: tiny voltage, full current. OFF: full voltage, no current. Both are cheap:

PON≈VCE(sat) IC⋅D  (D=duty),POFF≈0P_{ON} \approx V_{CE(sat)}\,I_{C}\cdot D\ \ (D=\text{duty}),\qquad P_{OFF}\approx 0

Every edge passes through the middle of the load line where V and I are both large. For a resistive load with linear edges each transition costs VCCICt/6:

Psw≈16 VCC IC (tr+tf) fP_{sw} \approx \tfrac{1}{6}\,V_{CC}\,I_{C}\,(t_r+t_f)\,f

Example: 12 V LED strip, 0.5 A, PWM at 50 % duty

VCE(sat) = 0.2 V, tr + tf = 1 µs (a slow power BJT).

PON = 0.2 × 0.5 × 0.5 = 50 mW

At 20 kHz: Psw = ⅙ × 12 × 0.5 × 10−6 × 20 000 = 20 mW

At 200 kHz: 200 mW. Switching loss now dominates.

Pro tip

Faster edges = cooler switch. That is why tr and tf matter even in power electronics, not just in logic.

17 Real world 70–73 min

The valve that killed its transistor

BME corner

A dialysis machine or infusion pump opens and closes a 12 V solenoid pinch valve on the tubing (coil 24 Ω, L ≈ 50 mH, I = 0.49 A). A transistor switches it. On the bench it works perfectly. After about a week in the ward, the transistor is dead.

At turn-off the coil insists on keeping its current: v = L di/dt. Interrupting 0.5 A in 1 µs asks for 0.05 × 0.5/10−6 = 25 kV. The transistor avalanches at its breakdown voltage instead and absorbs the coil's energy:

E=12LI2=12(0.05)(0.5)2=6.25 mJ per turn-offE = \tfrac{1}{2}LI^2 = \tfrac{1}{2}(0.05)(0.5)^2 = 6.25\ \text{mJ per turn-off}
Think deeper

Why does it survive the bench test but die after a week? And what is the fix?

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

18 Pop quiz 73–78 min

Pop quiz

Score 0

Question 1 / 5

On the DC load line, where does a BJT switch sit when it is ON?

19 Recap 78–80 min

Three things to remember

01

A switch lives at two ends of the load line: OFF (VCC, 0) and ON (0.2 V, IC(sat)). Saturate with IB ≥ IC(sat)/βmin, times a 2–5× overdrive.

02

ton = td + tr, toff = ts + tf. Overdrive speeds the rise but stores charge and lengthens ts; reverse drive drains it.

03

Fixes: speed-up capacitor, Schottky clamp (74LS, Week 3), or a device with no stored charge: the MOSFET, next class. Always put a diode across a coil.

HW Before next class

β = 60, τ = 25 ns, τs = 50 ns, ICS = 12 mA, IB1 = 0.6 mA, IB2 = 0.3 mA, td = 5 ns. Find tr, ts, tf, ton, toff and the rough maximum switching frequency 1/(ton + toff).

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