C6 · Lesson 43 · Class D amplifiers
Switching the output stage, and filtering the switching away
A class B output stage wastes a third of its power or more, because its transistors carry the load current with a large voltage across them. A class D stage never does: its transistors are either fully on, with almost no voltage across them, or fully off, with no current. The signal is coded as the duty cycle of a fast square wave, and an LC filter recovers it at the speaker. Efficiencies above 90% are routine, which is why phones, laptops and car audio use it.
Play
- The trace is a pulse-width-modulated wave: a comparator switching between the rails as an audio sine is compared with a fast triangle. The bars are its spectrum.
- The audio tone sits alone at 1 kHz; everything else clusters around the switching frequency and its multiples.
- Raise the switching frequency: the clusters move away from the audio, and a simple filter can remove them. Raise the modulation: the tone grows.
Predict
A class D stage on ±15 V delivers 10 W to 8 Ω through switches with 0.1 Ω of on-resistance and 0.3 W of switching loss. About what's its efficiency? A class B stage on the same supplies at the same power reaches about 66%.
About 96%. The load current always flows through one switch or the other, so the conduction loss is = 1.25 × 0.1 = 0.125 W; with the 0.3 W of switching loss, 10 W out costs 10.4 W in. The class B stage has its transistors in the active region with volts across them while they carry amps.
Name it
Pulse-width modulation
A comparator compares the audio with a triangle at the switching frequency , many times the highest audio frequency. Its output switches the stage between and , with a duty cycle D that follows the audio. The average over a switching period is
The spectrum holds the audio itself plus clusters at , and so on, which the output filter must remove.
The output filter
A second-order LC low-pass between the switches and the speaker passes the audio and attenuates the switching clusters at 40 dB per decade. For a Butterworth response with load R and corner :
The inductor carries a triangular ripple current on top of the audio; for a stage switching between 0 and at duty D, it's
largest at D = ½.
Efficiency
The losses are conduction, , since one switch or the other always carries the load current; switching, from the transitions and the switches' capacitances, rising with ; and the quiescent power of the modulator and drivers. Switching faster makes the filter smaller and the audio cleaner but costs switching loss. Dead time, a short gap when neither switch is on, prevents shoot-through but distorts slightly; feedback around the stage corrects most of it.
Worked example
Compare the efficiency of the predict's class D stage with a class B stage on the same ±15 V, both delivering 10 W into 8 Ω.
Show the solution
- Output peak.
- Class B. so it draws 15.1 W and dissipates 5.1 W in its transistors.
- Class D. The conduction loss is plus 0.3 W of switching, for 95.9%.
- Compare. The class B amplifier needs a heat sink for 5 W; the class D one dissipates under half a watt.
Answer class B reaches 66.2% and class D 95.9%.
Worked example
Design a Butterworth LC output filter for an 8 Ω speaker with a 30 kHz corner. How much does it attenuate a 400 kHz switching frequency?
Show the solution
- Inductor. With kHz,
- Capacitor.
- Attenuation at 400 kHz. More than a decade above the corner, the filter is down about
- A real speaker. The filter is tuned to the speaker's nominal resistance; a real speaker's impedance varies, which moves the corner and the response near it.
Answer L = 60 µH and C = 0.47 µF, which attenuate 400 kHz by about 45 dB.
Worked example
The 60 µH inductor sits in a stage switching between 0 and 30 V at 400 kHz. What's its peak-to-peak ripple current with no audio (D = ½)? And what average output does D = 0.75 give in a stage switching between +15 V and −15 V?
Show the solution
- Ripple current. peak to peak, flowing even with no signal: that's a quiescent loss the designer has to keep small.
- Bipolar stage.
Answer the ripple is 0.31 A peak to peak, and D = 0.75 gives an average of 7.5 V.
Check
A class D stage delivers 20 W into 4 Ω through switches with 0.2 Ω on-resistance and 1 W of switching loss.
(a)
What's its conduction loss?
Write units the way you normally would: 1.5 W, 1500 mW and 0.0015 kW are the same answer.
(b)
What's its efficiency?
Check
A Butterworth LC filter feeds an 8 Ω speaker with a 20 kHz corner.
(a)
What inductance?
Write units the way you normally would: 1.5 µH, 1500 nH and 0.0015 mH are the same answer.
(b)
What capacitance?
Check
A class D stage switches between 0 and 24 V at 1 MHz into a 10 µH inductor at duty 0.5. What's the inductor's peak-to-peak ripple current?
Write units the way you normally would: 1.5 A, 1500 mA and 0.0015 kA are the same answer.
Check
A class D stage switches between +15 V and −15 V at duty 0.2. What's its average output?
Write units the way you normally would: 1.5 V, 1500 mV and 0.0015 kV are the same answer.
Check
About how much does a second-order filter with a 30 kHz corner attenuate a 250 kHz switching frequency?
Check
Why does raising a class D amplifier's switching frequency eventually lower its efficiency?
Check
A class D stage on ±V drives load R through an LC Butterworth filter with corner f, at duty D and switching frequency s, with inductance L.
Step 1
What's the average output?
Type it the way you would write it, like 3sin(2πft) or 3*sin(2*pi*f*t). Angles can be in radians or carry a degree sign, like 45°.
Step 2
What inductance makes the filter Butterworth?
Step 3
What's the ripple current, the stage swinging 2V in all?
Explain why
Why is a class D output stage so much more efficient than class B?
A transistor dissipates the product of the current through it and the voltage across it. In class B, the output transistors act as variable resistors: while they carry the load current they also hold a large voltage, the difference between the supply and the output, so they turn a large part of the supply's power into heat. In class D, the transistors are switches: each is either fully on, carrying current with only its small on-resistance drop, or fully off, with voltage but no current. The product is small in both states, and the only other losses are the brief transitions between them. The LC filter, which stores energy rather than dissipating it, turns the switched waveform back into audio.
Practice
Keep practicing
7 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.