Iir 2
Iir 2
Iir 2
1
Introduction
IIR filters have infinite-duration impulse responses, hence they can be
matched to analog filters, all of which generally have infinitely long impulse
responses. Therefore the basic technique of IIR filter design transforms well-
known analog filters into digital filters using complex-valued mappings.
The advantage of this technique lies in the fact that both analog filter design
(AFD) tables and the mappings are available extensively in the literature.
This basic technique is called the A/D (analogto-digital) filter transformation.
However, the AFD tables are available only for lowpass filters. We also want
to design other frequency-selective filters (highpass, bandpass,
bandstop,etc.).
To do this, we need to apply frequency-band transformations to lowpass
filters. These transformations are also complex-valued mappings, and they
are also available in the literature. There are two approaches to this basic
technique of IIR filter design
Hence in this IIR filter design technique we will follow the following steps:
• Design analog lowpass filters. 2
• Study and apply filter transformations to obtain digital lowpass filters.
• Study and apply frequency-band transformations to obtain other digital filters
from digital lowpass filters.
The IIR filter is responsible for the infinite duration of the
impulse response. The IIR filter is recursive system.
M N
y (n) bm x(n m) am y(n m)
m 0 m 1
3
Where ε is a passband ripple
parameter,Ωp is the passband cutoff
frequency in rad/sec, A is a stopband
attenuation parameter, and Ωs is the
stopband cutoff in rad/sec. These
specifications are shown in Figure
from which we observe that
|Ha(jΩ)|2 must satisfy
4
Rp is the passband ripple in dB
As is the stopband attenuation in dB.
Some Analog Filter Design Methods:
5
Butterworth Lowpass Filters:
• Passband is designed to be maximally flat.
• The magnitude-squared function is of the
form
c N
Ha (s)
(s s k )
LHP poles
p ( 2k N 1)
j
s k c e 2N
, k 0,1, 2N 1
6
Steps to design Butterworth lowpass filters:
1. From the given specifications find the order of N
2. Round off it to the next higher integer
c N p ( 2k N 1)
Ha (s)
(s s k )
j
s k c e 2N
, k 0,1, 2N 1
LHPpoles
5. Find the value of transfer function Ha(s) for the above value of Ωc
by substituting ss/ Ωc
7
Chebyshev Filters:
• Equiripple in the 2
Hc j
1
VN x cosN cos1 x
passband and 1 e2VN2 / c
monotonic in the
stopband. 1
• Or equiripple in the
| H c ( j) |
2
1 [e 2VN ( / c )]1
2
stopband and
monotonic in the
passband.
Type II
Type I
8
Design of IIR filters from analog filters
We want to design digital filters that meet desired specifications in
order to get as close to the ideal filter as possible. We will be looking at
obtaining H(ejω) from an analog filter H(jΩ) using the techniques of:
Standard approach:
(1) Convert the digital filter specifications into an analogue
prototype lowpass filter specifications.
(2) Determine the analogue lowpass filter H a (s ) transfer function
Laplace: s = + j 2 p f
Z: z = r e j
Transform kernels are complex exponentials: eigenfunctions of linear
time-invariant systems
Laplace: e– s t = e– t – j 2 p f t = e– t e –j2pft
Z: z–k = (r e j )–k = r–k e– j k
10
Filter Design by Impulse Invariance:(MATLAB function:
impinvar)
In this design method we want the digital filter impulse response to
look “similar” to that of a frequency-selective analog filter. Hence we
sample ha(t) at some sampling interval T to obtain h(n); that is,
z e sT
11
• Preserve the shape of impulse response
z e sT
Since the entire left half of the s-plane maps into the unit circle, a
12
causal and stable analog filter maps into a causal and stable digital
filter.
Design Procedure
p s
1. Choose Td and determine the analog frequencies p s
Td Td
The entire left half-plane maps into the inside of the unit circle. Hence
this is a stable transformation.
The imaginary axis maps onto the unit circle in a one-to-one fashion.
Hence there is no aliasing in the frequency domain.
14
Design Procedure
2 1 z 1
3. Bilinear transformation s
1
Td 1 z
2 1 z 1
H z H a
1
Td 1 z
15
•We can solve the transformation for z as
3. FIR filters can have precisely These filters do not have linear
linear phase phase
4. Greater flexibility to control the Less flexibility specially for
shape of their magnitude obtaining non-standard frequency
response response
5. In these filters poles are fixed The poles are placed anywhere
at the origin, high selectivity inside the unit circle, high
can be achieved by using a selectivity can be achieved with
relatively high order for the low-order transfer functions
transfer function
6. Always stable Not always stable
7. Error due to round off noise are The round off noise in IIR filters
17
less severe in FIR filters, are more
mainly because feedback is not
used