Class-D Power Amplifier
Class-D Power Amplifier
Amplifier
Senior Project
By
Joseph Maldonado
&
Jeovany Vega
II
TABLE OF CONTENTS
Section
Page
Acknowledgements ..............................................................................................IV
I.
Introduction................................................................................................1
II.
Background.................................................................................................2
III.
Requirements..............................................................................................8
IV.
Design........................................................................................................15
V.
Construction..............................................................................................19
VI.
Testing.......................................................................................................20
VII.
VIII.
Bibliography......................................................................................25
Appendices
A.
Schematic..................................................................................................26
B.
C.
III
IV
Acknowledgement
Jeovany Vega and Joseph Maldonado would like to thank all the Cal Poly, San
Luis Obispo, electrical engineering students for moral support and help on
troubleshooting circuits. We would also like to thanks to Vladimir Prodanov, our
advisor for this project who guided us and who made this project success.
I. INTRODUCTION
The goal of audio amplification in an audio system is to accurately reproduce and
amplify the given input signals. The biggest obstacle to overcome is to have high
output power with as least amount of power loss as possible. In todays technologies
portable music devices are becoming more popular with a growing demand of
external sounds in portable music devices. If the audio amplifier is not efficient it will
deplete the devices battery much sooner than desired. Audio amplification is
sometimes done with tube amplifier technology but these are bulky in size and not
desirable for portable electronics. For most audio amplification needs, engineers
choose to use transistors in linear mode to create a scaled output based on a small
input. This is not the best design for audio amplifiers because transistors in linear
operation will continuously conduct, generate heat, and consume power. This heat
loss is the main reason why linear mode is not optimal for battery operated portable
audio applications.
Human audible frequencies range from about 20 Hz to 20 kHz, but many people
cannot hear near the extremes. This range requires that any audio amplifier have a
good frequency response over the human audible range. To accurately reproducing
the audio input there should be no added harmonics, clipping or aliasing of the
original input signal in the amplified output. Some harmonics can be reduced or
eliminated by applying a low-pass filter before connecting the load. The way that we
are going to amplify a small audio input signal is with a Class D power amplifier.
II. BACKGROUND
There are many classes of audio amplifiers; A, B, AB, C, D, E and F. The different
classes are broken down into two different operating modes linear or switching.
Class A, B, AB and C are all linear mode amplifier that have an output that is
proportional to their input. Linear mod amplifiers do not saturate, fully turn on or
fully turn off. Since the transistors are always conducting, heat is generated and
continuously consuming power. This is the reason why linear amplifiers have lower
efficiency when compared to switching amplifiers.
Switching amplifiers are Class D, E and F. Switching amplifiers have higher
efficiency which theoretically should be 100%. This is because there is little to no
energy being loss to heat dissipation. Class D is a switching amplifier and when it is in
the on state it will conduct current but have almost no voltage across the
switches, therefore no heat is dissipated due to power consumption. When it is in
the off mode the supply voltage will be going across the MOSFETs but due to no
current flow the switch is not consuming any power. The amplifier will only consume
power during the on/off transitions if leakage currents are not taken into account.
The Class A amplifiers topology is shown in figure 1. This topology uses one
transistor as a dc current source configuration. This source is responsible for
supplying as much audio current as is required by the speaker. The quality of
amplification and sound reproduction is good but the power that is dissipated is
excessive because of the large dc bias current that is flowing in the output-stage of
the transistors and not to the speakers. Theoretically the maximum efficiency for a
Class A amplifier is 50%.
Class C amplifiers, topology shown in figure 4, have zero idle bias current at the
output, which makes them similar to Class B. What makes Class C different from
Class B is that Class C has an area where the idle current is zero, which is more than
50% of the total supply voltage. Therefore there is even more distortion caused by
crossover of source and sink currents then in Class B. This distortion causes poor
sound quality and makes Class C amplifiers inadequate for audio applications.
Theoretically the maximum efficiency for a Class C amplifier is 100% at zero output
but 78.5% at full output.
1
M
Vdc
Vout
0
L
1
-Vdc
The topology for a Class E is shown in figure 7. This class of amplifiers has a
pulsed input and an output that is tuned to a certain frequency. They are commonly
used in radio transmitters where the output is a single or narrow band of
frequencies. This is undesirable for audio applications because there is such a wide
range in audible frequencies. Therefore we would not be able to get the range of
audible frequencies using a Class E amplifier. Theoretically the maximum efficiency
for a Class E amplifier is 100%.
III. REQUIRMENTS
a) Triangle Wave Generator
In a Class-D amplifier design an accurate triangle wave signal is required to
achieve the pulse width signals. The generation of the triangle wave can be done
with the use of simple circuits which consist of a square wave generator and an
integrator which integrates the square wave to a triangle wave. Most of these
circuits consist of comparators and op-amps that can handle the required frequency
and not exceed their respective slew rates. More in-depth explanation on the
chosen circuit for the triangle wave generator is in the design part of the report. The
frequency of the triangle wave must be at least three times the switching frequency.
Having the triangle wave frequency at least two or three times greater will minimize
distortion from harmonics [3]. The output filters cutoff frequency plays an important
role in choosing the triangle wave frequency due to harmonic distortion that is
generated from the switching of the amplifier.
capacitance. The trade-off is that the signal to noise ratio is reduced along with
reducing the output filtering requirements. Figure 9 shows the block diagram of how
the PWM signal is generated. The comparator is generating the PWM waveform; this
is accomplished by comparing the amplitudes of the triangle wave and the audio
signal. As shown in figure 10 a positive pulse is generated when the audio signals
magnitude is greater than the triangle wave; a negative pulse is generated when the
triangle waves amplitude is greater than the audio signals amplitude. The chosen
amplitude is an important factor that determines whether the compared signal will
be linear, over or under modulated.
The amplitude modulation index is calculated from the ratio of the audio signal
amplitude to the triangle wave amplitude. A modulation index between the values
of [0,1] will ensure linear modulation while an index greater than 1 will yield over
modulation and saturation and an index greater than 3.24 yields a square wave
modulation [6]. Figure 11 shows the three different regions of modulation according
to amplitude modulation index. The PWM signal and its compliment is what will
drive the gates of the MOSFETs in the bridge configuration to control the signal the
speaker receives.
10
11
or if using split supply shorting the supplies. This is better known as shoot through
but it can be reduced or prevented by introducing non-overlapping gate signals to
the MOSFETs. The non-overlapping time is better known as Dead time. In designing
these signals we must keep the dead time as short as possible to maintain an
accurate low-distortion output signal but must be long enough to maintain both
MOSFETs from conducting at the same time. The time that the MOSFETs are in
linear mode must also be reduced which will help insure that the MOSFETs are
working synchronously rather than both conducting at the same time. For this
application Power MOSFETs must be used due to the voltage and currents in the
design. The Class-D amplifiers are used for their high efficiency but MOSFETs have a
built in body diode that is parasitic and will allow the current to continue to
freewheel during dead time. A Schottky diode can be added in parallel to the drain
and source of the MOSFET to reduce the losses through the MOSFET. This reduces
its losses because the Schottky diode is faster than the body diode of the MOSFET
ensuring that the body diode does not conduct during dead time. To reduce the
losses due to high frequency a Schottky diode in parallel with the MOSFET is
practical and necessary. This Schottky ensure that the voltage across the MOFETs
before turning off. The overall operation of the MOSFETs and output stage is
analogous to the operation of a synchronous Buck converter.
d) Output Filter
The final stage of a Class-D is the output filter which attenuates and removes the
harmonics of the switching frequency. This can be done with a common low pass
filter topology but the most common is an inductor and capacitor combination. A 2nd
order filter is desired so that we have a -40dB/Decade roll-off. The range of cutoff
frequencies is between 20 kHz to about 50 kHz due to the fact that humans cannot
hear anything above 20 kHz. Figure 12 shows the second order Butterworth filter,
which is what we chose to design and implement. The main reason we choose a
12
Butterworth filter is because it requires the least amount of components and has a
flat response with a sharp cut off frequency.
Figure 12
12: Second Order Butterworth Low pass filter
The transfer functions of the Butterworth along with component design equation
are as follows:
The design equation for the required components are chosen from the below equations.
13
advantages. Ferrite core inductors have an almost linear or flat saturation response
while powder alloy cores do not. Figure 13 shows the saturation curves for both the
powder alloy and ferrite core. Choosing the correct type of inductor is important so
that it does not saturate its core.
An electrolytic capacitor at the output is usually desired due to the fact that
electrolytic capacitors are cheap and physically small. The choice of dialectic class is
more important to pay attention to. A class 1 dielectric COG capacitor would be
ideal due to the fact that it will have a very stable temperature coefficient and make
it a more suitable for a Class-D amplifier application.
Figure 13: Ferrite Core vs Powder Alloy Core Saturation Curves [1]
14
IV. DESIGN
a) Triangle Wave Generator
The first attempt at designing a triangle wave, shown in figure 14, was using a
555-timer to create a square wave with 50% duty cycle and a frequency of 200 kHz
This was very difficult but we were able to get very close to 50%. Then we built an
integrator and put it on the output of the 555-timer. This was so that we could
integrate the square wave into a triangle wave at 200 kHz. We were unable to get
this to work properly. When we interfaced the two devices the 555-timers ground
lifted and the zero was too high for the integrator and we were unable to easily
correct this, so we moved on to another triangle wave design from Design with
Operational Amplifiers and Analog Integrated Circuits, 3rd edition by Sergio Franco.
V3
3.6k
1n
1u
C6
15Vdc
3
3
R7
V+
1k
TRIGGER
RESET OUTPUT
CONTROL
THRESHOLD
DISCHARGE
555D
C5
V4
R4
OUT
R9
2
1k
V-
R6
2
4
5
6
7
GND
2.5k
X1
VCC
R5
1k
11
15Vdc
R8
53k
C7
1n
0
V5
15Vdc
15
Our Second attempt at a triangle wave is shown below in figure 15. After
constructing this we were able to see a square wave but were unable to see a
triangle wave output. This did not make sense because if we were able to see a
square wave we should be able to see the triangle wave at the output of the first
operational amplifiers. The triangle wave is an input to the square wave and sets the
frequency of the square wave. We were unsure why this was not able work.
R3
1k
V4
OUT
R1
1
V-
5k
2
200p
R2
1
V5
15k
-
15Vdc
V-
C1
OUT
11
11
V+
V+
15Vdc
D1
D2
16
17
18
V. CONSTRUCTION
Figure 19 is the final constructed circuit but for complete pin out of final circuit
refer to appendix a. This diagram includes the triangle wave generator, PWM
circuit, MOSFET drivers and output filter. After working through all of our difficulties
in the design stages we had a fairly simple time constructing the circuit. The biggest
difficulty was choosing the appropriate components from the part available.
19
VI. TESTING
a) Triangle Wave Generator
Figure 20 shows our triangle waveform captured from the oscilloscope. Our
triangle wave came out to have a Vpp of 7.76V and a frequency of 200 kHz. These
values were very close to what we simulated and more then we needed. Our Vpp
only needed to be around 7V. When we tested the audio signal the voltage seemed
to peak out around 3.5V.
20
21
time. Below in figure 22 are our non-overlapping pulse signals. These two nonoverlapping signals are what would be used to drive the MOSFETs at the desired
frequency.
22
23
24
VIII.
BIBLIOGRAPHY
[1] "Class D Audio Amplifier with Ferroxcube Gapped Toroid Output Filter."
Ferroxcube - Ferrite Cores, Bobbins & Accessories. Web. 13 May 2010.
[2] "Control Technologies Manual." Allen-Bradley. Web. 10 Sept. 2009.
<http://www.ab.com/drives/techpapers/PWMDrives01.pdf>.
[3] Leach, Marshall. "The Class D Amplifier." Georgia Tech. Web. 09 Oct. 2009.
<http://users.ece.gatech.edu/mleach/ece4435/f01/ClassD2.pdf>.
[4] Moreno, Sergio S. "Class-D Amplifiers." Elliott Sound Products - The Audio Pages
(Main Index). Ed. Rod Elliot. 04 June 2005. Web. 15 Nov. 2009.
<http://sound.westhost.com/articles/pwm.htm>.
[5] "Pulse Width Modulation Inverter Model." IEEE. Web. 25 Feb. 2010.
<http://ewh.ieee.org/soc/es/Nov1998/08/PWMINV.HTM>.
[6] Taufik. "Switched -Mode Inverters." Advanced Power Electronics. Print.
[7] "XR2206 -Monolithic Function Generator." EXAR Powering Connectivity. Web. 10
May 2010.
<http://www.exar.com/Common/Content/ProductDetails.aspx?ID=XR2206>.
25
IX. APPENDICES
a) Schematic
PRICE
$1.49
$5.49
$1.00
$1.30
$2.67
$4.24
$3.98
Stand-offs
4 Speaker
MOSFETS
Various Resistors
Various Capacitors
$1.99
$12.00
$1.90
$5.00
$5.00
26
Expected time
Actual Time
1. Research
30 Hours
50 Hours
2. Design
30 Hours
50 Hours
3. Construction
15 Hours
20 Hours
4. Troubleshooting
15 Hours
60 Hours
5. Testing
20 Hours
30 Hours
4. Paper
40 Hours
60 Hours
Totals:
150 Hours
270 Hours