TExcelTAD
Home › Analog Electronics: Diodes, Transistors & Op-Amps › Output Stages: Class A, B and AB

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 IQI_Q from a negative rail. The bias must be at least the peak load current, IQ≥Vp/RLI_Q \ge V_p/R_L, and it flows all the time. With ±VCC\pm V_{CC} rails and IQ=VCC/RLI_Q = V_{CC}/R_L the supplies deliver PS=2VCCIQ=2VCC2/RLP_S = 2 V_{CC} I_Q = 2V_{CC}^2/R_L whatever the signal, so

ηA=PLPS=Vp2/(2RL)2VCC2/RL=14(VpVCC)2≤25 %\eta_A = \frac{P_L}{P_S} = \frac{V_p^2/(2R_L)}{2V_{CC}^2/R_L} = \frac{1}{4}\left(\frac{V_p}{V_{CC}}\right)^2 \le 25\ \%

A stage that feeds the load through a transformer or an inductor (choke) can swing the collector to 2VCC2V_{CC} 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.

02 mA4 mA6 mA0510VCE (V)IC20 uA40 uA60 uAQsatcutoff (IB = 0)activeIB30.0 uAbeta100load lineVCC12.0 VVCC/RC6.00 mAQ (curves)IC3.00 mAVCE6.00 Vhand methodIC3.00 mAVCE6.00 Vactive

With VCC=12 VV_{CC} = 12\ \text{V}, RC=2 kΩR_C = 2\ \text{k}\Omega and IB=30 μAI_B = 30\ \mu\text{A} the lab puts the Q-point at IC=3.000 mAI_C = 3.000\ \text{mA}, VCE=6.000 VV_{CE} = 6.000\ \text{V}, half of the load line's VCC/RC=6.00 mAV_{CC}/R_C = 6.00\ \text{mA} (the lab gives IC,sat=5.900 mAI_{C,sat} = 5.900\ \text{mA}), and the transistor dissipates 18.0 mW18.0\ \text{mW} 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 Vp/RLV_p/R_L, whose average is Vp/(πRL)V_p/(\pi R_L), so

PS=2VCCVpπRL,ηB=π4VpVCC≤78.5 %P_S = \frac{2 V_{CC} V_p}{\pi R_L}, \qquad \eta_B = \frac{\pi}{4} \frac{V_p}{V_{CC}} \le 78.5\ \%

The transistors together dissipate PD=PS−PLP_D = P_S - P_L, which peaks not at full output but at Vp=2VCC/πV_p = 2V_{CC}/\pi, where each transistor dissipates VCC2/(π2RL)V_{CC}^2/(\pi^2 R_L). That is the number to design the heat sink for.

The price is crossover distortion. An emitter follower needs about 0.6 V0.6\ \text{V} of base–emitter voltage before it conducts noticeably, so while the input is between about −0.6-0.6 and +0.6 V+0.6\ \text{V} 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 2VBE2V_{BE} apart, so each transistor already carries a small quiescent current IQI_Q 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 IQI_Q is a few milliamps against hundreds of milliamps of signal.

VCC = +12 V VEE = -12 V R1 2.2 kOhm D1 D2 R2 2.2 kOhm QA1 QA2 out RL 100 Ohm + vin in

The bias source must be about 2VBE2V_{BE} and must track temperature. VBEV_{BE} at constant current falls by about 2 mV/K2\ \text{mV/K}; if the output transistors warm up while the bias voltage stays fixed, IQI_Q 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 VBEV_{BE} multiplier, a transistor with a divider between collector and emitter that gives VBE(1+Ra/Rb)V_{BE}(1 + R_a/R_b) and can be trimmed) are mounted on the output heat sink so they warm with the transistors; and small emitter resistors of 0.10.1 to 1 Ω1\ \Omega add local negative feedback on IQI_Q. 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 ±12 V\pm 12\ \text{V} driving RL=100 ΩR_L = 100\ \Omega to Vp=10 VV_p = 10\ \text{V}.

Find: load power, supply power, efficiency, and the worst-case dissipation per transistor.

Solve:

PL=Vp22RL=100200=0.500 WPS=2⋅12 V⋅10 Vπ⋅100 Ω=0.764 W,η=0.5000.764=65.4 %PD,max⁡=VCC2π2RL=1449.870⋅100=0.146 W per transistor, at Vp=2⋅12π=7.64 V\begin{aligned} P_L &= \frac{V_p^2}{2 R_L} = \frac{100}{200} = 0.500\ \text{W} \\ P_S &= \frac{2 \cdot 12\ \text{V} \cdot 10\ \text{V}}{\pi \cdot 100\ \Omega} = 0.764\ \text{W}, \quad \eta = \frac{0.500}{0.764} = 65.4\ \% \\ P_{D,\max} &= \frac{V_{CC}^2}{\pi^2 R_L} = \frac{144}{9.870 \cdot 100} = 0.146\ \text{W per transistor, at } V_p = \frac{2 \cdot 12}{\pi} = 7.64\ \text{V} \end{aligned}

Check: π4⋅1012=0.654\frac{\pi}{4} \cdot \frac{10}{12} = 0.654 agrees. A class-A follower for the same 0.5 W would draw 2⋅144/100=2.88 W2 \cdot 144/100 = 2.88\ \text{W} 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 ±Vdz\pm V_{dz}. One period is sampled and the FFT gives the harmonics.

python · try it yourself
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 Vp2V_p^2, class B only as VpV_p.

Cross-check with SPICE: class B against class AB

Both stages in one deck, driven by the same 6 V6\ \text{V}-peak, 1 kHz1\ \text{kHz} sine into 100 Ω100\ \Omega. In the class-AB stage the "diodes" are diode-connected QN and QP transistors (so their VBEV_{BE} matches the output devices); ngspice's fourier command gives the harmonics of the last period.

bash · try it yourself
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 12 pA12\ \text{pA} and loses 0.95 V0.95\ \text{V} of fundamental with 7.1 % THD, close to the 0.7 V dead-zone model. The class-AB stage idles at 5.7 mA5.7\ \text{mA} and cuts the THD by a factor of 53, to 0.13 %. What remains is mostly the follower's gain varying with current (re=VT/ICr_e = V_T/I_C in series with 100 Ω100\ \Omega); 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 5.0 V5.0\ \text{V} peak out for 6 V6\ \text{V} in, flat steps of about ±0.6 V\pm 0.6\ \text{V} at each zero crossing. Class AB: about 5.9 V5.9\ \text{V} peak, IQI_Q 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 200 mA200\ \text{mA} and 0.5 W0.5\ \text{W}) and a 100 Ω100\ \Omega, 1 W resistor as the load. Drive with 6 V6\ \text{V} peak at 1 kHz from a function generator (a generator with 50 Ω50\ \Omega 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 −25 dB-25\ \text{dB} below the fundamental (class B) and below −55 dB-55\ \text{dB} (class AB); an 8-bit scope's own ADC spurs and noise (often only about 5050 to 60 dB60\ \text{dB} below full scale, depending on the model and record length) may hide the class-AB harmonics. Measure IQI_Q 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. ±12 V\pm 12\ \text{V} from a dual bench supply with the current limit at about 150 mA150\ \text{mA} 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 1 Ω1\ \Omega emitter resistors if IQI_Q keeps climbing. The 100 Ω100\ \Omega load dissipates up to 0.5 W0.5\ \text{W}: use a 1 W part.

Pitfalls

  • Sizing the heat sink at full output. Class-B dissipation peaks at Vp=0.64 VCCV_p = 0.64\,V_{CC}, 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 IL/βI_L/\beta; at β=50\beta = 50 and 1 A1\ \text{A} that is 20 mA20\ \text{mA}, so power stages use Darlington or driver transistors.

Practice

  1. A class-B stage on ±15 V\pm 15\ \text{V} drives 8 Ω8\ \Omega. Find the maximum theoretical load power and the worst-case dissipation per transistor.
  2. What is the efficiency of that stage at Vp=5 VV_p = 5\ \text{V}?
  3. A VBEV_{BE} multiplier uses Ra=1.5 kΩR_a = 1.5\ \text{k}\Omega and Rb=1 kΩR_b = 1\ \text{k}\Omega with VBE=0.62 VV_{BE} = 0.62\ \text{V}. What bias voltage does it give?
Answer
  1. PL,max⁡=152/(2⋅8)=14.1 WP_{L,\max} = 15^2/(2 \cdot 8) = 14.1\ \text{W}; PD,max⁡=225/(π2⋅8)=2.85 WP_{D,\max} = 225/(\pi^2 \cdot 8) = 2.85\ \text{W} per transistor.
  2. η=(π/4)(5/15)=26.2 %\eta = (\pi/4)(5/15) = 26.2\ \%.
  3. 0.62⋅(1+1.5)=1.55 V0.62 \cdot (1 + 1.5) = 1.55\ \text{V}.

Test yourself

The maximum theoretical efficiency of a class-B push-pull stage is…

  1. 25 %25\ \%
  2. 50 %50\ \%
  3. 78.5 %78.5\ \%
  4. 100 %100\ \%

Crossover distortion is caused by…

  1. the load being too heavy
  2. neither transistor conducting while the input is within about ±VBE\pm V_{BE} of zero
  3. the supply ripple
  4. the Early effect

Why are class-AB bias diodes mounted on the output heat sink?

  1. To cool them
  2. So their voltage falls with temperature like the output transistors' VBEV_{BE}, keeping IQI_Q stable
  3. To raise the efficiency
  4. To block DC

At which output amplitude does a class-B stage on ±VCC\pm V_{CC} dissipate the most?

  1. Zero
  2. Vp=2VCC/πV_p = 2V_{CC}/\pi
  3. Vp=VCCV_p = V_{CC}
  4. Vp=VCC/2V_p = V_{CC}/2