DOC PREVIEW
UK EE 422G - EE 422G - Signals and Systems Laboratory Lab 3 - IIR Filters

This preview shows page 1-2-3 out of 8 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 8 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 8 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 8 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 8 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

University of KentuckyEE 422G - Signals and Systems LaboratoryLab 3 - IIR FiltersObjectives:- Use filter design and analysis tools to create IIR filters based on general filter specification.- Understand the impact of different computational structures for filter implementation- Understand the impact of the placement of poles and zeros on the frequency response of the filter.1. BackgroundInfinite impulse response (IIR) filters are an alternative to finite impulse response (FIR) filters. Often an IIR implementation can meet a given filter specification with less computation than an FIR implementation, but IIR filters induce nonlinear phase, can be potentially unstable, and are more sensitive to numerical problems.Like FIR filters, IIR filters are linear time-invariant (LTI) systems that can recreate a wide range of frequency responses. IIR implementations with specified stopband-attenuation and transition-band requirements, typically requires far fewer filter taps than an FIR filter meeting the same specifications. This leads to a significant reduction in the computational complexity required to achieve a given frequency response. However, IIRfilters have poles, which require feedback for implement and can result in instability if not properly placed inside the unit circle. The feedback can increase the sensitivity to errors introduced during computations, especially for fixed-point processors. In addition,IIR filters result in nonlinear phase distortion (delaying different frequency components of the input signals by different amounts). Some of these complications are explored in this lab. Up to this point most of your filter implementations have been in terms of “Direct Form,”which is suggested by converting the transfer function directly to a difference equation:NnnnMmmmzazbzH101)((1)However, if the polynomials are factored into second order stages as such:PpzpazpazpbzpbpbGzH12211221100)()(1)()()()((2)The form of Eq. (2) suggests cascading second-order IIR filters in series (the output from one stage becoming the input to the next). Therefore this form is referred to as the Cascade form. For good numerical stability, the IIR filter should be implemented as a cascade of second-order, Direct Form II sections. The data flow for a second-order, Direct-Form II section, or bi-quad, is shown in Figure 1. Note that in Direct Form II the delayed samples are neither the input nor the output samples, but are instead the intermediate values w[n] . Figure 1: Second-order, Direct Form II sectionThere are several IIR filter design methods. The main differences between the different methods include the way specifications can be made (i.e. form of spectral magnitude or impulse response) and the type of optimizations used to derive the filter coefficient. The Matlab functions for the main IIR filter designs are Elliptical (ellip), Butterworth (butter),and Chebyshev (cheby1 and cheby2). The unique features of these approaches will all be examined in the laboratory assignment.2. Pre-Lab1. Derive the transfer function of filter shown in Fig. 1. (Hint: obtain transfer function between x and w and then between w and y and use )().()().()()()(ZXZWZWZYZXZYzH  (3)to find the transfer function) 2. (First part is a repeat of Prelab Problem 2, from FIR lab) For a sampling rate of 48kHz design an order-40 low-pass filter having cut-off frequency 10kHz by windowing method. In your design, use Hamming window as the windowing function(see help on fir1). Use the freqz command to plot the filter’s magnitude response (in dB), use the filter command to plot the impulse response, and also plot the pole-zeros of the filter in the Z-plane. (New part) Now create a 10th order low-pass Chebyshev Type II digital filter with a stop-band at 11.5kHz with a stop-band attenuation of 55 b0dB. (a) Plot the IIR filter’s magnitude response on the same graph as the previous FIR magnitude response. Compare the graphs and discuss the advantage of the IIR filter in this case. Likewise plot the impulse response for the FIR and IIR filter on thesame graph for at least 100 samples. Compare the impulse responses and describe thecritical differences between the 2 responses. Finally compare the pole-zero plots of each filter. Plot the roots of the IIR denominator (poles) as red X’s and roots of IIR numerator (zeros) as red 0’s. One the same graph plot the FIR numerator roots as blue 0’s. Compare the 2 patterns and describe how they are both consistent with a low-pass filter.3. Consider the design the coefficients for a 4th order low-pass elliptical filter with a cutoff of 1000 Hz for a sampling rate of 8000. The passband should have ripple less than .5 dB and the stopband should have ripple less than 10 dB. Verify that this can be done with the following command (see help ellip):[be4,ae4] = ellip(4,.25,10,.25); Now plot the magnitude response obtained with freqz to verify conditions are met. Write the transfer function of the filter as a ratio of 4th order polynomials. Then use the roots and poly commands to write this filter as a product of two 2nd order polynomial ratios. Scale these polynomials so the gain at DC is 1. Draw a block diagram for the implementation using the 4th order polynomials (delays of up to 4 units) and a block diagram for its implementation using two 2nd order systems. You can use the MATLAB command tf2sos to check you work, but the script that convertsthe 4th order system to 2 second order systems must be written using roots and poly.3. In-Lab Exercise These lab exercises focus on the effects of pole placement, robustness of filter implementations, the nature of specifications for the different IIR filters. 1. A pole-zero diagrams are useful for understanding the approximate behavior of a filter. Regions along the unit circle that are close to zeros will result in signal attenuation. The closer the zero is to the unit circle the more dramatic the attenuation. Similarly, regions along the unit circle that are close to poles indicatefrequency regions where signal will be amplified. The closer the pole is to the unit circle the more dramatic the amplification. Consider the following transfer function that shows the relationship between a pair of complex conjugate poles (inpolar form) and a second-order IIR filter: (4)Figure 2 shows the locations of the poles of this filter in the z-plane. If the


View Full Document

UK EE 422G - EE 422G - Signals and Systems Laboratory Lab 3 - IIR Filters

Documents in this Course
Load more
Download EE 422G - Signals and Systems Laboratory Lab 3 - IIR Filters
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view EE 422G - Signals and Systems Laboratory Lab 3 - IIR Filters and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view EE 422G - Signals and Systems Laboratory Lab 3 - IIR Filters 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?