ECE 8440 Unit 17. Parks- McClellan Algorithm

Similar documents
ECE Unit 4. Realizable system used to approximate the ideal system is shown below: Figure 4.47 (b) Digital Processing of Analog Signals

Digital Signal Processing Lecture 9 - Design of Digital Filters - FIR

Filter Analysis and Design

Other types of errors due to using a finite no. of bits: Round- off error due to rounding of products

-Digital Signal Processing- FIR Filter Design. Lecture May-16

Filter Design Problem

MASSACHUSETTS INSTITUTE OF TECHNOLOGY Department of Electrical Engineering and Computer Science Discrete-Time Signal Processing Fall 2005

EFFICIENT REMEZ ALGORITHMS FOR THE DESIGN OF NONRECURSIVE FILTERS

Digital Signal Processing

Design of IIR filters

EE482: Digital Signal Processing Applications

Computer-Aided Design of Digital Filters. Digital Filters. Digital Filters. Digital Filters. Design of Equiripple Linear-Phase FIR Filters

Like bilateral Laplace transforms, ROC must be used to determine a unique inverse z-transform.

Lecture 16: Filter Design: Impulse Invariance and Bilinear Transform

LAB 6: FIR Filter Design Summer 2011

Optimal Design of Real and Complex Minimum Phase Digital FIR Filters

DIGITAL SIGNAL PROCESSING. Chapter 6 IIR Filter Design

Multirate Digital Signal Processing

Responses of Digital Filters Chapter Intended Learning Outcomes:

ECSE 512 Digital Signal Processing I Fall 2010 FINAL EXAMINATION

Chap 4. Sampling of Continuous-Time Signals

Filters and Tuned Amplifiers

Chapter 7: IIR Filter Design Techniques

EE 521: Instrumentation and Measurements

Digital Signal Processing Lecture 8 - Filter Design - IIR

1. FIR Filter Design

Signals & Systems. Lecture 5 Continuous-Time Fourier Transform. Alp Ertürk

ECE 410 DIGITAL SIGNAL PROCESSING D. Munson University of Illinois Chapter 12

On the Frequency-Domain Properties of Savitzky-Golay Filters

1 1.27z z 2. 1 z H 2

FIR BAND-PASS DIGITAL DIFFERENTIATORS WITH FLAT PASSBAND AND EQUIRIPPLE STOPBAND CHARACTERISTICS. T. Yoshida, Y. Sugiura, N.

Exercises in Digital Signal Processing

Problem Set 9 Solutions

Basic Design Approaches

Multirate signal processing

Digital Signal Processing

Lecture 7 Discrete Systems

Digital Filters Ying Sun

Bellman s Curse of Dimensionality

Digital Signal Processing

ESE 531: Digital Signal Processing

UNIT - 7: FIR Filter Design

DSP-CIS. Chapter-4: FIR & IIR Filter Design. Marc Moonen

Chapter 5 Frequency Domain Analysis of Systems

DSP. Chapter-3 : Filter Design. Marc Moonen. Dept. E.E./ESAT-STADIUS, KU Leuven

Lecture 14: Windowing

UNIVERSITI SAINS MALAYSIA. EEE 512/4 Advanced Digital Signal and Image Processing

EECE 301 Signals & Systems Prof. Mark Fowler

Multimedia Signals and Systems - Audio and Video. Signal, Image, Video Processing Review-Introduction, MP3 and MPEG2

Digital Control & Digital Filters. Lectures 21 & 22

Chapter 5. Fourier Analysis for Discrete-Time Signals and Systems Chapter

Discrete-time Symmetric/Antisymmetric FIR Filter Design

Electronic Circuits EE359A

Signal Processing. Lecture 10: FIR Filter Design. Ahmet Taha Koru, Ph. D. Yildiz Technical University Fall

Example 3.3 Moving-average filter

EECS 123 Digital Signal Processing University of California, Berkeley: Fall 2007 Gastpar November 7, Exam 2

Maximally Flat Lowpass Digital Differentiators

Efficient algorithms for the design of finite impulse response digital filters

Discrete Time Fourier Transform (DTFT)

Lecture 3 - Design of Digital Filters

ELEG 305: Digital Signal Processing

APPLIED SIGNAL PROCESSING

Complex symmetry Signals and Systems Fall 2015

INF3440/INF4440. Design of digital filters

Filter structures ELEC-E5410

(5.5) Multistep Methods

Contents. Digital Signal Processing, Part II: Power Spectrum Estimation

The basic structure of the L-channel QMF bank is shown below

Digital Signal Processing IIR Filter Design via Bilinear Transform

(Refer Slide Time: 01:28 03:51 min)

UNIT - III PART A. 2. Mention any two techniques for digitizing the transfer function of an analog filter?

Review of Fundamentals of Digital Signal Processing

Chapter 5 Frequency Domain Analysis of Systems

The Discrete-Time Fourier

Review of Fundamentals of Digital Signal Processing

LINEAR-PHASE FIR FILTERS DESIGN

DEPARTMENT OF EI DIGITAL SIGNAL PROCESSING ASSIGNMENT 1

Design of Stable IIR filters with prescribed flatness and approximately linear phase

ECE 301 Fall 2010 Division 2 Homework 10 Solutions. { 1, if 2n t < 2n + 1, for any integer n, x(t) = 0, if 2n 1 t < 2n, for any integer n.

Pseudospectral Methods For Op2mal Control. Jus2n Ruths March 27, 2009

Digital Signal Processing Lecture 10 - Discrete Fourier Transform

The Discrete Fourier Transform

Stability Condition in Terms of the Pole Locations

PS403 - Digital Signal processing

DIGITAL SIGNAL PROCESSING UNIT III INFINITE IMPULSE RESPONSE DIGITAL FILTERS. 3.6 Design of Digital Filter using Digital to Digital

Solutions to Problems in Chapter 4

ECE 301 Division 1 Final Exam Solutions, 12/12/2011, 3:20-5:20pm in PHYS 114.

DHANALAKSHMI COLLEGE OF ENGINEERING DEPARTMENT OF ELECTRICAL AND ELECTRONICS ENGINEERING EC2314- DIGITAL SIGNAL PROCESSING UNIT I INTRODUCTION PART A

EE482: Digital Signal Processing Applications

A Unified Approach to the Design of Interpolated and Frequency Response Masking FIR Filters

ON THE ULTRASPHERICAL FAMILY WINDOW FUNCTIONS. Stuart W. A. Bergen and Andreas Antoniou University of Victoria October 2003

MEDE2500 Tutorial Nov-7

/ (2π) X(e jω ) dω. 4. An 8 point sequence is given by x(n) = {2,2,2,2,1,1,1,1}. Compute 8 point DFT of x(n) by

LABORATORY 3 FINITE IMPULSE RESPONSE FILTERS

Chapter 4. Fourier Analysis for Con5nuous-Time Signals and Systems Chapter Objec5ves

UNIVERSITY OF OSLO. Faculty of mathematics and natural sciences. Forslag til fasit, versjon-01: Problem 1 Signals and systems.

FROM ANALOGUE TO DIGITAL

ECE 8440 Unit Applica,ons (of Homomorphic Deconvolu,on) to Speech Processing

Cast of Characters. Some Symbols, Functions, and Variables Used in the Book

Perfect Reconstruction Two- Channel FIR Filter Banks

Transcription:

Parks- McClellan Algorithm ECE 8440 Unit 17 The Parks- McClellan Algorithm is a computer method to find the unit sample response h(n for an op=mum FIR filter that sa=sfies the condi=ons of the Alterna=on Theorem. The method used by the Parks- McClellan Algorithm is summarized below: 1 Let let H d (e jω (e jω denote the desired frequency response over the specified disjoint frequency intervals. Also denote the frequency response for the op=mum approxima=on. Then, because of the Alterna=on Theorem, we know (e jω will sa=sfy the following set of equa=ons: W(ω i [H d (e jω i (e jω i ] = ( 1 i+1 δ, i =1,2,...,(L+2. (equa=on 7.112 Dividing both sides by [H d (e jω i (e jω i ] = W(ω i gives which can also be expressed as 1 W(ω i ( 1i+1 δ, i =1,2,...,(L+2 H d (e jω i = (e jω i 1 + W(ω i ( 1i+1 δ, i =1,2,...,(L+2. In matrix form, this can be expressed as

2 1 x 1 x 1 2 1 x 2 x 2 2 1 x L+2 x L+2 where. x 1 L 1 W(ω 1 x 2 L -1 W(ω 2 x i = cos ω i L (-1 L+2 x L+2 W(ω L+2 a 0 a 1 a L δ = H d (e jω 1 H d (e jω 2 H d (e jω L+2 2 The frequencies ω i, i =1,2,,L+2, are the frequencies where alterna=ons occur. Based on the above set- up, the Parks- McClellan Algorithm uses the following steps to find the op=mum filter: Step 1. Guess the values of the frequencies, ω i, i = 1,2,,L+2, where the alterna=ons will occur. (The frequencies and are fixed, and must be included as part of the above set. ω p ω s Step 2. Solve for δ, the approxima=on error at the "guessed" alterna=on frequencies ω i using δ = L+2 b k k =1 L+2 H d (e jω k k =1 b k ( 1 k +1 W(ω k (equa=on 7.114

where b k = L+2 i=1 i k 1 (x k x i where again. x i = cos ω i (equa=on 7.115 3 Now assume that for all in the passband ( and that for all in the stopband ( ω s ω i π. W(ω k = 1/ K ω i 0 ω i ω p W(ω k = 1 ω i At the current values of the alterna=on frequencies will then sa=sfy the following: ω i (e jω the current version of the filter (e jω i = 1± Kδ and for 0 ω i ω p (e jω i = ±δ ω s ω i π. for

Step 3. Use the Lagrange interpola=on formula to calculate the value of of frequencies between the ini=al set of values, using ω i (e jω 4 over a fine- grain (e jω = P(cos ω = L+1 K=1 L+1 [d k / (x x k ]C k K=1 [d k / (x x k ] (equa=on 7.116a where x = cos ω and x i = cos ω i and C k = H d (e jω ( 1k +1 δ W(ω k (equa=on 7.116b and d k = L+1 1 = b (x k x i k (x k x L+2. i=1 i k (equa=on 7.116c

If, in the calcula=on of approxima=on error over a dense set of frequencies, it is found that the weighted, which is defined as (e jω E(ω 5 E(ω = W(ω[H d (e jω (e jω ] sa=sfies E(ω δ at all frequencies in the specified disjoint frequency intervals, then the op=mum filter has been found and the design process stops. Otherwise, the following step is implemented: Step 4. Repeat the above process, star=ng at step 2, but this =me using new "guesses" of the alterna=on frequencies: This =me set the guesses equal to the frequencies where the previous had the largest L+2 error peaks, as determined in step 3. (As before, and must be included in this set. The following figure demonstrates Steps 3 and 4 at an intermediate cycle of the above process: (e jω ω p ω s Figure 7.49 Illustra=on of the Parks- McClellan algorithm for equiripple approxima=on.

The above steps are repeated un=l the extremal points do not change by more than some small prescribed amount from the previous itera=on. The following flow chart gives another view of the itera=ve process used to find the op=mum filter: ω i 6 Figure 7.50 Flowchart of Parks- McClellan algorithm

A`er the above process has converged, the values of h(n, which are also the coefficients of the resul=ng filter, can be found as follows: Step 1. Evaluate at R equally spaced samples: where H(e jω = (e jω e jωm/2 ω k = k 2π R, 0 k R-1 R M, using the interpola=on formula of step 3 above. 7 Step 2. Take the inverse DFT of the R samples of step 1. The first M outputs of the IDFT are the desired h(n for 0 n M. (See the figure below from Chapter 8 that relates to how we obtain the final values for h(n.

Characteris=cs of Op=mum FIR Filters 8 The Parks- McClellan Algorithm finds the op=mum filter (the one that minimizes the maximum weighted approxima=on error where the values of ω s, ω p, and M (the filter order are fixed. It is interes=ng to note that the size of the resul=ng approxima=on error varies with ωp for the case where the transi=on width and the error weigh=ng func=on are fixed, as shown in the figure below: Figure 7.51 The cases where local minima occur in the above figure correspond to "extra ripple" cases, which have L+3 alterna=ons instead of L+2.

It is also interes=ng to note from the figure that increasing the filter order (e.g., from M = 9 to M = 10 may not reduce the approxima=on error, for some sets of design parameters. The reason this can happen is that even- order filters are Type I filters while odd- order filters are Type II filters, which are fundamentally different. However, the performance of any Type I filters can be improved, for any set of parameters, by increasing its order by 2 (to the next available order for Type I. The same is true for Type II filters. 9 For op=mum FIR filters, it has been determined that the order required to meet a set of design requirements can be approximated by M = 10log 10 δ 1 δ 2 13 2.324Δω where. (equa=on 7.117 Δω = ω s ω p If δ 1 = δ 2 = δ, this es=mate for M becomes M = 20log δ 13 10. 2.324Δω In order to compare performance with a filter designed using the Kaiser window, let Then the es=mated value of M for the op=mum filter becomes: M O = A 0 13 2.324Δω. A 0 = 20log 10 δ

Expressing A 0 in terms of the filter order gives: 10 A 0 = 2.324(ΔωM O + 13 db. Recall for the Kaiser window method, the es=mate for the required filter order was M K = A K 8 2.285Δω so that for the Kaiser window method:. A K = 2.285(ΔωM K + 8 db. If M O = M K, then A 0 A K + 5. Op=mum Bandpass Filters Band- pass filters can have > L + 3 alterna=ons In band- pass filters, local extrema can occur in transi=on regions. Example The desired frequency response is H d (e jω = 0, 0 ω.3π 1,.35π ω.6π 0,.7π ω π (equa=on 7.124

with the following weigh=ng func=on: 1, 0 ω.3π W(e jω = 1,.35π ω.6π.2,.7π ω π Therefore, and. δ 1 = δ 2 δ 3 = 5δ 1 If we select the filter order as M = 74, the corresponding value of L is L = (M/2 = 37. According to the Alterna=on Theorem, the op=mum filter must have at least L + 2 = 39 alterna=ons. The filter whose frequency response is shown in the figure below has 39 alterna=ons and is therefore op=mum; however, this filter would be unacceptable due to the non- monotonic response in the transi=on region. (The kind of characteris=c is not ruled out by the statement of the Alterna=on Theorem. 11 Figure 7.56

Example: (Compensa=on for Zero- Order Hold 12 Recall from Chapter 4 the structure for a system which has an con=nuous =me input and output, but which implements filtering using discrete- =me processing: Figure 4.10 Discrete- =me processing of con=nuous- =me signals. An ideal D/C converter using an impulse generator and an ideal analog reconstruc=on filter is shown in the figure below: Figure 4.7

In prac=ce, D/C conversion is typically implemented using a zero- order hold system, followed by an modified analog reconstruc=on filter. For this method, the Fourier Transform of the con=nuous =me output is Y(jΩ=X(e jωt H(e jωt H 0 (jω H r (jω H 0 (jω Hr (jω where is the response of the zero- order hold system and is the response of the modified analog reconstruc=on filter. We have seen that a zero- order hold can be modeled as 13 where h 0 (t= 1, 0 t T 0, all other t

Therefore, H 0 (jω = T H 0 (jω h 0 (te -jωt dt = 1 e -jωt dt = e-jωt -jω 0 0 can be found as follows: T = 1-e-jΩT jω 14 e -jωt e j 2 ΩT 2 - e -jωt 2 jω = e -jωt 2 2sin ΩT 2. Ω The figures below shows the frequency response for the zero- order hold frequency response for the modified reconstruc=on filter H r (jω. The product of these approximates the ideal interpola=ng filter, H r (jω. H 0 (jω and the Figure 4.63

Note that the above H r (jω can be expressed mathema=cally as 15 H r ( jω = sin ΩT 2 ΩT 2, Ω < π T and H r ( jω = 0, Ω > π T. Another way to compensate for non- uniform frequency response of the zero- order hold would be to build the compensa=on into the internal digital filter. For example, we could modify the original digital filter having frequency response H(e jωt with a modified digital filter having response of H d (e jωt = ΩT / 2 sin(ωt / 2 H(e jωt where H(e jωt represents the desired response of the original digital filter. In this case, the ideal, flat- passband, analog reconstruc=on filter H r (jω could be used for the final step. When the desired overall filter is a low- pass filter, we could use the Parks- McClellan algorithm to design a filter having the following target frequency response: H d (e jω = ω / 2 sin(ω / 2, 0 ω ω p 0, ω s ω π (equa=on 7.123

The figure below shows the frequency response for filter of this type, where 16 ω p = 0.4π ω s = 0.6π δ 1 = 0.01 δ 2 = 0.001 Figure 7.55 Op=mum D/A- compensated lowpass filter for ω p = 0.4π,ω s = 0.6π,K = 10,and M=28. (a Impulse response (b Log magnitude of the frequency response. (c Magnitude response in passband.