




























































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





























































































2002-10-
Dan Ellis
1
ELEN E4810: Digital Signal Processing
Simple Filters
Ideal Filters
Linear Phase and FIR filter types
2002-10-
Dan Ellis
2
Filter
= system for altering signal in
some ‘useful’ way LSI systems:
^
are characterized by H(z) (or h[n]) ^
have different gains (& phase shifts) atdifferent frequencies ^
can be designed systematically for specificfiltering tasks
2002-10-
Dan Ellis
4
h
n
2
(2 pt moving avg.) H
L
(^1 )
z
−^1
(^
) =
z
z
×
1 ZP
zero at^ z
= -
L
e
j^ ω (^
) =
e
−^
j^ ω
2
cos
n
-^
1
2
3
4
1 / 2
h
[L n ]
ω π
|H
(L
je ω)
|
1 /
2
sample delay
j e ω/
+e
-j^ ω
/
2002-10-
Dan Ellis
5
Filters are oftencharacterized by theircutoff frequency
ω
:c
Cutoff frequency is most often definedas the
half-power
point i.e.
H e^ If then
j^ ω
c
2
(^1 )
max
H e
j^ ω
2
1 2
max
ω
ω
c
|H
(e
j^ ω
)|
H e
j^ ω
cos
(^
)
c^
2 cos
−^1
1 2
π^2
2002-10-
Dan Ellis
7
We often plot magnitudes in dB: A gain of 0 corresponds to -
dB
0
1
0.8 0.6 0.4 0.2^0 1/√
(^12)
ω /π
)|ωj |H(e
0
1
(^0) -3-5 -10 -15 -
ω /π
)| / dBωj |H(e
2002-10-
Dan Ellis
8
h
H
[n
2
3dB point
ω
c^
π/
2
(again)
H
1 2
z
−^1
(^
) =
z
z^
zero at^ z^1 ZP
= 1
H
e
j^ ω (^
) =
je
−^
j^ ω
2
sin
(^
)
ω π
|H
H (e
j^ ω
)|
n
-^
2
3
4
1 / 2
h H [n
]
(^1) - /^2
ω
c
2002-10-
Dan Ellis
10
-^
0
1
(^10) -
z-plane
freq
ω^ /
π
)|ω (^) j |H(e
)|ω (^) j |H(e
freq
ω^ /
π
0
1
(^1) 0.5 0
-2 10
-1 10
(^010)
010 -1 10 -2 10
α^
α→
1
α→
1
feedback, zeros and poles,
conditional stability,
h
[n
less useful
LP
z( ) =
z
−^1
z −^1
scale to make gain = 1 at
ω
= 0
→
K
= (1 -
α
)/
pole-zerodiagram
frequencyresponse
FR on log-log axes
2002-10-
Dan Ellis
11
Cutoff freq.
ω
c^
from
LP
z( ) =
z
−^1
z
LP
e
j^ ω
c
(^
)^
2
max
max = 1 using
K
=(1-
α
)/
(^
(^2) )
4
e
−^
j^ ω
c
(^
)^
e
j^ ω
c
(^
)
e
−^
j^ ω
c
(^
)^
e
j^ ω
c
(^
)
cos
c^
2
sin
c
cos
c
Design Equation
2002-10-
Dan Ellis
13
Consider lowpass filter: Then: However,(unless
(e
j^ ω
is pure real - not for IIR)
LP
e
j^ ω (^
) =
ω ≈
large
ω
LP
e
j^ ω (^
) =
large
LP
z( )
LP
z( )
(-1)
nh
[n
]
just another z poly
2002-10-
Dan Ellis
14
BP
z( ) =
z
−^2
(^
z) −^1
z −^2
z
−^1
(^
)^
z
−^1
(^
)
r^
cos
z
−^1
r
2 z
−^2
whereCenter freq3dB bandwidth
r^
α
cos
θ =
β
α
α
cos
−^1
2
c^
cos
−^1
Design
2002-10-
Dan Ellis
16
Design eqns:
ω^ /^
π ω^ /^
π
)|^ jw^ |H(e^ )| / dB^ jw |H(e
-^
0
1
(^1) 0.5 (^0) -0.5-1^0
1
(^1) 0.5 0 -2 10
-1 10
(^010)
(^0) -10 -20 -30 -
z-plane
BS
z( ) =
z −^1
z
−^2
(^
z) −^1
z −^2
zeros at
ω
c
same poles as
H
BP
cos
−^1
2
cos
cos
2
c^
cos
−^1
cos
c
2002-10-
Dan Ellis
17
Repeating
a filter (cascade connection)
makes its characteristics more abrupt: Repeated roots in z-plane:
H
(e
j^ ω
)
H
(e
j^ ω
)^
H
(e
j^ ω
)^
H
(e
j^ ω
)
ω
|H
(e
j^ ω
)|^
ω
|H
(e
j^ ω
(^3) )|
1 ZP
2002-10-
Dan Ellis
19
10
-^
10
-^
10 0
(^0) -10 -20 -30 -40 -50 -
2nd order
-6dB/oct -12dB/oct4th order
ω/
π
)|ω je ( H |
Cascading filters improves rolloff slope: But: 3dB cutoff frequency will change(gain at
ω
c^
dB)
ω
c
2002-10-
Dan Ellis
20
Typical filter requirements:
^
gain = 1 for wanted parts (pass band) ^
gain = 0 for unwanted parts (stop band)
“Ideal” characteristicswould be like:
^
no phase distortion etc.
What is this filter?
^
can calculate IR
h
[n
]^
as IDFT of ideal
response...
ω
|H
(e
j^ ω
)|^
“brickwallLP filter”