Class D Tutorial 2
Class D Tutorial 2
Contents
Chapter 1
Getting Familiar with Class D Audio Amplifier
Chapter 2
Latest Class D Audio Amplifier Technology Trend
Chapter 3
Identifying Problems ~ Performance Measurement of Class D Amplifier
Chapter 4
Reducing Distortion ~Dead-time ~ LPF Designs
Chapter 5
Reducing Noise ~ Isolation Technique ~ PCB Design
APPENDIX
Simulation of a Simple Class D Amplifier
Device Technology
Class AB
Smaller Size
IR Class D
Higher Performance
Device Technology
MOSFET High Speed HVIC
COMP
LPF
Analog signal
PWM
Amplify
PWM
Analog signal
Class AB
PLOSS depends on output power factor Similar to a transformer with variable turn ratio
IIN = IOUT
Class D
VIN x IIN = VOUT x IOUT Note that input current and output current are not equal.
Class AB
Efficiency is fixed. Extremely inefficient when driving lower impedance load. Extremely inefficient when driving reactive load.
Energy flow
Drivability
All the reflected energy from reactive components and back EMF are consumed dissipating heat The output device has high impedance, ~tens of k ohm. Inherently has low output impedance (m ohm range) With a strong voltage feedback, Class AB can achieve low output impedance. Power supply current = load current. For a given output Lower impedance loading does not burden power supply. power with decreased load (Power supply current) (load current). impedance, the supply current and heat dissipation in the output device increase. Cross conduction limits high Wide power bandwidth; no extra effort to drive high frequency rated power. frequency power bandwidth.
Class AB
Stability
Thermally stable; gain of the Class D stage, bandwidth, loop-gain are independent of output device temperature. No bias-current thermal compensation
Noise immunity
Inherently immune to incoming noise; low drive impedance, inductor between the load and amplifier. Higher reliability from less heat. Less metal fatigue in solder joints.
Reliability
10
Class AB vs D Comparison
Loss in Class AB
Pc = 0.2
Loss
VCC 8 RL
2
Vcc 2 = 8 RL
2K K 2 2
K=2/
K=1
Loss in Class D
To learn more about power losses in Class D, refer to AN-1070 Class D Amplifier Performance Relationship to MOSFET Parameters.
11
+VCC
Audio source
PWM
F/B
Gate Driver
-VCC
1. Non-linearity in the switching stage due to timing errors added, such as dead-time, ton/toff, and tr/tf 2. Limited amount of error collection capability due to limited gain and bandwidth in PWM modulator 3. Audio frequency band noise added in PWM modulator 4. Unwanted characteristics in the switching devices, such as finite ON resistance, finite switching speed or body diode characteristics. 5. Parasitic components that cause ringing on transient edges 6. Power supply voltage fluctuations due to its finite output impedance and reactive power flowing through the DC bus 7. Non-linearity in the output LPF.
Dead-time
ON delay
OFF delay
Note that 0.01% of nonlinearity corresponds to10mV out of 100V DC bus, or 0.25ns in 400kHz!
Finite dV/dt
12
MOSFET Basics
A MOSFET is a device to switch electronic current. A driving MOSFET charges/discharges a capacitor (Gate to Source, Gate to Drain). A MOSFET does not require any energy to keep it on-state. In switching transition, stray impedance in each terminal slows down switching and generates unwanted rings.
To learn more about power MOSFETs, refer to AN-1084 Power MOSFET Basics.
13
to switching node drives the gate of the high-side MOSFET when the low-side MOSFET is ON. (Bootstrap power supply)
Low-side ON
NOTE: In a practical design, a dead-time where both high- and low-side MOSFETs are off is inserted to prevent simultaneous ON state. Refer to chapter 4 for more details.
14
I4 turns off the low-side MOSFET. Then, I5 turns on the high-side MOSFET, lifting VS up to +B. As long as the high side is ON, bootstrap diode DBS isolates the floating power supply VBS and bootstrap capacitor CBS retains VBS voltage. After the high-side MOSFET ON state, I1 turns off the high-side MOSFET, then I2 turns on the low side MOSFET. As soon as switching node VS reaches negative supply B, the bootstrap diode DBS turns on and starts charging bootstrap capacitor CBS with current I3 from VCC. Note that VBS = VCC (forward drop voltage of DBS).
Low-side ON
15
VAA supply
High-side OCP Input resistor Startup resister Bootstrap floating supply charging path
6V
DC blocking capacitor
ENABLE
20 V
6V
C11 10 F
R8 4.7
VSS supply
20 V
Low-side OCP
Dead-time
16
Device Technologies
Packaging Technology
MOSFET FOM (Figure of Merit) improvements Higher voltage capability Faster and accurate switching time High gain low noise process High GBW (Gain BandWidth) process
Smaller Low stray inductance Surface mount Dual sided cooling Hybrid module Multi chip module
Trench Technology
2001
2003
2004
2005
19
MOSFET Evolution
The latest trench MOSFET technology shows 7 times better figure of merit.
20
There is a best die size for a given output power. Optimum die size for minimal PLOSS depends on load impedance, rated power and switching frequency. A more advanced platform with better FOM acheives lower PLOSS.
Optimal MOSFET die size Optimal MOSFET Parameters Total Loss = Conduction Loss + Switching Loss
Total Loss
Conduction Loss
Switching Loss
To learn more about MOSFET selection, refer to AN-1070 Class D Amplifier Performance Relationship to MOSFET Parameters.
21
Importance of Packaging
How the package affects the design? 1. Amplifier size Increase efficiency Increase current capability Improve the MOSFET thermal efficiency 2. EMI considerations Better control of current and voltage transients 3. Amplifier linearity Decrease switching times Narrow the MOSFET parameter distribution 22 To utilize benefits from a newer generation MOSFET, new package with reduced stray inductance is necessary.
D2/S1
G1
G2
S2
D1
Stray Inductance
A MOSFET has capacitive elements. Stray inductance is where excessive energy is stored, causing over/under shoots and rings. Stray inductance in Source returns feedback voltage to gate, slowing down switching speed significantly. The smaller the parasitic components the better performance!
To learn more about MOSFET switching behavior, refer to AN-947 Understanding HEXFET Switching Performance.
23
Package Comparison
Lower inductance at frequency than SO-8, D-Pak, MLP and D-Pak TO-220 inductance package is ~ 12nH DirectFET is 0.4nH 24
EMI Comparison
DirectFET amplifier shows better EMI performance than TO-220 amplifier Over 2MHz, DirectFET amplifier shows approximately 9dBuV lower Peak,
Quasi-Peak and Average noise than TO-220 amplifier
Both PCBs meet audio amplifier EMI standards limits (CISPR13) DirectFET
Frequency (MHz)
25
AUDIO SIGNAL
PWM Level Shift Down Level Shift Up Dead Time Shut Down
Speaker
Protection functions
26
Gate Driver IC
To learn more about High Voltage Gate Driver IC, refer to AN-978 HV Floating MOS-Gate Driver ICs.
27
The high-side circuitry reconstructs PWM from SET and RESET pulses. This method minimizes power dissipation in the high voltage MOSFETs in level shifter. 28
SET
RESET
HO
INPUT SECTION
LOW SIDE GATE DRIVE LEVEL SHIFTERS Translate PWM signal to different voltage potential Isolate circuit blocks that are in different voltage potentials Note Level shifter rates supply voltage ranges Level shifting is useful to drive high-side the MOSFET whose source is tied to switching node. Level shifting blocks switching noise coming into sensitive input section.
29
Dead-time Generation
With Dead-time
Dead-time (or blanking time) is a period of time intentionally inserted in between the ON states of high- and low-side MOSFETs. This is necessary because the MOSFET is a capacitive load to the gate driver that delays switching time and causes simultaneous ON.
NO DEADTIME
Without Dead-time
INPUT
Lack of dead-time results in lower efficiency, excessive heat and potential thermal failure. Usually, dead-time is realized by delaying turn on timing.
HIGH-SIDE
LOW-SIDE
SIMULTANEOUS ON
30
During the UVLO, gate drive stage keeps HO/LO low in order to prevent unintentional turn-on of the MOSFETs. UVLO in VCC resets shutdown logic and causes CSD recycling to start over the power up sequence. The IR Class D audio gate driver family is designed to accept any power sequence.
CSH VB
HIGH SIDE CS
UV Q
HO
HV LEVEL SHIFT
HV LEVEL SHIFT
VS
31
FLOATING INPUT
OTA
ENABLE
GND
20.4V
VAA
6.5V
UV DETECT
CSH VB
IN-
VAA+VSS 2
HIGH SIDE CS
UV Q
COMP
HO
COMP
6.5V
HV LEVEL SHIFT
HV LEVEL SHIFT
5V REG UV DETECT
VSS
DEAD TIME
CSD
20.4V CHARGE / DISCHARGE SD DT
LO
HV LEVEL SHIFT PROTECTION CONTROL HV LEVEL SHIFT
COM
LOW SIDE CS
32
33
Optional feedback
Self-oscillating PWM
Closed loop Frequency changes with modulation High loop gain Fewer components
34
Inductor-less PWM
35
IRF6645 DirectFET
ERROR AMP +
+
PWM COMP.
L /S DT SD
L/S
LPF
*
CS
Micro controller
OTP
DCP
IRS2092
PROTECTION LOGIC
PROTECTION CONTROL
36
Identifying Problems
Proper audio performance measurement is crucial to identify potential
problems.
Frequency response and THD+N are the minimum basic measure of audio
performance.
Problem Low frequency response High frequency response High harmonic distortion High noise floor
Possible Causes Audio input, feedback network Audio input, feedback network, LPF design Shoot-through, dead-time, switching noise coupling Analog input, switching noise coupling
38
1. Frequency Response
Use resistive dummy load. Set reference voltage level to 1W output power at 1kHz. Sweep sinusoidal signal from 20Hz to 100kHz. Take frequency response with various load impedances and without
loading.
International Rectifier
+1 +0.5 +0 -0.5 -1 -1.5
08/15/06 10:56:54
d B r A
50
100
200
500
1k Hz
2k
5k
10k
20k
50k
100k
Sweep 1
Trace 1
Color Red
Thick 1
Data Anlr.Level A
Axis Left
Frequency Response from 20k to 20 Hz. F4 first to set 0 dBr at 1kHz. The 2 Ch Ampl Function Reading meter BW is set to <10 Hz & >500kHz so the bandwidth is the same as the Level meter. Optimize for detail. A-A FREQ RESP.at2
39
Check for..
R117 3.3k 1w R17 R22 10K U1 75k R18 9.6k R19 10k CP6 GND INCOMP CSD VSS VREF OCSET IRS2092S DIP VB HO VS VCC LO COM DT 5 2 3 1nF 1nF C6 5 10uF 6 CP2 22uF R118 3.3k 1w R13 10k 8 R12 8.7k 9 R26 10k R27 10k CP5 22uF VCC 7 11 -B 10 R21 10R R23 4.7K 12 D3 R20 4.7R 20R R25 LED1 Blue C14 0.1uF CP7 470uF,100V 1 2 -B C13 0.1uF, 400V C7 1nF 4 15 22uF 14 VS1 13 20R R24 3 C12 0.47uF, 400V R30 R31 10, 1W 2.2k 4 D4 C11 0.1uF,100V FET1 CP8 470uF,100V +B
Low Frequency
RCA1 CP1 10uF R2 3.3k
High Frequency
L1 22uH CH_OUT SPKR1 1 2
R3 SD D1 100R CP3
C4
+ CH1 -
-B
40
2: THD+N
THD+N is a sum of harmonic distortion components and noise, i.e. anything except fundamental spectrum. THD is a measure of linearity. Refer to Chapter 4 Noise is a measure of added errors not depending on the input signal Refer to Chapter 5
Fundamental
Fundamental
THD
3rd order harmonic
frequency
THD+N
3rd order harmonic Noise
frequency
41
What is Distortion?
THD is a simple way to measure non-linearity of the amplifier. If the amplifier is not linear, it generates harmonics.
Any repetitive waveforms can be expressed as a sum of sinusoidal signal as
Harmonic distortion is a ratio of rms value of the harmonic component and the original waveform. Total harmonic distortion is a ratio of rms value of sum of the all harmonic component and the original waveform.
42
IRAUDAMP4 THD+N
10
30 V
1 % 0.1
25 V 35 V
0.01
0.001 100m
Noise floor
Distortion
Clipping
43
Check for..
R117 3.3k 1w R17 R22 10K U1 CP4 1 R8 100k VAA GND INCOMP CSD VSS VREF OCSET IRS2092S DIP CSH VB HO VS VCC LO COM DT 16 15 22uF 3 1nF 1nF C6 5 10uF 6 CP2 22uF R118 3.3k 1w R13 10k 8 R12 8.7k 9 R26 10k R27 10k CP5 22uF VCC 7 11 -B 10 R21 10R R23 4.7K 12 D3 R20 4.7R 20R R25 LED1 Blue C14 0.1uF CP7 470uF,100V 1 2 -B C13 0.1uF, 400V C7 1nF 4 14 VS1 13 20R R24 3 C12 0.47uF, 400V R30 R31 10, 1W 2.2k 4 75k R18 9.6k R19 10k CP6 2 D4 C11 0.1uF,100V FET1 5 CP8 470uF,100V +B
Ceramic?
RCA1 CP1 10uF R2 3.3k
dead-time
R11 270R
22uF
LPF
L1 22uH CH_OUT SPKR1 1 2
R3 SD D1 100R CP3
C4
+ CH1 -
-B
44
20KHz LPF
Amplifier Input
For more information on Class D audio measurement, refer to white paper, Measuring Switch-mode Power Amplifiers by Bruce Hofer, from //ap.com
45
46
AP Substitute
Old audio analyzers are not designed to
tolerate high frequency noise that is from carrier signal residual from a Class D amplifier.
switching carrier ingredients in front of the audio analyzer changing scaling range manually
4.7n C1
2.2n C2
1n C3
47
30
20
10
Vout( t )
10
20
30 34 40 0 0
0.001 t
0.0015
0.002 0.0021
Dead-time reduces volt-second therefore voltage gain. There is a region that dead-time does not affect around zero crossing (regions 2 and 4). The smaller the dead-time, the lower the distortion. Too narrow dead-time could cause shoot-through from unit-to-unit, temperature and production variations, that could seriously affect product reliability. Audio performance and reliability is NOT a trade-off. 49
High-side VGS
Low-side VGS
Switching Node VS
50
VCC
-B
4 Dead-time
?
VBS +B
2 Dead-time
?
VBS +B
VCC
-B
VCC
-B
-B
VBS
+B
VCC
-B
3 Low Side ON 51
During Dead-time
Polarity of IL is always toward the load VS follows high side switch status Polarity of IL alternates VS follows turning off edges of both high and low sides ZVS No influence from dead-time insertion Polarity of IL is always toward the amp VS follows low side switch status
2 4
Note: Dead-time insertion reduces volt-second of VS. Dead-time inserted in the rising edge of the high side affects the operating region 1. Dead-time inserted in the rising edge of the low side affects the operating region 3. As a result, output voltage gets lower than it should be, causing non-linearity in the output stage.
52
0.1
0.01
0.001
53
LPF Design
Set corner frequency according to
the bandwidth requirement.
Inductance and inductor ripple
I L PP =
Vbus L f SW
54
LPF Design
1. Decide the order of the filter based on the attenuation of the switching frequency given by:
f 2 N At = 10 log 1 + fC
Ln = Cn =
RL Lk n 2 fC Ck n 2 f C RL
1.414214
0.707107
1.5000
1.3333
0.5000
1.530734
1.577161
1.082392
0.382683
55
NOTE Ferrite core is suitable for smaller size Iron powder is suitable for high power
Determine IRMS rating for temperature rise condition with 1/8 rated power Determine peak current (ISAT) based on maximum load current
56
Ceramic
Polyester, non-inductive
Polypropylene, non-inductive
NOTE Do not use winding structure types. Use stacked structure. Check AC voltage ratings at highest audio frequency.
57
Corner frequency: 40kHz Load impedance: 4 ohms Output power: 250W (32Vrms, 11Apeak)
22uH
8 4
8 10 2 0 5 0 10 0 20 0 50 0 1 2 k Hz k 5 k 10 k 20 k 50 k 200 k
0.1uF 0.47uF 10
Sagami 7G17B220 22H, 13A, 10m Ferrite, closed circuit with inner gap
58
60
61
Idling (ZVS)
Hard-switching
Rings triggered by Qrr
62
63
1 0.5
200m
500m
5 W
10
20
50
100
300
Sweep 1 2
Trace 1 1
Thick 2 2
64
Input RF Filter Filter out HF noise and reduce node impedance at high frequency Differential Input RFI Filter Prevent RFI causing audio frequency interferences from switching rings
Feedback LPF Weed out high frequency spectrum to avoid TIM distortion in the error amplifier
65
RFI
Analog stage uses non-linear components such as diode, BJT and FET. When a non-linear component receives high frequency components, it detects envelop information that could fall into audio frequency range (amplitude modulation envelop detector). When non-linear components receives high frequency components along with audio signal, it could shift operating bias point and cause distortion in audio signal.
Diode amplitude detector
66
67
68
PWM
GATE DRIVE
MOSFET
LPF
69
Note that Separation between analog and switching sections Minimized trace impedances with planes in power section No overlap between switching nodes and analog nodes
Analog Section
Switching Nodes
Power Section 70
APPENDIX
0 IC
HC04D U5 250n U1
HC04D HO U2 LO S1 D3 IDEAL 50 V4
AC 1 0 Sine(0 1 5k 0 0) V5
E3
Integrator
Comparator
Delay
Gate Driver
Note Disable initial DC operating point analysis Add initial value in the feedback loop to start off oscillation Get into further work once basic ideal model is confirmed
MOSFET
LPF
50 V1
72
80
Switching Node
60
40
20
-20
Speaker Output
73
END