A Universal Grammar of Class D Amplification: Life On The Edge
A Universal Grammar of Class D Amplification: Life On The Edge
Copyright notice
This presentation 2008 Bruno Putzeys, Hypex
Electronics.
Do not distribute this file, instead link to this file on the
Hypex web site.
Contents
Definition
Basic principles
Class D as Power Converter
Self-oscillating loops
EMI
Filter components
Board layout
Definition
A class D amplifier is a power amplifier where all active
devices in the power stage are operating in on/off
mode.
On=current, but no voltage
Off=voltage, but no current
Definition
Digital amplifier is an oxymoron
Voltage, current and time are physical quantities
(analogue).
Digital is strings of numbers.
Speakers dont understand numbers.
Class D requires analogue design skills to make work.
DSP control may help solve or exacerbate analogue
issues.
PWM basics
The archetype
+B
Q1
LOAD
Q2
LF in
Triwave in
-B
PWM basics
Two-state clocked PWM
AV
VPWM,pp
Vtri ,pp
VB VB
Vtri ,pp
Some conventions
M
100%
1
0
-1
0.5
75%
1
0
-1
50%
1
0
-1
-0.5
25%
1
0
-1
-1
0%
1
0
-1
t sw t on t off
fs
t on t off
M
t sw
t on
100%
t sw
M 2 1
VH
VC
VH -VC
VH
Vdd
VC
VH
VC
VH-VC
VH
Vdd
VC
2-State vs 3-State
Three-state...
doubles sampling rate
Better efficiency vs bandwidth
Output filter?
Single-core
no excitation current
crossover distortion results
Two-core
excitation current doubles for constant sampling rate
Vdd
Vdd
V2
V3
Vdd
Vin
Vdd
V1
V4
Shift Register
Permutation
Selector
LPF
Out
0.5A
0.5V
0.5A
1
Puit= (0.5V)2* 1= 0.25W
= 75%
= 25%
0.5A
= 25%
0.5A
= 75%
75%* 0.5A= 0.375A
0.25A
Inductor current
Small modulation index
VswVout
Vout
Vsw
IL
IC
C
IC IR
IR
R (?)
IL
Inductor current
Large modulation index
VswVout
Vout
Vsw
IL
IC
C
IC IR
IR
R (?)
IL
D
G
G
S
Ron
+V
+V
+V
-V
-V
-V
-V
PWM
Vsw
+V
+V
+V
-V
-V
-V
-V
PWM
Vsw
2 3
Open-Loop Distortion
Analyser Reading
MOSFET parasitics
LD
CGD
CDS
LG
RG
CGS
LS
Parasitic capacitances
VGS (V)
dVGS
IG
=
dt
CISS (VDS= VDD)
Vth
VDS (V)
IDD
Vdd
VDS
dVDS
I
= G
dt
CRSS
ID
Vgs
Vdd
10V
Ig
ID (A)
IDD
Q G= IG* t ( C )
IDD
VDS
Vth
ID
Vgs
Vdd
VDS (V)
Q G= IG* t ( C )
Vdd
Ig
10V
ID (A)
Q G= IG* t ( C )
IDD
Q G= IG* t ( C )
Gate Gotchas
Until and during recovery
After recovery
Vds<Vgs
Gate capacitance is high
Dissipated power = Vds*Id*time
Wed like to finish quickly
Output filter
Desired function
Attenuate the carrier
Undesired functions
Restrict bandwidth
Increase output impedance
Modify the frequency response
Add distortion
Output Filter
The optimisation problem
Switch Timing
Dead time causes distortion
Output Filter
Output impedance is infinity at fc
Inductor is non-linear
Feedback
Solves many problems at once
Output impedance (post LPF only)
Distortion
Frequency response (post LPF only)
phase
group delay
y A(s) x B(s) y
A(s) x
A(s) x
y
1
ETF(s)
1 A(s) B(s)
A(s)
STF(s)
1 A(s) B(s)
Various permutations
A B
1
x
1 B A B
1 B A B
B A B
1
x
1 B A B
1 B A B
AC
1
x C
1 A A C
1 A A C
AC
1
x C
1 A C D
1 A C D
Various permutations
AL B A B
x
A B
1
x
1 AL
1 AL
AL B A B
x
AL
1
x
1 AL
1 AL
AL A A C
AC
1
y
x C
1 AL
1 AL
AL A C D
AC
1
y
x C
1 AL
1 AL
Loop needs
ETF must be stable and not have excessive gain
Poles well left of imaginary axis
Loop function AL
Loop poles=zeros of ETF
Loop zeros must be freely settable
...then
a stable loop is always possible
n 1
n 1
s z a s
AL s k
i 1
n
i 0
n
i
b
p
i i
i 1
i 0
Typical loops
1 pole, no zeros, pre-filter f/b only
Typical loops
2 poles, 1 zero, pre-filter f/b only
Typical loops
3 poles, 2 zeros, mixed feedback
Typical loops
3 poles, 2 zeros, global feedback
d/dt
Typical loops
...PID!
Proportional
Integrating
Derivative
Contra
Cant get away with bad PCB layout
Rearranged loops
Digital PWM + local loop (edge error correction)
Digital PWM
1-bit DAC
Pulse Shpr
Rearranged loops
Hidden analogue amplifier:
Digital PWM
analogue in
Pulse Shpr
Rearranged loops
No news at all, really:
analogue in
Rearranged loops
Indirect digital feedback
1-bit DAC
Noise
Shaped
PWM
Noise
Shaped
Corr
ADC
Rearranged loops
...a remarkable similarity...
Noise
Shaped
PWM
+
1-bit DAC
ADC
Noise
Shaped
Corr
ADC
H(z)
PWM
NTF
Transform AL to z domain
Highly optimised AL may seem instable in linear analysis
and be critically damped in sampled system!
Ripple aliasing
R
PWM
Triangular Reference=R
Control=(Input-PWM)*H(z)=C
PWM
Ripple aliasing
Ripple distorts carrier
1-bit DAC
Pulse Shpr
Operation
Minimal ripple in feedback loop.
Pro
Theoretically perfect regardless of loop order
Contra
Gains must be matched: 1-bit DAC and PWM must scale with supply
PWM generator is a problem in its own right
Not compatible with post-filter feedback
Pro
Theoretically perfect for 1st order loop
Reasonably compatible with higher order including mixed post-filter
f/b
Contra
Complex triwave generation
MAE
Operation
Ripple in feedback loop not reduced, phase shift optimised for
minimum impact.
Pro
Grafts well onto standard control circuit.
Compatible with post-filter feedback (perhaps not fully global)
Pro
Perfectible for any loop (5th order with global f/b demonstrated)
Compatible with global f/b
Closed-form analysis and design
Contra
Complex triwave generation
High sensitivity to parts tolerance
Self-Oscillating Loops
Aim
Getting rid of the oscillator
Improving maximum modulation index
Self-Oscillating Loops
Hysteresis modulator
out
in
comparator
power stage
Hysteresis modulator
Operation
Vint
Vf
Va
Vb
t1
t0
Hysteresis modulator
Improved version
out
in
comparator
power stage
Hysteresis modulator
Output Signal
50
40
30
20
10
0
-10
-20
-30
-40
-50
0
500u
1m
Hysteresis modulator
Completely linear
Switching frequency falls early
becomes audible near clip
Hysteresis modulator
Post-LPF added
out
in
comparator
power stage
Less linear
No-load stability not guaranteed
Hysteresis modulator
Capacitor current feedback (Mueta)
in
Global loop
Good linearity
Current sense has low EMI sensitivity
out
in
out
500u
1m
Clead
Rf
in
Rlead
Ri
out
delay=tprop
comparator
power stage
UcD
Operation
Combined phase shift of output filter, lead network and
propagation delay set fosc.
Extra pole may be added
UcD
+180
Ph(Delay(f))
Ph(Hlpf(f)*Hfbn(f))
Ph(Hlpf(f)*Hfbn(f)*Delay(f))
Ph(Hlpf(f))
-180
100
1k
10k
100k
Oscillation Frequency
1M
dV1/dt
dV2/dt
1/fsw
ADC
2 VCC fsw
dV1
dV2
dt
dt
Clead
Rf
in
Rlead
Ri
ADC
out
100u
200u
AD
Common-mode voltage theoretically 0
Differential mode same as half bridge
BD
Differential mode cancels at low modulation...
...but that was not really a problem anyway.
Common-mode voltage same as half bridge
Bad.
Period.
Good.
Out
Line In
LPF
DC in
DC in
Out
Line in
Power stage
Summary
All Unique Class D Technologies are related
All draw from a limited set of concepts
Modulation technique
Power stage arrangement
Loop control
Summary
Good design criteria: black box
Audio performance
Robustness
Simplicity
EMC, efficiency...
Powerpoint appeal
Summary of summaries
The Road To Heaven
Specify the performance and accept the design
Thank you!