June 21, 2013

1 Introduction

1.1 Filter specifications

2 Analytical derivation of the design steps

2.1 Impulse invariance method

2.2 bilinear transformation method

2.3 Summary of analytical derivation method

3 Numerical design examples

3.1 Example 1

3.1.1 using impulse invariance method (using T=1)

3.1.2 bilinear method

3.2 Example 2

3.2.1 using impulse invariance method

3.2.2 Using bilinear

4 References

1.1 Filter specifications

2 Analytical derivation of the design steps

2.1 Impulse invariance method

2.2 bilinear transformation method

2.3 Summary of analytical derivation method

3 Numerical design examples

3.1 Example 1

3.1.1 using impulse invariance method (using T=1)

3.1.2 bilinear method

3.2 Example 2

3.2.1 using impulse invariance method

3.2.2 Using bilinear

4 References

This report derives a symbolic procedure to design a low pass IIR digital filter from an analog Butterworth filter using 2 methods: impulse invariance and bilinear transformation. Two numerical examples are then used to illustrate using the symbolic procedure. There are a total of 13 steps.

A Mathematica program with GUI is written to enable one to use this design for different parameters. A Matlab script is being written as well.

Filter specifications are 5 parameters. The frequency specifications are analog frequencies, while the attenuations for the passband and the stopband are given in db

The sampling frequency in Hz | |

The passband cutoff frequency in Hz | |

The stopband corner frequency in Hz | |

The attenuation in db at | |

The attenuation in db at | |

This diagram below illustrates these specifications

The frequency specifications are in and they must be first converted to digital frequencies where before using the attenuation specifications, The sampling frequency is used to do this conversion since corresponds to on the digital frequency scale.

These are the design steps

- Convert specifications from analog to digital frequencies
- Based on design method (impulse invariance of bilinear) apply the attenuation criteria to determine and (the filter order)
- Using and find the locations of the poles of , the butterworth analog filter.
- Find from . The method of doing this depends if we are using impulse invariance or bilinear. This step is much simpler for the bilinear method as it does not require performing partial fractions decomposition on

Now we begin the analytical design procedure.

We first convert analog specifications to digital specifications: , hence and

Convert the criteria relative to the digital normalized scale:

Therefore

Notice that we added the scaling factor. Now, Butterworth analog filter squared magnitude Fourier transform is given by

hence equations (A) and (B) above are now written in terms of the analog Butterworth amplitude frequency response and become

Therefore the above becomes

Now, for impulse invariance, and .

Change inequalities to equalities and simplify

Divide the above 2 equations

We need to round the above to then nearest integer using the Ceiling functioni.e.

Now for impulse invariance method, use equation (1) above to solve for

Now that we found and , next find the poles of Since the butterworth magnitude square of the transfer function is

Hence poles are found by setting the denominator of the above to zero

We only need to find the LHS poles, which are located at , because these are the stable poles. Hence the pole is

For example for , we get

Now we can write the analog filter generated based on the above selected poles, which is, for impulse invariance

| (3) |

is found by solving hence

Now we need to write poles in non-polar form and plug them into (3)

Hence,

| (4) |

Where

and

Now that we have found we need to convert it to

We need to make sure that we multiply poles of complex conjugates with each others to make the result simple to see.

Now that we have , we do the conversion. I.e. obtain from the above . When using impulse invariance, we need to perform partial fraction decomposition on (4) above in order to write in this form

For example, to obtain , we write

Once we find all the , we now write as follows

This completes the design. We can try to convert the above form of to a rational expression as

We first convert analog specifications to digital specifications: , hence and

Convert the criteria relative to the digital normalized scale:

Hence

Butterworth analog filter squared magnitude Fourier transform is given by

hence equations (A) and (B) above are now written in terms of the analog Butterworth amplitude frequency response and become

Now we assign values for and as follows,,

Change inequalities to equalities and simplify

Divide the above 2 equations

We need to round the above to then nearest integer using the Ceiling functioni.e.

Now for bilinear transformation we used equation (2) above to find Hence we now solve for

Now that we found and we find the poles of . Since for bilinear the magnitude square of the transfer function is

Hence poles are found by setting the denominator of the above to zero

We only need to find the LHS poles, which are located at , because these are the stable poles. Hence the pole is

For example for , we get

For bilinear, is given by

| (3) |

is found by solving , hence we obtain

We see that the same expression results for for both cases.

Now we need to write poles in non-polar form and plug them into (3)

then

| (4) |

Where

and

Now that we have found we need to convert it to . After finding as shown above, we simply replace by . This is much simpler than the impulse invariance method. Before doing this substitution, make sure to multiply poles which are complex conjugate of each others in the denominator of . After this, then do the above substitution

We will now make a table with the derivation equations to follow to design in either bilinear or impulse invariance. Note that the same steps are used in both designs except for step . This table make it easy to develop a program.

Sampling frequency , passband frequency , stopband frequency , with and

Using the above design table, these are the numerical values:

Sampling frequency , passband corner frequency , stopband corner frequency , with criteria and

- Alan Oppenheim, Ronald Schafer, Digital Signal Processing, Prentice-Hall, inc. 1975, Chapter 5.
- Mostafa Shiva, Electrical engineering department, California state university, Fullerton, Lecture notes, handout H.
- John Proakis, Dimitris Manolakis, digital signal processing, 3rd edition, section 8.3.