<< Chapter < Page Chapter >> Page >
You will design a low-pass finite impulse-response filter using the zero-placement method in MATLAB. The filter can be used as an anti-aliasing and anti-imaging filter in a multirate system.

Filter-design exercise

Using the zero-placement method, design the FIR filters for the multirate system in Multirate Filtering: Introduction . Recall that the z -transform of a length- N FIR filter is a polynomial in z -1 , and that this polynomial can be factored into N 1 roots.

H z h 0 h 1 z -1 h 2 z -2 z 1 z -1 z 2 z -1 z 3 z -1

Use this relation to design a low-pass filter (for the anti-aliasing and anti-imaging filters of the multiratesystem) by placing twelve complex zeros on the unit circle at 3 8 , 2 , 5 8 , 3 4 , 7 8 , and . This filter that you have just designed will serve for both FIR 1 and FIR 3. For filter FIR 2 (operatingat the decimated rate), use four equally-spaced zeros on the unit circle located at 4 and 3 4 . Be sure to adjust the resulting filter coefficients to ensure that the gain does not exceed oneat any frequency.

Design your filters by writing a MATLAB script to compute the filter coefficients from the given zero locations. The MATLABfunction poly is very useful for this; type help poly in MATLAB for details.

Once you have determined the coefficients of the filters, use MATLAB function freqz to plot the frequency responses. You will find that the frequency response of thesefilters has a large gain. Adjust the resulting filter coefficients to ensure that the largest frequency gain is lessthan or equal to one by dividing the coefficients by an appropriate value. Do the frequency responses match yourexpectations based on the locations of the zeros in the z-plane?

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, Dsp laboratory with ti tms320c54x. OpenStax CNX. Jan 22, 2004 Download for free at http://cnx.org/content/col10078/1.2
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Dsp laboratory with ti tms320c54x' conversation and receive update notifications?

Ask