IIR Filter
IIR Filter
IIR Filter
Response Filters
By
Dr Hariharan Muthusamy
School of Mechatronic Engineering
Universiti Malaysia Perlis
Introduction
A digital filter is a linear time invariant discrete time system.
The FIR and IIR filters are of type of non-recursive and
recursive type respectively.
In FIR filter design, the present output sample depends on the
present input sample and previous input samples.
In IIR filter design, the present output sample depends on the
present input, past input samples and output samples.
The Impulse response for realizable filter and The stability
condition must satisfy.
A filter rejects the unwanted frequencies from the input signal and allow
the desired frequencies.
The ranges frequencies that passed the filter is called the passband and
those which are blocked called stopband.
The filter are of different types.
Lowpass Filter
Highpass Filter
Bandpass Filter
Bandreject Filter
Fig (b) can be modified to apply to analog lowpass filter as in Fig (a).
Here the digital frequencies p, s and c are replaced by analog
frequencies p, s, and c whose unit in radians/sec.
Analog Filter
Digital filter
Advantages:
not influence by component aging, temperature and power variation.
Highly immune to noise and parameter stability and can operated over wide range of
frequencies.
no problem input and output impedance matching. Coefficient also can be
programmed
and
altered
anytime
to
obtain
desired
characteristic.
Disadvantage:
Quantization error arises due to finite length of the representation of signals and
parameters.
N M must satisfied and H(s) must lie in left half of the s-plane.
Analog lowpass Butterworth filter
Magnitude function of Butterworth lowpass filter is given by
Determine the order and the poles of low pass Butterworth filter that
has 3 dB attenuation at 500 Hz and attenuation of 40 dB at 1000Hz.
Round N = 7
Let us consider the mapping points from the s-plane to the z-plane
by the relation z=esT. Substitute s=+j and express the complex
variable z in polar form:z=rej
rej = e(+j)T , we r = eT, = T.
Therefore, analog is mapped to a place in the z =plane of magnitude
eT and angle T
Unstable pole mapping occur when all poles at right half of the splane map to the digital poles outside the unit circle.
Third case
many point in s-plane are mapped in one point in z-plane .
Easiest way to explain is to consider two poles in the s=plane with
identical real parts.
S 1=
, S 2=
These pole map to z-plane poles z1 and z2,via impulse invariant mapping.
Let Ha(s) is the system function of an analog filter and { ck} are the
coefficients and {pk} are the poles of analog filter.
For high sampling rates (small T), the digital gain is high, we can use
From differential eq
Which implies
Select the sampling rate of the digital filter, call T seconds per sample.
Substitute
Ass T= 1 sec.
Then,
Non-Recursive Realization
Structure
call
Direct form 1
from which
Which gives
Let,
Cascade Form
Realizing H1(z) and H2(z)in direct form II, and cascading we obtain
cascade form of system function.
Type I
They are all-pole filters that exhibit equiripple behaviour in the passband and a
monotonic characteristics in the stopband.
Type II
Contains both poles and zeros and exhibits a monotonic behaviour in the passband and
equiripple behaviour in the stopband.
H(j )
1
1 2 C N2
P
N 1, 2, .......
- - - - - (1)
Where is a parameter of the filter
related to the ripple in the passband
20 log H(j ) 10 log 1 10 log 1 2 C N2
P
( 2)
P 10 log (1 )
2
(10
0.1 p
C N (1) 1
1) 0.5
(3)
At = s, Eq (2) can be
written as
s 10 log 1 2 C N2 s
P
(4)
2
1
s
10 log 1 cosh Ncosh
1
P
P
0.1
10 p 1
cosh
10 0.1 s 1
N
cosh -1 s
1 1 2
The poles of a Chebyshev
filter
1/N 1/N
a P
1/N 1/N
bP
(2k 1)
k
k 1, 2, ..., N
2
2N
s k a cos k jbsin k
Where 1 10
2
2
P Passband Frequency
p Maximum allowable attenuation in the pass band
4.
(2k 1)
k 1, 2, ..., N
2
2N
s k a cos k jbsin k
5.
6.
10 p 1
cosh
10 0.1 s 1
N
4.536
-1 s
cosh
P
1
N= 5
(10
0.1 P
1
The
1)
0.5
(2k 1)
k 1, 2, ..., 5
2
2N
1 180 ; 2 144 ; 3 180 ;
k
4 216
0.508
1 2 4.17
poles of a Chebyshev
1/N 1/N
a P
2
1/N 1/N
bP
2
; 5 252
filter
289.5
1041
Step 1:
Find N
0.1
10 p 1
cosh
10 0.1 s 1
N
1.91
-1 s
cosh
P
1
1 1 2 2.414
The poles of a Chebyshev filter
1/N 1/N
a P
910
2
1/N 1/N
bP
2197
2
(2k 1)
k 1, 2
2
2N
k 135
2 4
3
k
225
2
4
s 1 a cos 1 jbsin 1 643.46 j1554
k
The
The
=(1414.38)22
The transfer function H(s) = (1414.38)22/ (s2+1287s+(1682)22
p
2
0.2
tan
2tan
0.65
T
2
2
0.3
2
tan s 2tan
1.02
2
2
T
0.1
p
1
1 10
cosh
10 0.1 s 1
N
3.01
cosh -1 s
P
Let us take N 4
(10
0.1 P
1)
0.5
0.508
4.17
(2k 1)
k 1, 2,3,4
2
2N
1 112.5 ; 2 157.5 ; 3 202.5 ;
k
4 247.5 ;
s1 a cos 1 jbsin 1 0.0907 j0.639
s 2 a cos 2 jbsin 2 0.2189 j0.2647
s 3 a cos 3 jbsin 3 0.2189 j 0.2647
s 4 a cos 4 jbsin 4 0.0907 j0.639
1/N 1/N
bP
0.6918
2
[(s+0.2189)2 +(0.2647)2]
=(s2+0.1814s+0.4165) (s2+0.4378s+0.118)
As N is even, the numerator of H(s) =(0.4165)
(0.118)/1+2
=0.04381
H(z) = H(s) |
2 1 z 1
s
T 1 z 1
0.001836(1 z 1 ) 4
0.1
Let us take N 4
a P
1/N
bP
1/N
1/N
1/N
2
0.229
0.67
10 p 1
cosh
10 0.1 s 1
N
3.2
cosh -1 s
P
1
(2k 1)
k 1, 2,3,4
2
2N
1 112.5 ; 2 157.5 ; 3 202.5 ;
k
4 247.5 ;
s1 a cos 1 jbsin 1 0.0876 j0.619
s 2 a cos 2 jbsin 2 0.2115 j0.2564
s 3 a cos 3 jbsin 3 0.2115 j0.2564
s 4 a cos 4 jbsin 4 0.0876 j0.619
0.083 0.0238z 1
0.083 0.0245z 1
H(z)