Beruflich Dokumente
Kultur Dokumente
Challenge 25
Exam #4 Review
Topical Coverage: FIR/IIR
Exam #4 Review
10 6
H s 2
s 2 103 s 106
If the sample frequency is fs=1000 Sa/s, what is the bilinear z-transform
version of H(s)?
Some aliasing should be expected when using the standard z-transform.
None, however, should be expected for the bilinear z-transform model.
106
H z 2
s 2 103 s 106
106
4 10
z 1 2 2
z 1 2
2 106
2 z 1
Ts z 1
0.128 z 1
2
z .767 z 0.278
2
z 1 106
z 1
H(z) Impulse
Invariant
1000(-1/2j1 /2)
-1/2j1/2
0.375j0.32
Hp(s) Prototype
H(s)
Pole Comparisons
H(z) Bilinear
0.384j0.36
Lesson 25 Snapshot
Bi-linear Design Strategy
Step-by-step design procedure
Digital
Filter
Requirements
Step 1:
Prewarp digital frequencies
Hp(s)
Hp(s)
H(s)
Step 3:
H(s)
H(z)
Example
Design a Butterworth lowpass filter that meets the following
specifications:
Minimum passband attenuation = -3dB
Passband f[0,1]kHz
Minimum stopband attenuation = -10dB
Stopband f[2,5] kHz
Sample frequency fs=10kHz
Step 1: Given fp=1 kHz, fa=2 kHz and fs=10 kHz, determine the prewarped analog frequencies.
p 2 f p / f s 2 0.1 0.2
p
2
tan( p / 2) 20 103 tan(0.1 ) 6498r/s 1.0345kHz ~ f p
Ts
p p ; a a
9
1
s 2 1.414.s 1
10
H a ( s) H p ( s)
s s / 6498
4.3 10 7
H a ( s) 2
s 9.2 103 s 4.3 10 7
11
Practice Exam #4
Exam #4 Review
13
Problem 1: FIR
A 7th order Type 1 FIR has the impulse response h[k]={-0.1, 0, 0.3, 0.5,
0.3, 0, -0.1} . The magnitude frequency response is shown for a
sample rate of fs=1k Sa/s.
Type 1: Odd (MATLAB even) order, even symmetry.
0. 6
0.5
0. 5
0. 4
0.3
0. 3
0. 2
0. 1
-0.1
-0. 1
0.3
-0.1
1.4
1.2
1.0
0.9
0.8
Nulls
0.6
0.4
0.2
0.0
0.5
1.5
2.5
3.5
0.5
14
a)
b)
Exam #4 Review
15
Exam #4 Review
16
e)
Exam #4 Review
17
f)
e)
A non-uniform error weighted filter (from 1.f) has p=0.1. What is the value of a?
uniform = p a or 0.01 = 0.1 a or a = 0.001
Exam #4 Review
18
Problem 2: IIR
A 1st order digital low pass filter, having a 3dB passband
ranging over f[0, 1/5] Hz, is sampled at a rate fs=1 Hz.
1.0
0.707
0
0.2
0.5
Exam #4 Review
19
p 2
which defines the pre-warped analog filters critical passband cut off
frequency to be:
p
2
2 0.2
2 tan
p tan
1.45 r / s (0.23Hz )
Ts
2
2
p p
Exam #4 Review
20
Ha s H p s
s s / p
1
s
1
1.45
1.45
s 1.45
1.45
s 1.45 s 2 z 1
z 1
1.45
1.45 z 1
0.42 z 1
Exam #4 Review
21
From this point on, assume that the digital filters transfer function is
H(z)=(1/2) (z+1)/(z-(1/2))
b. What is the DC gain of your digital filter?
H 1
0 .5 * 2
2
0 .5
H 1
0.5 z 1
z 0 .5
z 1
0 .5 * 0
0 0180
1 .5
Exam #4 Review
22
Problem 3: FIR
A 7th order lowpass FIR filter is designed to suppress signals above 6kHz
and pass signals out to 4kHz . The filter is clocked at 20k Sa/s and has an
assumed impulse response:
h[k] = {1/2, 1/4, 1/8, 1/16, 1/32, 1/64, 1/128}.
Exam #4 Review
23
G hi (
k 0
1 1 1
1
1
1
1
) 0.992 y k 1
2 4 8 16 32 64 128
or G 27 1 / 2 7 0.992 y k 1
and xworst_case_input[k]={1,1,1,1,1,1,1}
Exam #4 Review
24
Problem 4: IIR
A 1st order Butterworth digital lowpass IIR filter H(z) is to be designed
using the bilinear z-transform, and sampled at a 1 Sa/s rate. The IIR has
a -3dB passband defined over f[0, 0.25] Hz. The analog prototype is
given by:
Hp(s)=1/(s+1),
The analog and digital filters are illustrated below.
1
0.707
|H(ej)|
0
Exam #4 Review
25
p
2
2 0.25
2 tan
p tan
2
tan
2 r/s
Ts
2
4
2
~ 0.318 Hz>0.25Hz
Exam #4 Review
26
b. Suppose the p from Part 4.a is p = 2 r/s. Derive the digital filters
transfer function using the bi-linear z transform.
For p 2; H s H p (s )
s
s
p
p
s p
2
; therefore
s2
2
2
2 z 1
s 2 z 2 z 1 2 z 1 2 2z 2 (2z 2)
Ts z 1
z 1
z 1
2 z 1 0.5 z 1
4z 0
z
H z H s z 2 z 1
Exam #4 Review
27
0.5 z 1
z
z e j j
0.5 j 1
2
45
j
2
H z
2
45 ( part 4.d )
2
28
Exam #4 Review
29