Infinite Impulse Response
Infinite Impulse Response
Infinite Impulse Response
3.1. Introduction
3.2. IIR filter design
3.3. Reference analog prototype filter
3.4. Analog prototype filter to analog filter transformation
3.5. Bilinear transformation
3.6. Examples
3.1 Introduction
IIR filters are digital filters with infinite impulse response. Unlike FIR filters, they have the
feedback (a recursive part of a filter) and are known as recursive digital filters therefore.
IIR filters can be designed using different methods. One of the most commonly used is via the
reference analog prototype filter. This method is the best for designing all standard types of
filters such as low-pass, high-pass, band-pass and band-stop filters.
This book describes the design method using reference analog prototype filter. Figure 3-1-2
illustrates the block diagram of this method.
Figure 3-1-2. Block diagram of design method using reference analog prototype filter
FIR filters can have linear phase characteristic, which is not typical of IIR filters. When it is
necessary to have linear phase characteristic, FIR filters are the only available solution. In other
cases when linear phase characteristic is not necessary, such as speech signal processing, FIR
filters are not good solution. IIR filters should be used instead. The resulting filter order is
considerably lower for the same frequency response.
The filter order determines the number of filter delay lines, i.e. number of input and output
samples that should be saved in order that the next output sample can be computed. For instance,
if the filter order is 10, it means that it is necessary to save 10 input samples plus 10 output
samples preceeding the current sample. All these 21 samples will affect the next output sample.
The IIR filter transfer function is a ratio of two polynomials of complex variable z-1. The
numerator defines location of zeros, whereas the denominator defines location of poles of the
resulting IIR filter transfer function.
Figure 3-1-3. illustrates input and output signals of the system with non-linear phase
characteristic.
obtained in this way, is always stable. However, instability of the resulting filter, when bilinear
transformation is used, may be caused only by the finite word-length side-effect.
3.2.1 Basic concepts and IIR filter specification
First of all, it is necessay to learn the basic concepts that will be used further in this book. You
should be aware that without being familiar with these concepts, it is not possible to understand
analyses and synthesis of digital filters.
Figure 3-2-1 illustrates a low-pass digital filter specification. The word specification refers to the
frequency response specification.
where:
Specifications for high-pass, band-pass and band-stop filters are defined almost the same way as
those for low-pass filters. Figure 3-2-2 illustrates a high-pass filter specification, whereas Figure
3-2-3 illustrates a band-pass filter specification.
x(n)={1,2,3,4,5,4,3,2,1} ; 0 n 8
z-transform is defined via expression:
It becomes:
The two last expressions lead us to the conclusion that Fourier transform is just a special form of
the z-transform for r=1.
In the z plane, the Fourier transform is represented as a unit circle, which can be seen in Figure
3-2-6 below.
where:
The recursive part of the transfer function is actually a discrete-time system feedback. Unlike the
FIR filters, the IIR filters have feedback which enable them to have greater selectivity as well as
nonlinearity of phase characteristic than FIR filters.
Figure 3-2-8. illustrates block diagram of discrete-time system with feedback.
OR
The later expression is more convenient for software IIR filters realization.
In the frequency domain, the discrete-time system shown in Figure 3-2-8 can be expressed as the
multiplication of Z-transform input signal X(z) and the transform function H(z):
The first way of representing discrete-time systems is suitable for both software and hardware
IIR filter implementation, whereas the representation in the z domain is suitable for analyzes of
designed filters and synthesis itself (design process).
Example:
The transfer function of a 3th order IIR filter, designed using Chebyshev function is:
This process is also known as convolution. Another expression for convolusion that is more
useful in practical applications is:
Using expression:
Then denominator:
The location of poles and zeros of the transfer function is very important for discrete-time system
analyses and synthesis. According to their location it is possible to test stability of a discrete-time
system, detect round-off errors made due to software implementation of a filter as well as
coefficient errors encountered during hardware implementation of a filter.
In order that a discrete-time system is stable, all poles of the discrete-time system transfer
function must be located within the unit circle, as shown in Figure 3-2-6. If this requirement is
not satisfied, the system becomes unstable, which is very dangerous. The location of zeroes
doesnt affect the stabilty of discrete-time systems. Recalling that FIR flters do not have a
feedback, which makes them stable. However, this doesnt apply on IIR filters. Therefore, it is
preferable to use bilinear transformation because it always makes filter stable. In this case, filter
stability is questioned only due to coefficient quantization which is performed at the end of the
design process.
It always happens due to software and hardware implementation that an error in coefficients
representation is produced. In software implementation, an error is triggered by the finite wordlength effect, whereas in hardware implementation, it ocurrs due to impossibility of representing
the coefficients with apsolute accuracy. The result in both cases is that the actual value of
coefficients differs from their value obtained in design process. A direct result of such errors is
deviation of the frequency of designed discrete-time system.
Deviation of frequency depends on the spacing between the zeros and poles of the FIR filter
transfer function and the origin in the z plane. The FIR filter coefficient error affects more the
frequency response as the spacing between the zero and pole of the transfer function and the
origin narrows. This property is particularly typical of high-order filters because their zeros are
very close each other. Besides, the pole quantization, by rule, affects more frequency
characteristic. Slight errors in coefficient representation may cause large frequency deviations.
Figure 3-2-9 illustrates the required and obtained frequency characteristic of an IIR filter. The
finite word-length effect on the transform function of an IIR filter is clearly marked in this
figure.
the transfer function of reference analog prototype filter, scaling and obtaining analogue filters
and conversion into digital filter, is repeated.
3.2.6 IIR filter realization
FIR filter transfer function can be expressed as:
where:
The coefficients bk and ak are of interest for IIR filter realization (both hardware and software).
Figure 3-2-11 illustrates the block diagram of IIR filter.
and most commonly used for both hardware and software IIR filter realization. Each of them will
be described in detail along with their advantages and disadvantages.
3.2.6.1 Direct realization
Direct realization of IIR filters starts with this expression:
The first part of the expression refers to non-recursive part and the other refers to recursive part
of IIR filter. In IIR filter direct realization, these two parts are separately considered and realized.
The realization of non-recursive part of IIR filter is identical to the direct realization of FIR filter.
Figure 3-2-12. illustrates the block diagram of direct realization of non-recursive part of IIR
filter.
Realization of non-recursive part of IIR filter is similar to that of recursive part. Figure 3-2-13.
illustrates the direct realization of the filter recursive part.
Figure 3-2-14a. IIR filter direct realization, non-recursive part is used first
Figure 3-2-14b. IIR filter direct realization, recursive part is used first
This structure is also known as a direct form I structure. As seen from Figures 3-2-14a and 3-214b, direct realization requires in total of 2N delay lines, (2N+1) multiplications and 2N
additions.
Direct realization is very convenient for software implementation and this is where it is most
commonly used. Some of disadvantages of this realization are the greatest sensitivity to accuracy
of realized coefficients (i.e. the largest finite word-length effect), and the greatest complexity due
to implementation (i.e. needs most resources).
On IIR filter software implementation with direct structure, it is necessary to have two buffers
with at least N+1 samples, where N is the IIR filter order. For their simplicity and effectiveness,
most commonly used are the so called circular buffers the length of which can be expressed as
2^k. The value of constant k is defined as a minimum value for which N 2^k is valid.
Accordingly:
Example:
A 6th order FIR filter is used in this example. It is necessary to design this filter using direct
structure with circular buffer. The length of the buffer needs to be 2^k.
The length of circular buffer is obtained from the following expression:
Step
0
1
2
3
4
5
6
7
8
9
10
x[7]
x[7]
x[7]
x[6]
x[6]
x[6]
x[6]
x[5]
x[5]
x[5]
x[5]
x[5]
x[4]
x[4]
x[4]
x[4]
x[4]
x[4]
x[3]
x[3]
x[3]
x[3]
x[3]
x[3]
x[3]
x[2]
x[2]
x[2]
x[2]
x[2]
x[2]
x[2]
x[2]
x[1]
x[1]
x[1]
x[1]
x[1]
x[1]
x[1]
x[1]
x[9]
x[0]
x[0]
x[0]
x[0]
x[0]
x[0]
x[0]
x[0]
x[8]
x[8]
Figure 3-2-16. IIR filter direct transpose realization, non-recursive part is used first
Figure 3-2-17. IIR filter direct transpose realization, recursive part is used first
There are no significant differences between direct and direct transpose realizations. Both
structures have the same multiplication coefficients. The only difference is in the position of
delay lines. Similar to direct realization structure, the direct transpose realization structure uses
2N delay lines, (2N+1) multiplications and 2N additions.
3.2.6.3 Direct Canonical Realization
Direct canonical realization structure has reduced number of delay lines to the minimum, that is,
N delay lines. This way, one of the main disadvantages of direct and direct transpose realization
structures is eliminated. Recursive and non-recursive parts of IIR filter are not considered
separately, which causes implementation to be more complex than for direct realization structure.
A good thing is that the coefficients are the same as for direct realization.
Figure 3-2-18 illustrates the block diagram describing direct canonic realization structure of IIR
filter.
Similarities between direct canonic structure block diagram and direct realization structure
shown in Figure 3-2-14b are obvious. The difference between realization structures shown in
Figures 3-2-14b and 3-2-18 is that non-recursive and recursive part for direct canonic realization
structure cannot be treated separately, although it is easy to differentiate between them.
Direct canonic structure uses N delay elements, (2N+1) multipilications and 2N additions.
Sensitivity to the accuracy of coefficients is the same as for all previously described structures,
which is the main disadvantage of this realization structure.
3.2.6.4 Direct transpose canonical realization
Direct transpose canonical realization structure has reduced number of delay lines to the
minimum of N delay lines as well as reduced number of adders to N+1. Recursive and
nonrecursive parts of IIR filter are not considered separately, which causes implementation to be
more complex than for direct realization structure, but similar to direct canonical structure. A
good thing is that the coefficients are the same as for direct realization.
Figure 3-2-19 illustrates the block diagram describing direct transpose canonical realization
structure of IIR filter.
structures shown in Figures 3-2-16 and 3-2-19 is that non-recursive and recursive part for direct
transpose canonical realization structure cannot be treated separately, although it is easy to
differentiate between them.
Direct transpose canonic structure uses N delay elements, (2N+1) multipilication elements and
N+1 adders. Sensitivity to the accuracy of coefficients is the same as for all previously described
structures, which is the main disadvantage of this realization structure.
3.2.6.5 Cascade Realization
Cascade realization structure is the most difficult to obtain from the transfer function (comparing
to other realization structures given in this book). It is very convenient for its modular structure
and less sensitivity to the accuracy of non-recursive and recursive coefficients realization. On
cascade IIR filter realization, a filter is divided into several, mutually independent sections of the
first or second order.
Individual sections are mostly realized in direct canonical or direct transpose canonical structure.
Since the sections are mutually independent after design process, the finite word-length effect on
the accuracy of coefficients, modulation of frequency response and IIR filter stability are
separately examined for each section. The analyse is simplified this way.
The IIR filter transfer function is expressed as:
where:
Cascade realization requires the given expression to be factorized so that the transfer function is
expressed as follows:
where:
a[i, k] are the coefficients of recursive part of the i-th IIR filter section;
b[i, k] are the coefficients of non-recursive part of the i-th IIR filter section.
Individual sections are of the first or second order. Direct transpose canonical structure is most
frequently used in realization. Figure 3-2-20 illustrates a first-order section.
coefficients quantization is performed after dividing filter in sections, so the changes of poles
locations are smaller, therefore.
Software realization requires M buffer of length 2 or 1. Each section must have its own buffer for
saving samples of intermediate signals. Such complexity and needed factorization are two main
disadvantages of this realization structure.
Figure 3-2-21 illustrates the block diagram describing cascade IIR filter structure.
where:
N is the filter order;
s is the complex frequency (s = + j); and
M N.
In order that a system described via expression above is stable, it is necessary that all poles (the
square roots of polinomial Aa(s)) are located in the left half of S plane. Figure 3-3-1 illustrates S
plane.
where:
is the frequency; and
N is the filter order.
Figure 3-3-3 illustrates IIR filter specification with parameters of most interest for Butterworth
filter.
To design Butterworth reference analog prototype filter, it is necessary to know the filter order.
All poles of the resulting filter must be located in the left half of the S plane, i.e. to the left of the
imaginary axis.
Note:
In the z plane, filter is stable if all poles are located within the unit circle. In the s plane, filter is
stable if all poles are located in the left half of the s plane. Z-transform is used for digital filters,
whereas Laplase transform (s plane) is used for analog filters. Even though these two types of
transformations are similar to some extent, they should not be mixed up concerning the filter
stability analyse.
When the filter order is known, it is easy to find its poles using expression:
Butterworth poles are equally allocated (equidistantly) on the unit circle within the left half of
the s plane. The location of poles for N=5 and N=6 is shown in Figure 3-3-4.
Figure 3-3-4. Position of Butterworth filter poles for N=5 and N=6
The transfer function of the Butterworth reference analog prototype filter is expressed as follows:
where:
Sk is the k-th pole of the Butterworth filter transfer function
For N=5, the transfer function is:
where:
is the frequency;
N is the filter order;
is a parameter used to define maximum oscillations in the passband frequency response; and
TN is the Chebyshev polynomial.
The Chebyshev polynomial TN() can be obtained via recursive relations:
If the filter order is known in advance, neither recursive relations nor expression for the square of
frequency response are necessary. The design process starts from the values of poles of a 1st
order Chebyshev reference analog filter.
The values of poles are expressed as:
where:
si is the i-th transfer function pole of analog prototype filter (complex value);
i is the pole; and
i is the imaginary pole.
where:
N is the filter order; and
i=1, 2, ..., N.
The value of parameter is obtained via expression:
If the filter order is familiar in advance, neither these recursive relations nor expression for the
square of frequency response are necessary. The design process starts from the values of poles of
a 1st order inverse Chebyshev reference analog filter.
The poles of the transfer function of inverse Chebyshev analog filter are considered reciprocal
poles of the transfer function of a 1st order Chebyshev analog filter.
The poles of a 1st order Chebyshev analog filter are expressed as:
where:
si is the i-th pole of the transfer function of analog prototype filter (complex value);
i is the real pole; and
i is the imaginary pole.
where:
N is the filter order; and
i=1, 2, ..., N.
The poles of the transfer function of inverse Chebyshev analog filter are found via expression:
where:
si is the pole of the transfer function of a 1st order Chebyshev analog filter; and
s2i is the pole of the transfer function of inverse Chebyshev analog filter.
Transfer function is expressed as:
The coefficient k in numerator can be only an odd number. Table 3-3-1 provides a few examples
of values of k.
N min max values
5 1 5
1, 3, 5
6 1 5
1, 3, 5
7 1 7
1, 3, 5, 7
8 1 7
1, 3, 5, 7
Table 3-3-1. coefficient k in the transfer function numerator
The values k are found via expression:
Figure 3-3-8. Location of poles and zeros of inverse Chebyshev filter for N=5
As seen from Figure 3-3-8 and expression for k, the zeros of the transfer function are always
complex-conjugated values, which is not the case with the poles of the transfer function.
Frequency scaling depends on the type of analog filter being designed. Scaling is explained for
low-pass, high-pass, band-pass and band-stop filters.
All the results obtained in this chapter are tested in the Filter designer tool program.
3.4.1 Low-pass filter
The transformation from a reference analog prototype filter to a low-pass analog filter is the
simplest type of transformation. Analog prototype filter is a low-pass filter with the cut-off
frequency of p=1. In this case, the transformation comes to a simple frequency scaling. In the
transform function, s\\c is used instead of s, where c is a desirable cut-off frequency in the
passband.
Generally, the transform function of the reference analog prototype filter can be expressed as
follows:
where
H0 is a costant;
zk is the k-th zero of the transfer function of the reference analog prototype filter;
M is a number of zeros of the transfer function of the reference analog prototype filter;
pk is the k-th pole of the transfer function of the reference analog prototype filter; and
N is a number of poles of the transfer function of the reference analog prototype filter and the
filter order as well.
By performing the transformation:
each expression within brackets in the transfer function numerator is transformed into:
Example:
The transform function of the Butterworth reference analog prototype filter of the 3rd order is
expressed as follows:
The transformation in a band-pass analog filter with the cut-off frequency c = 0.2929 in the
passband is obtained via expression:
Example:
The transform function of inverse Chebyshev reference analog prototype filter of the 3rd order is
expressed as follows:
The transformation to a band-pass analog filter with the cut-off frequency c=0.3719 in the
passband is obtained via expression:
Generally, the transform function of the reference analog prototype filter can be expressed as
follows:
where:
H0 is a constant;
zk is the k-th zero of the transfer function of the reference analog prototype filter;
M is a number of zeros of the transfer function of the reference analog prototype filter;
pk is the k-th pole of the transfer function of the reference analog prototype filter; and
N is a number of poles of the transfer function of the reference analog prototype filter and the
filter order as well.
By performing the following transformation:
Substituting these transformed expressions for numerator and denominator, the transform
function of the analog filter is obtained:
Example:
The transfer function of the Chebyshev reference analog prototype filter of the 3rd order is
expressed as follows:
The transformation in a band-pass analog filter with the cut-off frequency c = 0.3721 in the
passband is expressed as:
Example:
The transfer function of inverse Chebyshev reference analog prototype filter of the 2nd order is
expressed as follows:
The transformation in a band-pass analog filter with the cut-off frequency c=0.1434 in the
passband is expressed as:
The transformation in a band-pass analog filter is more complex than the transformation in a
low-pass and high-pass analog filters. The filter order is doubled by this transformation. This is
why it is not possible to design an odd order band-pass filter.
When designing, the required filter order is divided by two. The resulting filter order is used to
design a low-pass reference analog prototype filter. By transforming it into a band-pass analog
filter the filter order is doubled. The required filter order is obtained this way.
Example:
Assume that it is necessary to design an 8th order band-pass digital filter.
A low-pass reference analog filter of the 4th order is designed first.
Reference analog filter is further transformed in a bandpass analog filter. This transformation
doubles the filter order. The order of the resulting filter is 8.
The transformation into a band-pass analog filter is expressed as:
where:
p1 is a lower cut-off frequency in the passband (refer to figure 3-4-1); and
p2 is a higher cut-off frequency in the passband (refer to figure 3-4-1).
The transfer function of an analog prototype filter is transformed first in a band-pass analog
filter, and normalized after that with c.
Generally, the transfer function of the reference analog prototype filter can be expressed as:
where:
H0 is a constant;
zk is the k-th zero of the transfer function of the reference analog prototype filter;
M is a number of zeros of the transfer function of the reference analog prototype filter;
pk is the k-th pole of the transfer function of the reference analog prototype filter; and
N is a number of poles of the transfer function of the reference analog prototype filter and the
filter order as well.
By performing the transformation:
Substituting the transformed expressions for numerator and denominator, the transform function
of analog filter is obtained:
Example:
The transfer function of the Chebyshev reference analog prototype filter of the 2nd order is
expressed as:
The transformation in a band-pass analog filter with the cut-off frequency c = 0.1626 in the
passband is expressed as:
where:
s1 is a lower cut-off frequency in the stopband (refer to figure 3-4-2); and
s2 is a higher cut-off frequency in the stopband (refer to figure 3-4-2).
The transfer function of the reference analog prototype filter is transformed first into a band-stop
analog filter, and normalized after that with c.
Generally, the transfer function of the reference analog prototype filter can be expressed as
follows:
where:
H0 is a constant;
zk is the k-th zero of the transfer function of the reference analog prototype filter;
M is a number of zeros of the transfer function of the reference analog prototype filter;
pk is the k-th pole of the transfer function of the reference analog prototype filter; and
N is a number of poles of the transfer function of the reference analog prototype filter and the
filter order as well.
The first step refers to normalization with the frequency c:
Substituting the transformed expressions for numerator and denominator, the transform function
of analog filter is obtained:
Example:
The transfer function of inverse Chebyshev reference analog prototype filter of the 2nd order is
expressed as:
The transformation into a band-stop analog filter with the cut-off frequency c=0.252.5727 in
the passband is expressed as:
Using the previous expression, the transformation of the analog filter transform function into a
digital one can be expressed as:
As seen, the transformation is performed by a simple change of variable s in the expression for
the transfer function of the resulting analog filter.
The analog filter transfer function can be expressed as:
where:
H0 is a constant. If s=0 then H(s)=H0 ;
zk is the zero of the analog filter transfer function; and
pk is the pole of the analog filter transfer function.
After transformation, the analog filter transfer function is further transformed into:
where:
Hoz is a constant of the digital IIR filter transfer function
Example:
The transfer function of a second-order high-pass analog filter (inverse Chebyshev, fc=2KHz,
fs=44100Hz, 60dB) is expressed as:
It is necessary to transform the given analog filter into the appropriate digital filter by bilinear
transformation.
Using expression for linear transformation:
we obtain:
where:
N=2
M=2
z1=j0.1014
z2=-j0.1014
p1=-2.267+j2.2692
p2=-2.267-j2.2692
The result is the transfer function of a digital high-pass IIR filter. Realization structure is
illustrated in Figure 3-5-2 below.
Digital filters designed via bilinear trasnformation are guaranteed to be stable. However, the
accurate values of coefficients are obtained immediately after the implementation of bilinear
transformation. On filter realization, it is impossible to represent coefficients without an error. In
software digital filter realization (implementation), the resulting coefficients are quantized,
which also generates a certain error. Any error made during the quantization of coefficients
affects more or less the frequency response, which may further cause the stopband attenuation to
decrease.
The quantization effect on digital filter stability is much more dangerous. Special care is required
when quantizing feedback coefficients as it causes the location of the digital IIR filter transfer
function poles to change their location. It is very important to prevent the poles from being
located outside the unite circle. However, if it happens, the resulting IIR filter is not stable and is
useless therefore.
A disadvantage of the bilinear transformation is a non-linear transformation of the analog filter
frequency axis into a digital one. When designing, the cut-off frequencies are defined on the
basis of the given specifications and type of a filter. When transforming, these frequencies have
appropriate locations, which is not the case with the rest of the frequency axis. Such a non-linear
transformation of analog filter frequencies causes the phase characteristic distorsion, so that it is
not linear.
3.6 Examples
This chapter discusses various IIR filter design methods. The four standard types of filters are
used here:
low-pass filter;
high-pass filter;
band-pass filter; and
band-stop filter.
decreased according to needs, and steps 4, 5 and 6 are repeated after that as many times
as needed.
Some steps are skipped in some cases. If the filter order is known, step 3 is skipped. If the type
of reference analog prototype filter is predetermined, step 2 is skipped.
In every given example, the IIR filter design process will be described through these steps in
order to make it easier for you to observe similarities and differencies between various design
methodes, analog prototype filters and design of various types of filters as well.
Figure 3-6-1 illustrates the design steps along with input and output data for each of them.
where:
H0 is a constant;
zk is the k-th zero of the reference analog prototype filter transfer function;
M is a number of zeros of the reference analog prototype filter transfer function;
pk is the k-th pole of the reference analog prototype filter transfer function; and
N is a number of poles of the reference analog prototype filter transfer function and filter order
as well.
Reference analog prototype filter is always a low-pass filter. The next step is the transformation
into an analog filter of appropriate type. The expression used to transform the reference analog
prototype filter transfer function depends on the type of filter that needs to be obtained. The final
result is the transfer function H(s) given by:
where:
H0 is a constant;
zk is the k-th zero of the reference analog prototype filter transfer function;
M is a number of zeros of the reference analog prototype filter transfer function;
pk is the k-th pole of the reference analog prototype filter transfer function; and
N is a number of poles of the reference analog prototype filter transfer function and filter order
as well.
As seen, the transfer functions of reference analog prototype filter and analog filter are very
similar. They differ only in the value of constant H0, the values of the transfer function poles and
zeros zk and pk as well as in the number of transfer function zeros M. The filter order is the same
if the analog filter is a low-pass or high-pass filter, whereas it is different if the analog filter is a
band-pass or band-stop filter. In the later case, the analog filter order (N) is twice that of the
reference analog prototype filter.
The next step is the transformation into appropriate digital IIR filter using bilinear transformation
given by expression:
Filter Designer Tool is used for testing and analysing the resulting IIR filters in this chapter. All
data are calculated with the accuracy of 4 decimal digits, which is sufficient for most examples.
3.6.1 Filter design using Butterworth filter
3.6.1.1 Example 1
Step 1:
Type of filter low-pass filter
Filter specifications:
Step 2:
Method- filter design using Butterworth reference analog prototype filter.
Step 3:
Filter order is predetermined, N=2.
Step 4:
The Butterworth reference prototype filter transfer function has no zeros, only poles. These can
be computed via expression:
Step 5:
First it is necessary to compute the analog prototype filter cut-off frequency c.
The analog filter transfer function is obtained from the reference analog prototype filter transfer
function using expression:
As the Butterworth reference prototype filter has no zeros, the expression for transfer function is
simpler:
Step 6:
The transformation into a digital filter through bilinear transformation:
Generally, substituting the complex variable s into the expression for analog filter transfer
function, the following is obtained:
where:
zk are the zeros of analog filter transfer function; and
pk are the poles of analog filter transfer function.
This general expression can be written in a simpler way in this example:
Step 2:
Method- filter design using Butterworth reference analog prototype filter
Step 3:
Filter order is predetermined, N = 3.
Step 4:
The Butterworth reference prototype filter transfer function has no zeros, only poles. These can
be computed via expression:
Step 5:
First it is necessary to compute the analog prototype filter cut-off frequency c.
The analog filter transfer function is obtained from the reference analog prototype filter transfer
function using expression:
As the Butterworth reference prototype filter has no zeros, the expression for transfer function is
simpler:
Step 6:
The transformation into a digital filter through bilinear transformation:
Generally, substituting the complex variable s into the expression for analog filter transfer
function, the following is obtained:
where:
zk are the zeros of analog filter transfer function; and
pk are the poles of analog filter transfer function.
This general expression can be written in a simpler way in this example:
Step 2:
Method - filter design using Butterworth reference analog prototype filter
Step 3:
Filter order is predetermined, N = 4.
Step 4:
The Butterworth reference prototype filter transfer function has no zeros, only poles. These can
be computed via expression:
When designing an IIR band-pass filter, the reference prototype filter order is half that of the
required IIR filter order. In this example for N=4, the order of reference prototype filter is 2, so
the values of poles are:
Step 5:
First it is necessary to compute the analog prototype filter cut-off frequency c.
The analog filter transfer function is obtained from the reference analog prototype filter transfer
function using expression:
As the Butterworth reference prototype filter has no zeros, the expression for transfer function is
simpler:
Step 6:
The transformation into a digital filter through bilinear transformation:
Generally, by substituting the complex variable s into the expression for analog filter transfer
function, the following is obtained:
where:
zk are the zeros of analog filter transfer function; and
pk are the poles of analog filter transfer function.
In this example, the general expression can be written in a simpler way:
Step 2:
Method - filter design using Butterworth reference analog prototype filter.
Step 3:
Filter order is predetermined, N = 4.
Step 4:
The Butterworth reference prototype filter transfer function has no zeros, only poles. These can
be computed via expression:
When designing an IIR band-stop filter, the reference prototype filter order is half that of the
required IIR filter order. In this example for N = 4, the order of reference prototype filter is 2, so
the values of poles are:
Step 5:
First it is necessary to compute the analog prototype filter cut-off frequency c.
The analog filter transfer function is obtained from the reference analog prototype filter transfer
function using expression:
As the Butterworth reference prototype filter has no zeros, the expression for transfer function is
simpler:
Step 6:
The transformation into a digital filter through bilinear transformation:
Generally, by substituting the complex variable s into the expression for analog filter transfer
function, the following is obtained:
where:
zk are the zeros of analog filter transfer function; and
pk are the poles of analog filter transfer function.
In this example, the general expression can be written in a simpler way:
Step 2:
Method - filter design using Chebyshev reference analog prototype filter
Step 3:
Filter order is not pre-determined, so it is necessary to choose an initial solution from which
iterative method starts. The solution is redefined progressively until some pre-determined
requirements are satisfied. Lets assume that the initial filter order is 4.
Step 4:
The Chebyshev reference prototype filter transfer function has no zeros, only poles. These can be
computed via expression:
A0 = 0.2457
so that the Chebyshev reference analog prototype filter transfer function is:
Step 5:
First it is necessary to compute the analog prototype filter cut-off frequency c.
The analog filter transfer function is obtained from the reference analog prototype filter transfer
function using expression:
As the Chebyshev reference prototype filter has no zeros, the expression for transfer function is
simpler:
Step 6:
The transformation into a digital filter through bilinear transformation:
Generally, by substituting the complex variable s into the expression for analog filter transfer
function, the following is obtained:
where:
zk are the zeros of analog filter transfer function; and
pk are the poles of analog filter transfer function.
This general expression can be written in a simpler way in this example:
A0 = - 0.1228
Step 5:
First it is necessary to compute the analog prototype filter cut-off frequency c.
The analog filter transfer function is obtained from the reference analog prototype filter transfer
function using expression:
As the Chebyshev reference prototype filter has no zeros, the expression for transfer function is
simpler:
Step 6:
The transformation into a digital filter through bilinear transformation:
Generally, substituting the complex variable s into the expression for analog filter transfer
function, the following is obtained:
where:
zk are the zeros of analog filter transfer function; and
pk are the poles of analog filter transfer function.
This general expression can be written in a simpler way in this example:
Step 1:
Type of filter high-pass filter
Filter specifications:
Filter order N = 3;
Sampling frequency fs = 20KHz;
Passband cut-off frequency fc = 5KHz; and
Maximum passband attenuation ap = 1dB.
Step 2:
Method - filter design using Chebyshev reference analog prototype filter
Step 3:
Filter order is predetermined, N = 3.
Step 4:
The Chebyshev reference prototype filter transfer function has no zeros, only poles. These can be
computed via expression:
A0 = - 0.4913
The reference analog prototype filter transfer function is:
Step 5:
First it is necessary to compute the analog prototype filter cut-off frequency c.
The analog filter transfer function is obtained from the reference analog prototype filter transfer
function using expression:
As the Chebyshev reference prototype filter has no zeros, the expression for transfer function is
simpler:
Step 6:
The transformation into a digital filter through bilinear transformation:
Generally, substituting the complex variable s into the expression for analog filter transfer
function, the following is obtained:
where:
zk are the zeros of analog filter transfer function; and
pk are the poles of analog filter transfer function.
This general expression can be written in a simpler way in this example:
Filter order N = 4;
Sampling frequency fs = 20KHz;
Passband cut-off frequencies fc1 = 4KHz, fc2 = 6KHz; and
Maximum passband attenuation ap = 1dB.
Step 2:
Method filter design using Chebyshev reference analog prototype filter.
Step 3:
Filter order is predetermined, N = 4.
Step 4:
The Chebyshev reference prototype filter transfer function has no zeros, only poles. These can be
computed via expression:
When designing an IIR band-pass filter, the reference prototype filter order is half that of the
required IIR filter order. In this example for N = 4, the order of reference prototype filter is 2, so
the values of poles are:
A0 = 0.9826
The reference analog prototype filter transfer function is:
Step 5:
First it is necessary to compute the analog prototype filter cut-off frequency c.
The analog filter transfer function is obtained from the reference analog prototype filter transfer
function using expression:
As the Chebyshev reference prototype filter has no zeros, the expression for transfer function is
simpler:
Step 6:
The transformation into a digital filter through bilinear transformation:
Generally, substituting the complex variable s into the expression for analog filter transfer
function, the following is obtained:
where:
zk are the zeros of analog filter transfer function; and
pk are the poles of analog filter transfer function.
In this expression, the general expression can be written in a simpler way:
Filter order N = 4;
Sampling frequency fs = 20KHz;
Passband cut-off frequencies fc1 = 3000Hz, fc2 = 3300Hz; and
Maximum passband attenuation ap = 1dB.
Step 2:
Method - filter design using Chebyshev reference analog prototype filter.
Step 3:
Filter order is predetermined, N = 4.
Step 4:
The Chebyshev reference prototype filter transfer function has no zeros, only poles. These can be
computed via expression:
When designing an IIR band-pass filter, the reference prototype filter order is half that of the
required IIR filter order. In this example for N = 4, the order of reference prototype filter is 2, so
the values of poles are:
A0 = 0.9826
The reference analog prototype filter transfer function is:
Step 5:
First it is necessary to compute the analog prototype filter cut-off frequency c.
The analog filter transfer function is obtained from the reference analog prototype filter transfer
function using expression:
As the Chebyshev reference prototype filter has no zeros, the expression for transfer function is
simpler:
Step 6:
The transformation into a digital filter through bilinear transformation:
Generally, substituting the complex variable s into the expression for analog filter transfer
function, the following is obtained:
where:
zk are the zeros of analog filter transfer function; and
pk are the poles of analog filter transfer function.
In this expression, the general expression can be written in a simpler way:
Step 2:
Method - filter design using inverse Chebyshev reference analog prototype filter.
Step 3:
Filter order is not pre-determined, so it is necessary to choose an initial solution from which
iterative method starts. The solution is redefined progressively until some pre-determined
requirements are satisfied. Lets assume that the initial filter order is 4.
Step 4:
The Chebyshev reference prototype filter transfer function has no zeros, only poles. These can be
computed via expression:
H0 = 0.01
so that the Chebyshev reference analog prototype filter transfer function is:
Step 5:
First it is necessary to compute the analog prototype filter cut-off frequency c.
The analog filter transfer function is obtained from the reference analog prototype filter transfer
function using expression:
Step 6:
The transformation into a digital filter through bilinear transformation:
Generally, substituting the complex variable s into the expression for analog filter transfer
function, the following is obtained:
where:
zk are the zeros of analog filter transfer function; and
pk are the poles of analog filter transfer function.
This general expression can be written in a simpler way in this example:
Step 7:
By analyzing the resulting filter using Filter Designer Tool, it is obvious that the attenuation
amounting to 5.2dB approximately at the frequency of 15KHZ is not sufficient. The frequency
characteristic of the resulting digital filter is illustrated in Figure 3-6-20 below.
H0 = - 0.05
so the inverse Chebyshev reference analog prototype filter transfer function is:
Step 5:
First it is necessary to compute the analog prototype filter cut-off frequency c.
The analog filter transfer function is obtained from the reference analog prototype filter transfer
function using expression:
Step 6:
The transformation into a digital filter through bilinear transformation:
Generally, substituting the complex variable s into the expression for analog filter transfer
function, the following is obtained:
where:
zk are the zeros of analog filter transfer function; and
pk are the poles of analog filter transfer function.
This general expression can be written in a simpler way in this example:
Filter order N = 3;
Sampling frequency fs = 20KHz;
Passband cut-off frequency fc = 5KHz; and
Minimum stopband attenuation 40dB.
Step 2:
Method - filter design using inverse Chebyshev reference analog prototype filter.
Step 3:
Filter order is predetermined, N=3.
Step 4:
The Chebyshev reference prototype filter transfer function has no zeros, only poles. These can be
computed via expression:
H0 = -0.03
The reference analog prototype filter transfer function is:
Step 5:
First it is necessary to compute the analog prototype filter cut-off frequency c.
The analog filter transfer function is obtained from the reference analog prototype filter transfer
function using expression:
Step 6:
The transformation into a digital filter through bilinear transformation:
Generally, by substituting the complex variable s into the expression for analog filter transfer
function, the following is obtained:
where:
zk are the zeros of analog filter transfer function; and
pk are the poles of analog filter transfer function.
This general expression can be written in a simpler way in this example:
Filter order N = 4;
Sampling frequency fs = 20KHz;
Passband cut-off frequencies fc1 = 4KHz, fc2 = 6KHz; and
Minimum stopband attenuation 40dB.
Step 2:
Method - filter design using inverse Chebyshev reference analog prototype filter.
Step 3:
Filter order is predetermined, N = 4.
Step 4:
The Chebyshev reference prototype filter transfer function has no zeros, only poles. These can be
computed via expression:
When designing an IIR band-pass filter, the reference prototype filter order is half that of the
required IIR filter order. In this example for N=4, the order of reference prototype filter is 2, so
the values of poles are:
H0 = 0.01
The reference analog prototype filter transfer function is:
Step 5:
First it is necessary to compute the analog prototype filter cut-off frequency c.
The analog filter transfer function is obtained from the reference analog prototype filter transfer
function using expression:
Step 6:
The transformation into a digital filter through bilinear transformation:
Generally, substituting the complex variable s into the expression for analog filter transfer
function, the following is obtained:
where:
zk are the zeros of analog filter transfer function; and
pk are the poles of analog filter transfer function.
In this example, the general expression can be written in a simpler way:
Step 7:
Filter order is predetermined.
There is no need to additionally change it.
Filter realization:
Figure 3-6-26 illustrates direct realization of designed IIR filter.
Step 2:
Method - filter design using inverse Chebyshev reference analog prototype filter.
Step 3:
Filter order is predetermined, N = 4.
Step 4:
The inverse Chebyshev reference prototype filter transfer function has no zeros, only poles.
These can be computed via expression:
When designing an IIR band-stop filter, the reference prototype filter order is half that of the
required IIR filter order. In this example for N = 4, the order of reference prototype filter is 2, so
the values of poles are:
H0 = 0.01
The reference analog prototype filter transfer function is:
Step 5:
First it is necessary to compute the analog prototype filter cut-off frequency c.
The analog filter transfer function is obtained from the reference analog prototype filter transfer
function using expression:
Step 6:
The transformation into a digital filter through bilinear transformation:
Generally, substituting the complex variable s into the expression for analog filter transfer
function, the following is obtained:
where:
zk are the zeros of analog filter transfer function; and
pk are the poles of analog filter transfer function.
In this expression, the general expression can be written in a simpler way: