Professional Documents
Culture Documents
5-1
Section Outline
Filter specifications Analog prototyping Filter design functions Introduction to the Filter Design and Analysis Tool (FDATool)
5-2
Filter Design
Design specifications
Remove noise above Less specific a cutoff frequency Set passband ripple, stopband attenuation, or transition width Minimize filter order More specific Arbitrary response
2010 Trity Technologies Sdn Bhd. All Rights Reserved
Filter Configurations
Lowpass filter Highpass filter
Bandpass filter
Bandstop filter
5-4
Filter Specifications
0 Magnitude (dB) 0
Rp
Rs
Passband
Stopband
0
2010 Trity Technologies Sdn Bhd. All Rights Reserved
1
5-5
5-6
Butterworth
Chebyshev Type I
Chebyshev Type II
Elliptic
2010 Trity Technologies Sdn Bhd. All Rights Reserved
Bessel
5-7
Analog Prototyping
1. Find an analog lowpass filter with cutoff frequency of 1 and
translate this prototype filter to the desired band configuration
buttap, cheb1ap, besselap, ellipap, cheb2ap lp2lp, lp2hp, lp2bp, lp2bs bilinear, impinvar
Alternatively: The butter, cheby1, cheby2, ellip, and besself functions perform all steps of the filter design The buttord, cheb1ord, cheb2ord, and ellipord functions perform minimum order computations for IIR filters. 2010 Trity Technologies Sdn Bhd. All Rights Reserved 5-8
Rp Rs
20 dB
0.5 dB
Ws(1)
2010 Trity Technologies Sdn Bhd. All Rights Reserved
0.02
Wp(1)
0.03
Middle C 0.0525
Wp(2)
0.07
Ws(2)
5-9
0.08
5-10
-20 dB
Bilinear transformation
-20 dB
2010 Trity Technologies Sdn Bhd. All Rights Reserved
5-11
Order 10
5-12
Elliptic Method
>> ellipband
Order 8
5-13
5-14
5-15
Butterworth
Chebyshev Type I
Chebyshev Type II
Elliptic
2010 Trity Technologies Sdn Bhd. All Rights Reserved
Example 1:
For data sampled at 1000 Hz, design a 9th-order highpass Butterworth IIR filter with cutoff frequency of 300 Hz,
Solution:
Example 2:
For data sampled at 1000 Hz, design a 9th-order lowpass Chebyshev Type I filter with 0.5 dB of ripple in the passband and a cutoff frequency of 300 Hz, which corresponds to a normalized value of 0.6:
Solution
[b,a] = cheby1(9,0.5,300/500); freqz(b,a,512,1000)%The frequency response of the filter
2010 Trity Technologies Sdn Bhd. All Rights Reserved
5-17
5-18
>> fdatool
5-19
5-20
5-21
5-22