Analog Filter Synthesis
Analog Filter Synthesis
Phase response
Group delay Step response All-pass filters
A/D DSP
2002 B. Boser 1
Filter Approximation
Objective: Magnitude specification H(s) Classic IIR Filters
Chebychev 2 Uses zeros for good attenuation but has no passband ripples. A good all-round combination. Butterworth Poles only and no passband ripple. Less ringing in step response than Chebychev 2. Elliptic Passband and stopband ripples. Use this when only magnitude response counts. Large overshoot in step response. High Q poles result in high sensitivity. Bessel Great step response at the cost of poor attenuation.
A/D DSP
2002 B. Boser 2
Design Example
0 Rp = 3 dB Butterworth (N = 5) Chebychev 2 (N = 4) Elliptic (N = 3) -20
-60
-80
Rs = 80 dB
-100
-120 4 10
10 fp = 100kHz
Frequency [Hz]
10 fs = 1MHz
10
A/D DSP
2002 B. Boser 3
Matlab Code
fp = 1.0e5; fs = 1.0e6; rp = 3; rs = 80; wp = 2*pi*fp; ws = 2*pi*fs;
% filter prototype [Nb, Wb] = buttord(wp, ws, rp, rs, 's'); [b, a] = butter(Nb, Wb, 's'); Hb = tf(b, a); [Nc, Wc] = cheb2ord(wp, ws, rp, rs, 's'); [b, a] = cheby2(Nc, rs, Wc, 's'); Hc = tf(b, a); [Ne, We] = ellipord(wp, ws, rp, rs, 's'); [b, a] = ellip(Ne, rp, rs, We, 's'); He = tf(b, a);
A/D DSP
2002 B. Boser 4
Step response
Step Response 1.4 1.2
Amplitude
0.8
0.6
0.4
0.2
A/D DSP
2002 B. Boser 5
Data Transmission
1 in H Random Data Binary Filter 2 out
0.5
-0.5
-1
-1.5
0.5
1 x 10
1.5
-3
A/D DSP
2002 B. Boser 6
Eye Diagram
1 0.8 0.6 0.4 0.2 0 -0.2 -0.4 -0.6 -0.8 -1 0 0.5 1 1.5 2 2.5 Time 3 3.5 4 4.5 5 x 10
-4
A/D DSP
2002 B. Boser 7
0.5
1.5
2.5 Time
3.5
4.5
5
-5
x 10
A/D DSP
2002 B. Boser 8
Group Delay
Nonuniform group delay is one source of eye closure Group delay?
A/D DSP
2002 B. Boser 9
The filter input is the sum of two sinewaves at slightly different frequencies (<<): vIN(t) = A1sin(t) + A2sin[(+) t]
A/D DSP
2002 B. Boser 10
{[
t+
]} { [
()
+ t+ (+) +
]}
A/D DSP
2002 B. Boser 11
{[
t+
()
]}
t+
(+) +
]}
(+) +
A/D DSP
()+ d() d
() +
d() () - d
][ ( )] )
2002 B. Boser 12
1 1
d() () - d
If the second term in this equation is nonzero, then the filters output at frequency + is time-shifted differently than the filters output at frequency Phase distortion
A/D DSP
2002 B. Boser 13
d() () - d
If the second term in this equation is zero, then the filters output at frequency + and the output at frequency are each delayed in time by -()/ PD -()/ is called the phase delay and has units of time
A/D DSP
2002 B. Boser 14
Clearly, if ()=k , k a constant, we avoid phase distortion This type of filter phase response is called linear phase
Phase shift varies linearly with frequency
A/D DSP
2002 B. Boser 15
A/D DSP
2002 B. Boser 16
[(
)]
+ A2 G[ j(+)] sin (+) t - GR If G( j)=G[ j( +)] for all inputs within the signal-band, vOUT is a scaled, time-shifted replica of the input, with no amplitude distortion
A/D DSP
)]
2002 B. Boser 17
A/D DSP
2002 B. Boser 18
A/D DSP
2002 B. Boser 19
Magnitude Response
Bode Magnitude Diagram 0 -10
-20
-30
Magnitude (dB)
-40
-50
-60
-70
-80
10 Frequency [Hz]
10
A/D DSP
2002 B. Boser 20
Phase Response
0 -50
-150
-200
-250
4th Order Chebychev 2 4th Order Bessel -300 0 0.2 0.4 0.6 0.8 1 1.2 Frequency [Hz] 1.4 1.6 1.8 x 10 2
5
A/D DSP
2002 B. Boser 21
Group Delay
7 4th Order Chebychev 2 4th Order Bessel 6
Group Delay [ s]
0 4 10
10
10 Frequency [Hz]
10
A/D DSP
2002 B. Boser 22
0.8
0.6
0.4
0.2
0 4 10
10
10 Frequency [Hz]
10
A/D DSP
2002 B. Boser 23
Step Response
Step Response 1.4 4th Order Chebychev 2 4th Order Bessel 1.2
0.2
0.4
0.6
0.8
1 Time (sec)
1.2
1.4
1.6
1.8 x 10
2
-5
A/D DSP
2002 B. Boser 24
Eye Diagrams
4th Order Chebychev
1 1 0.8 0.8
0.6
0.6
0.4
0.4
0.2
0.2
-0.2
-0.2
-0.4
-0.4
-0.6
-0.6
-0.8
-0.8
-1 -1
2 Time
5 x 10
6
-5
-1 -1
2 Time
5 x 10
6
-5
Note: the Chebychev output should be scaled to the same peak amplitude as the output from the Bessel. The Bessel has a clear advantage.
A/D DSP
2002 B. Boser 25
Allpass Filters
Delay equalization
Unity magnitude response arbitrary delay
A/D DSP
2002 B. Boser 26
A/D DSP
2002 B. Boser 27
All pass sections cant cancel out the delay of other filter sections,
But they can add strategic delay to improve the phase response of a companion filter
A/D DSP
2002 B. Boser 28
2002 B. Boser 29
2002 B. Boser 30
Magnitude Response
Bode Magnitude Diagram 0 -10
-20
-30
Magnitude (dB)
-40
-50
-60
-70
-90
-100 4 10
10 Frequency [Hz]
10
A/D DSP
2002 B. Boser 31
Phase Response
0 -100 -200
-400
-500
-600
-700 4th Order Chebychev 2 Allpass Cheby+Allpass 8th Order Bessel 0.2 0.4 0.6 0.8 1 1.2 Frequency [Hz] 1.4 1.6 1.8 x 10 2
5
-800
-900 0
A/D DSP
2002 B. Boser 32
0.8
0.6
0.4
0.2
0 4 10
10
10 Frequency [Hz]
10
A/D DSP
2002 B. Boser 33
Step Response
Step Response 1.2 1 0.8
0.6 Amplitude
0.4
0.2
-0.2
4th Order Chebychev 2 Allpass Cheby+Allpass 8th Order Bessel 0 0.5 1 1.5 Time (sec) 2 2.5 x 10 3
-5
-0.4
A/D DSP
2002 B. Boser 34
Eye Diagrams
4th Order Chebychev with 4th Order Allpass
1 0.8 1 0.8
0.6
0.6
0.4 0.2
0.4 0.2
-0.2 -0.4
-0.2 -0.4
-0.6
-0.6
-0.8
-0.8
-1 -1
2 Time
5 x 10
6
-5
-1 -1
2 Time
5 x 10
6
-5
A/D DSP
2002 B. Boser 35
A/D DSP
2002 B. Boser 36
Summary
Filter design:
Magnitude response
Template Approximation (matlab) H(s) Realization with
Cascades of biquads Sensitivity limits practical designs to <3 sections Ladder filters next lecture
2002 B. Boser 37