filter design iir
TRANSCRIPT
-
8/13/2019 Filter Design IIR
1/16
Filter Design - IIR ([email protected]) 1
Analog IIR Filter DesignCommonly used analog filters :
Lowpass Butterworth filtersall-pole filters characterized
by magnitude response.
(N=filter order)
Poles of H(s)H(-s) are equally spaced points on a circle ofradius in s-plane
N
c
N
c
ssHsHsG
jHjG
)(1
1)()()(
)(1
1
)()(
2
2
2
2
+
==
+
==
c
poles of H(s) N=4
|c |
-
8/13/2019 Filter Design IIR
2/16
Filter Design - IIR ([email protected]) 2
Butterworth Filters Lowpass Butterworth filters
monotonic in pass-band & stop-band
`maximum flat response: (2N-1) derivatives are zero at
and
N
c
0= =
-
8/13/2019 Filter Design IIR
3/16
Filter Design - IIR ([email protected]) 3
Analog IIR Filter DesignCommonly used analog filters :
Lowpass Chebyshev filters (type-I)all-pole filters characterized by magnitude response(N=filter order)
is related to passband rippleare Chebyshev polynomials:
)()()(
)(1
1)()(
22
2
sHsHsG
T
jHjG
c
N
=
+
==
)(xTN
)()(2)(
...
12)(
)(
1)(
21
22
1
0
xTxxTxT
xxT
xxT
xT
NNN =
=
=
=
-
8/13/2019 Filter Design IIR
4/16
Filter Design - IIR ([email protected]) 4
Chebyshev & Elliptic Filters Lowpass Chebyshev filters (type-I)
All-pole filters, poles of H(s)H(-s) are on ellipse in s-plane
Equiripple in the pass-band Monotone in the stop-band
Lowpass Chebyshev filters (type-II) Pole-zero filters based on Chebyshev polynomials
Monotone in the pass-band Equiripple in the stop-band
Lowpass Elliptic (Cauer) filters
Pole-zero filters based on Jacobian elliptic functions Equiripple in the pass-band and stop-band (hence) yield smallest-order for given set of specs
)(1
1)(
2
2
c
NU
jH
+
=
-
8/13/2019 Filter Design IIR
5/16
Filter Design - IIR ([email protected]) 5
Analog IIR Filter DesignFrequency Transformations :
Principle : prototype low-pass filter (e.g. cut-off frequency= 1 rad/sec) is transformed to properly scaled low-pass,high-pass, band-pass, band-stop, filter
example: replacing s by moves cut-off frequency to
example: replacing s by turns LP into HP, with cut-offfrequency
example: replacing s by turns LP into BP
C
s
C
s
CC
)( 12
21
2
+
s
s
-
8/13/2019 Filter Design IIR
6/16
Filter Design - IIR ([email protected]) 6
Analog -> Digital Principle :
design analog filter (LP/HP/BP/), and then convert it to adigital filter.
Conversion methods: convert differential equation into difference equation
convert continuous-time impulse response into discrete-time impulse response
convert transfer function H(s) into transfer function H(z)
Requirement: the left-half plane of the s-plane should map into the
inside of the unit circle in the z-plane, so that a stableanalog filter is converted into a stable digital filter.
-
8/13/2019 Filter Design IIR
7/16
Filter Design - IIR ([email protected]) 7
Analog -> Digital(I) convert differential equation into difference equation :
in a difference equation, a derivative dy/dt is replaced by abackward difference (y(kT)-y(kT-T))/T=(y[k]-y[k-1])/T,where T=sampling interval.
similarly, a second derivative, and so on.
eventually (details omitted), this corresponds to replacing s by
(1-1/z)/T in Ha(s) (=analog transfer function) :
stable analog filters are mapped into stable digital filters, butpole location for digital filter confined to only a small region(o.k. only for LP or BP)
Tzsa sHzH 11)()(
==
jw
s-plane z-planej
1 0
10
==
==
zs
zs
-
8/13/2019 Filter Design IIR
8/16
Filter Design - IIR ([email protected]) 8
Analog -> Digital(II) convert continuous-time impulse response into discrete-time
impulse response :
given continuous-time impulse response hc(t), discrete-time impulseresponse is where Td=sampling interval.
eventually (details omitted) this corresponds to a (many-to-one)mapping
aliasing (!) if continuous-time response has significant frequencycontent above the Nyquist frequency (i.e. not bandlimited)
)(][ dc kThkh =
s-plane jw z-plane j
1
dsTez =
1/
10
==
==
zTjs
zs
d
-
8/13/2019 Filter Design IIR
9/16
Filter Design - IIR ([email protected]) 9
Example: Filter Design by
Impulse Invariance
-
8/13/2019 Filter Design IIR
10/16
Filter Design - IIR ([email protected]) 10
Many-to-one mapping
-
8/13/2019 Filter Design IIR
11/16
Filter Design - IIR ([email protected]) 11
Example: A Low-Pass Filter
Then
-
8/13/2019 Filter Design IIR
12/16
Filter Design - IIR ([email protected]) 12
By using Butterworth filter, then
Consequently,
Then
N=5.8858
Since N must be integer. So, N=6. And we obtain c=0.7032
We can obtain 12 poles of |Hc(s)|2. They are uniformly distributed inangle on a circle of radius c=0.7032
-
8/13/2019 Filter Design IIR
13/16
-
8/13/2019 Filter Design IIR
14/16
Filter Design - IIR ([email protected]) 14
Analog -> Digital (III) convert continuous-time system transfer function into
discrete-time system transfer function : Bilinear Transform
mapping that transforms (whole!) jw-axis of the s-plane intounit circle in the z-plane only once, i.e. that avoids aliasing ofthe frequency components.
for low-frequencies, this is an approximation of for high frequencies : significant frequency compression
(`warping) sometimes pre-compensated by pre-warping
s-planejw
z-planej
1
)1
1(
21
1)()(
+
=
=
z
z
Tsa
sHzH1.
10
==
==
zjs
zs
sTez =
Non-linear transform
-
8/13/2019 Filter Design IIR
15/16
Filter Design - IIR ([email protected]) 15
The bilinear transformation avoidsthe problem of aliasing problembecause it maps the entireimaginary axis of the s-plane ontothe unit circle in the z-plane. The
price paid for this, however, is thenonlinear compression thefrequency axis (warping).
-
8/13/2019 Filter Design IIR
16/16
Filter Design - IIR ([email protected]) 16
Conclusions/Software IIR filter design considerably more complicated
than FIR design (stability, phase response, etc..)
(Fortunately) IIR Filter design abundantly availablein commercial software
Matlab:[b,a]=butter/cheby1/cheby2/ellip(n,,Wn),
IIR LP/HP/BP/BS design based on analog prototypes, pre-warping,
bilinear transform,