C643 of 57
0 XP
  1. Hook
  2. Play
  3. Predict
  4. Name it
  5. Check
  6. Explain

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%.

Name it

Pulse-width modulation

A comparator compares the audio with a triangle at the switching frequency fs, many times the highest audio frequency. Its output switches the stage between +V and −V, with a duty cycle D that follows the audio. The average over a switching period is

v¯=(2D−1)V.

The spectrum holds the audio itself plus clusters at fs, 2fs 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 fc:

L=2R2πfc,C=12R⋅2πfc.

The inductor carries a triangular ripple current on top of the audio; for a stage switching between 0 and VS at duty D, it's

ΔI=VSD(1−D)Lfs,

largest at D = ½.

Efficiency

The losses are conduction, Irms2Ron, since one switch or the other always carries the load current; switching, from the transitions and the switches' capacitances, rising with fs; 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
  1. Output peak. 2×10×8=12.6V
  2. Class B. η=π4×12.615=66.2% so it draws 15.1 W and dissipates 5.1 W in its transistors.
  3. Class D. The conduction loss is 108×0.1=0.125W plus 0.3 W of switching, for 95.9%.
  4. 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
  1. Inductor. With ωc=2π×30 kHz, L=2×8ωc=60μH
  2. Capacitor. C=12×8×ωc=0.47μF
  3. Attenuation at 400 kHz. More than a decade above the corner, the filter is down about 40log⁡40030=45dB
  4. 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
  1. Ripple current. ΔI=30×0.5×0.560μH×400kHz=0.31A peak to peak, flowing even with no signal: that's a quiescent loss the designer has to keep small.
  2. Bipolar stage. v¯=(2×0.75−1)×15=7.5V

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°.

Explain why

Why is a class D output stage so much more efficient than class B?

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.