Output Stages: Class A, B and AB
The last stage of an amplifier has a different job from the others. It does not need voltage gain; it must deliver current into a low-impedance load (a loudspeaker, a motor coil, a cable, an ADC's sampling capacitor) over a large voltage swing, without wasting most of the supply power as heat and without distorting the waveform. Those three goals pull against each other, and the compromise is labelled by class: how much of each cycle the output transistors conduct. This lesson compares class A, class B and class AB on efficiency and distortion, shows crossover distortion in SPICE and in an FFT, and explains why class-AB bias must track temperature.
Class A
A class-A stage keeps its transistor conducting over the whole cycle. The simplest is an emitter follower whose emitter is pulled down by a constant current from a negative rail. The bias must be at least the peak load current, , and it flows all the time. With rails and the supplies deliver whatever the signal, so
A stage that feeds the load through a transformer or an inductor (choke) can swing the collector to on one rail and reaches 50 %. Class A is clean, because the transistor never switches off, but most of the power heats the transistor, and the worst case is no signal at all. The load line of a class-A stage is centred on the output characteristics so the swing can go equally far both ways; the lab below shows such a Q-point.
With , and the lab puts the Q-point at , , half of the load line's (the lab gives ), and the transistor dissipates with no signal.
Class B: push-pull
Two complementary emitter followers share the load: the NPN pushes current into it on positive half-cycles and the PNP pulls current out on negative ones. With no signal both are off and the stage draws nothing. Each rail supplies a half-sine of peak , whose average is , so
The transistors together dissipate , which peaks not at full output but at , where each transistor dissipates . That is the number to design the heat sink for.
The price is crossover distortion. An emitter follower needs about of base–emitter voltage before it conducts noticeably, so while the input is between about and neither transistor conducts and the output sticks at zero. The output is the input with a slice cut out of every zero crossing: odd harmonics, worst at small signals (where the dead zone is a larger fraction of the waveform), and particularly audible because they do not shrink with the volume.
Class AB
Bias the two bases about apart, so each transistor already carries a small quiescent current at zero signal, and the dead zone disappears: near zero both conduct, and the hand-over between them is smooth. Efficiency is almost that of class B, because is a few milliamps against hundreds of milliamps of signal.
The bias source must be about and must track temperature. at constant current falls by about ; if the output transistors warm up while the bias voltage stays fixed, rises by roughly 8 % per kelvin, which heats them further: thermal runaway (Bias Stability, Thermal Runaway and the Safe Operating Area). Two fixes are always combined. The bias diodes (or a multiplier, a transistor with a divider between collector and emitter that gives and can be trimmed) are mounted on the output heat sink so they warm with the transistors; and small emitter resistors of to add local negative feedback on . Class D, which switches the output transistors fully on and off and filters the result, reaches efficiencies above 90 % and is the subject of Power Electronics & Motor Drives.
Worked example
Given: a class-B stage on driving to .
Find: load power, supply power, efficiency, and the worst-case dissipation per transistor.
Solve:
Check: agrees. A class-A follower for the same 0.5 W would draw from the supplies at all times, 17 % efficient.
In Python: crossover as a dead zone, and efficiency
A crude model of class B: the output is the input minus a dead zone . One period is sampled and the FFT gives the harmonics.
import numpy as np
# class-B crossover: an ideal follower with a dead zone of +-Vdz
N = 4096
t = np.arange(N) / N
vin = 6.0 * np.sin(2 * np.pi * t)
for vdz in (0.0, 0.35, 0.7):
vout = np.sign(vin) * np.maximum(np.abs(vin) - vdz, 0.0)
X = np.abs(np.fft.rfft(vout)) * 2 / N
thd = np.sqrt(np.sum(X[2:11]**2)) / X[1]
print(f"dead zone {vdz:.2f} V: fundamental {X[1]:.3f} V, H3 {X[3]*1e3:6.1f} mV, THD {100*thd:5.2f} %")
# efficiency against output amplitude, +-12 V rails, 100 Ohm load
VCC, RL = 12.0, 100.0
print(" Vp (V) P_L (W) class A eta class B eta")
for Vp in (3.0, 6.0, 9.0, 12.0):
PL = Vp**2 / (2 * RL)
eta_a = PL / (2 * VCC * VCC / RL) # follower biased by a VCC/RL current source
eta_b = PL / (2 * VCC * Vp / (np.pi * RL)) # push-pull, each rail supplies half-sines
print(f" {Vp:6.1f} {PL:8.3f} {100*eta_a:11.1f} % {100*eta_b:11.1f} %")dead zone 0.00 V: fundamental 6.000 V, H3 0.0 mV, THD 0.00 %
dead zone 0.35 V: fundamental 5.555 V, H3 147.8 mV, THD 3.40 %
dead zone 0.70 V: fundamental 5.111 V, H3 291.0 mV, THD 7.13 %
Vp (V) P_L (W) class A eta class B eta
3.0 0.045 1.6 % 19.6 %
6.0 0.180 6.2 % 39.3 %
9.0 0.405 14.1 % 58.9 %
12.0 0.720 25.0 % 78.5 %
Only odd harmonics appear, because the distortion is symmetrical. Efficiency of both classes falls at low output: class A as , class B only as .
Cross-check with SPICE: class B against class AB
Both stages in one deck, driven by the same -peak, sine into . In the class-AB stage the "diodes" are diode-connected QN and QP transistors (so their matches the output devices); ngspice's fourier command gives the harmonics of the last period.
cat > os.cir <<'EOF'
* Class-B and class-AB complementary followers, +-12 V, 100 Ohm loads
.model QN NPN(Is=1e-14 Bf=200 Vaf=100 Br=2 Rb=10 Cje=10p Cjc=4p Tf=0.4n)
.model QP PNP(Is=1e-14 Bf=150 Vaf=80 Br=2 Rb=10 Cje=10p Cjc=5p Tf=0.6n)
VCC vcc 0 12
VEE vee 0 -12
Vin in 0 SIN(0 6 1k)
* class B: bases driven together
QB1 vcc in ob QN
QB2 vee in ob QP
RLB ob 0 100
* class AB: two diode-connected transistors bias the bases about 2 VBE apart
R1 vcc b1 2.2k
QD1 b1 b1 in QN
QD2 b2 b2 in QP
R2 b2 vee 2.2k
QA1 vcc b1 oa QN
QA2 vee b2 oa QP
RLA oa 0 100
.control
op
print v(b1) v(b2) @qa1[ic] @qb1[ic]
tran 2u 5m
fourier 1k v(ob) v(oa)
.endc
.end
EOF
ngspice -b os.cir 2>&1 | grep -E '^(v\(|@)|THD|^ [13] ' | awk '{ if ($1 ~ /^[13]$/) print " harmonic", $1, "magnitude", $3; else print }'v(b1) = 6.974431e-01
v(b2) = -6.97445e-01
@qa1[ic] = 5.726070e-03
@qb1[ic] = 1.201620e-11
No. Harmonics: 10, THD: 7.09386 %, Gridsize: 200, Interpolation Degree: 1
harmonic 1 magnitude 5.05001
harmonic 3 magnitude 0.290852
No. Harmonics: 10, THD: 0.132701 %, Gridsize: 200, Interpolation Degree: 1
harmonic 1 magnitude 5.90664
harmonic 3 magnitude 0.0071866
The class-B stage idles at and loses of fundamental with 7.1 % THD, close to the 0.7 V dead-zone model. The class-AB stage idles at and cuts the THD by a factor of 53, to 0.13 %. What remains is mostly the follower's gain varying with current ( in series with ); overall negative feedback around the whole amplifier reduces it further (Negative Feedback).
Guided lab: hear the dead zone on a scope
Hand calculation. Class B: about peak out for in, flat steps of about at each zero crossing. Class AB: about peak, of a few mA.
Simulation. The FFT model and the SPICE run.
What you would measure. Use a complementary pair of small-signal transistors (for example a general-purpose NPN/PNP pair rated at least and ) and a , 1 W resistor as the load. Drive with peak at 1 kHz from a function generator (a generator with output can supply the few mA of base current). View input and output on two channels: the class-B output has a visible notch at each zero crossing. Switch on the scope's FFT: expect the third harmonic about below the fundamental (class B) and below (class AB); an 8-bit scope's own ADC spurs and noise (often only about to below full scale, depending on the model and record length) may hide the class-AB harmonics. Measure with a multimeter in the collector lead and watch it creep up as the transistors warm: with no emitter resistors it may rise by 10 to 30 % in a few minutes.
Hazards and safe setup. from a dual bench supply with the current limit at about per channel. The class-AB stage without emitter resistors can run away thermally: touch-test the transistors only after switching off, keep runs short, and add emitter resistors if keeps climbing. The load dissipates up to : use a 1 W part.
Pitfalls
- Sizing the heat sink at full output. Class-B dissipation peaks at , not at maximum.
- Fixed bias for class AB. A bias that does not track temperature leads to runaway; a bias that is too low leaves crossover.
- Judging distortion at full power. Crossover is worst at low levels; measure THD at 1 % and 10 % of full power too.
- Forgetting the driver. The output transistors need base current ; at and that is , so power stages use Darlington or driver transistors.
Practice
- A class-B stage on drives . Find the maximum theoretical load power and the worst-case dissipation per transistor.
- What is the efficiency of that stage at ?
- A multiplier uses and with . What bias voltage does it give?
Answer
- ; per transistor.
- .
- .
Test yourself
The maximum theoretical efficiency of a class-B push-pull stage is…
Crossover distortion is caused by…
- the load being too heavy
- neither transistor conducting while the input is within about of zero
- the supply ripple
- the Early effect
Why are class-AB bias diodes mounted on the output heat sink?
- To cool them
- So their voltage falls with temperature like the output transistors' , keeping stable
- To raise the efficiency
- To block DC
At which output amplitude does a class-B stage on dissipate the most?
- Zero