Professional Documents
Culture Documents
2
1. Equivalent descriptions of digital filters
With the aid of z-transform, several mathematically
equivalent ways to describe and characterize FIR and
IIR filters:
* Transfer function H(z)
* Frequency response H.
* Block diagram realization and sample processing
algorithms
* I/O difference equation
* Pole/Zero pattern
* Impulse response h(n)
* I/O convolution equation
The most important one is the transfer function
because from it we can easily obtain all the others 3
Equivalent description of digital filters
4
2. Transfer functions
1
Example 5 2z
H z
1 0.8 z 1
5 2 z 1 A1 7.5
H z 1
A0 1
2.5
1 0. 8 z 1 0.8 z 1 0.8 z 1
n
hn 2.5 n 7.50.8 u n
1 0.8z H z 5 2 z
1 1
H z 0. 8 z H z 5 2 z
1 1
hn 0.8hn 1 5 n 2 n 1
Y z H z X z 5
Consider the transfer function:
H z
5 1 0.4 z 1
H
5 1 0.4e j
1 0 .8 z 1
1 0.8e j
x(n) y(n)
5
z-1 z -1
2 0,8
1 ae j 1 2a cos a 2
5 1 0.8 cos 0.16
H
1 1.6 cos 0.64 6
The magnitude of the transfer function may be
plotted with the help of the pole/zero geometric
52
H () 0
H ( z) z 1
35
1 0,8
52 5 35
H ()
H ( z) z 1
1 0,8 3 21
7,5 w0
z-1
w(n-1)
w1
0,8
w0 5
Canonical form z -1
0,8 2
x(n) y(n)
5
w1(n)
Transposed
realization of H(z) z -1
2 0,8
9
* The transfer function of an IIR filter as the
ratio of two polynomials of degrees, say L and M
N z b0 b1 z 1 b2 z 2 ... bL z L
H z
D z 1 a1 z 1 a 2 z 2 ... a M z M
b0 b1 z 1 b2 z 2 ... bL z L
Y z H z X z 1 2 M
X z
1 a1 z a 2 z ... a M z
1 a z
1
1
a 2 z 2 ... a M z M Y z b0 b1 z 1 b2 z 2 ... bL z L X z
y n a1 y n 1 ... a M y n M b0 x n b1 x n 1 ... bl x n L
y n a1 y n 1 ... a M y n M b0 x n b1 x n 1 ... bl x n L
10
FIR filter:
H z N z b0 b1 z b2 z ... bL z
1 2 L
y n b0 x n b1 x n 1 ... bl x n L
Example: Determine the transfer function of the third-
order FIR filter with impulse response: h = [1, 6, 11, 6]
* I/O equation:
y(n) = x(n) + 6x(n -1) + 11x(n -2) + 6x(n -3)
* Z-Transform:
H(z) = 1 + 6z-1 + 11z-2 + 6z-3
* H(z) has one zero at z = -1,
11
H() = (1 + e-j)(1 + 2e-j)(1 + 3e-j)
12
Example: y(n) x (n) x (n 4)
4 Y ( z)
Y ( z) X ( z) z X ( z) H ( z) 1 z 4
X ( z)
H () 1 e 4 j (e 2 j e 2 j ) e 2 j 2 j sin(2) e 2 j
z 4 1 z e 2jk / 4 , k 0, 1, 2, 3 z 1, j, 1, j
13
Example: Determine the transfer function
and causal impulse response of the filters:
(a) y(n) = 0.25y(n-2) + x(n)
(b) y(n) = - 0.25y(n-2) + x(n)
Solve:
(a) Z-transform
Y(z) = 0.25Y(z)z-2 + X(z)
H(z) = Y(z)/X(z)
1 A1 A2
H z 2
1 0.25 z 1 0.5 z 1 0.5 z 1
1
15
(b) Y(z) = -0.25Y(z)z-2 + X(z)
1 A1 A1*
H z 2
1
1 0.25 z 1 0.5 jz 1 0.5 jz 1
16
4. Pole/zero designs
* First order filters
Pole/zero placement can be used to design filters such
as first order smoothers, notch filters and resonator
The general transfer function, where a, b are positive
and less than one; gain factor G is arbitrary
H z
5 2 z 1 5 1 0.4 z 1
H z
G 1 bz 1
1 0.8 z 1
1 0.8 z 1 1 az 1
17
Frequency response at lowest and highest
frequencies: = 0, by setting z = 1
G 1 b G 1 b
H 0 , H
1 a 1 a
The attenuation of the highest frequency relative to
the lowest one is:
H 1 b 1 a Define: max pi
i
H 0 1 a 1 b
neff
e
1 / neff 1 / 20 Where e is the desired
a 0.01 0. 8 level of smallest
1 b 1 0.8 1 b 0.4
1 0.81 b 21 Effective time constant
G 1 0.4 z 1 ln e ln( 1 / e )
H z neff
ln ln(1 / )
1 0.8 z 1
18
* Resonators and equalizers
Example for a resonator
j 0 * j 0
Pole conjugate pair p Re p Re
G G
H z
1 Re j 0 1
z 1 Re j 0
z 1
1 a1 z 1 a 2 z 2
2
a1 2 R cos 0 , a2 R 19
G
H 0 1
1 Re e 1 Re
j 0 j j 0
e j
G G
H
1 Re e 1 Re
j 0 j j 0
e j 1 a1e j a2 e 2 j
2 G2
H
1 2 R cos 0 R 2 1 2R cos 0 R 2
Normalizing |H(0)|= 1
G
H (0 ) j 0 j j 0 j
1
| (1 Re e ) (1 Re e )|
G (1 R) 1 2 R cos (2 0 ) R 2
For 3-dB H ( z A ) 1 | PQ |
1 |PA|= |PQ|
condition H ( zQ ) 2
or | PA | 2
|AB| = 2|QA| = 2|PQ| = 2(1 – R)
22
a1 re j0 , a1* re j0 0r1
(1 re j0 z 1 ) (1 re j0 z 1 ) 1 b1 z 1 b2 z 2
H ( z) j0
(1 Re 1
z ) (1 Re j0 1
z ) 1 a1 z 1 a2 z 2
a1 2 R cos 0 , a2 R 2
b1 2r cos 0 , b2 r 2
(1 2r cos ( 0 ) r 2 ) (1 2r cos ( 0 ) r 2 )
| H ()|2
(1 2 R cos ( 0 ) R 2 ) (1 2 R cos ( 0 ) R 2 )
2/12/2020 23