Documente Academic
Documente Profesional
Documente Cultură
Lecture # 11
IIR Filter Design
Problem
Analysis
Performance
Constraints
Magnitude Response
Phase response
Cost/complexity
Design
FIR/IIR
Subtype
order
Transfer
function
Implementation
Platform
structure
Performance Constraints
.. in terms of magnitude response:
Performance Constraints
Smallest
Passband
Ripple
Best Filter
Narrowest
Transition
Band
Min Stopband
Attenuation
Greatest
improving one usually worsens others
Passband Ripple
Stopband Ripple
IIR
No Feedback
(just zeros)
Feedback
(poles & zeros)
Always stable
May be unstable
High order
(20 2000)
10
Basic choices:
ripples vs. flatness in stop and/or passband
more ripples narrower transition band
11
CT Transfer Functions
Analog systems: s-transform (Laplace)
12
Butterworth Filters
Maximally flat in both pass & stop bands
13
Butterworth Filters
14
Butterworth Filters
How to meet design specifications?
15
Butterworth Filters
16
Butterworth Example
Design a Butterworth filter
with 1 dB cutoff at 1kHz and
a minimum attenuation of 40
dB at 5 kHz
17
18
Butterworth Example
Order N = 4 will satisfy constraints;
What are c and filter coefficients?
from a lookup table, -1dB = 0.845 when c = 1
So c = 1000/0.845 = 1.184 kHz
19
20
21
22
23
24
25
26
27
28
29
Butterworth,
Chebyshev I
Chebyshev II
Elliptic
30
31
32
where N1,N2 are the indices of the 1st and last non-zero samples of h(n).
Dr Sajjad Zaidi - DSP
33
where X(), H(), and Y() are the DTFT of x(n), h(n), and y(n), respectively.
34
1 z
H LP [ z ] K
1 z 1
scale to make
gain = 1 at = 0
pole-zero
diagram
K = (1 - )/2
frequency
response
Dr Sajjad Zaidi
- DSP
FR on
log-log axes
35
1 z
H LP [ z ] K
1 z 1
Cutoff freq. c from
36
1 z 1
H HP [ z ] K
1
1 z
Pass =
HHP(-1)=1
K=(1+)/2
37
then
However
(unless H(ejw) is pure real not for IIR)
Dr Sajjad Zaidi - DSP
38
39
40
41
Cascading Filter
Repeating a filter (cascade connection) makes its
characteristics more abrupt:
42
Cascading Filter
Cascade systems are higher order
e.g. longer (finite) impulse response:
43
Linear-phase Filters
|H(ej)| alone can hide phase distortion
differing delays for adjacent frequencies can mangle the signal
linear phase
44
v[n]
x[n]
H(z)
Time
reversal
H(z)
w[n
]
Time
reversal
y[n]
45
46
Comb Filter
Replace all system delays z-1 with longer delays z-L
47
Comb Filter
Parent filter impulse response h[n] becomes comb filter
output
g[n] = {h[0] 0 0 0 0 h[1] 0 0 0 0 h[2]..}
Thus,
High-pass response
pass = /L, 3/L, 5/L...
cut = 0, 2/L, 4/L...
Dr Sajjad Zaidi - DSP
48
Allpass Filter
Allpass filter has |A(ej)|2 = K
i.e. spectral energy is not changed
e.g.
Allpass has special form of system
fn
49
Good Luck
50