1 / 65

Lecture 5: March 20, 2007

Lecture 5: March 20, 2007. Topics:. 1. Design of Equiripple Linear-Phase FIR Digital Filters (cont.). 2. Comparison of Design Methods for Linear-Phase FIR Digital Filters. 3 . Design of IIR Digital Filters from Analogue Filters (Part I).

Download Presentation

Lecture 5: March 20, 2007

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Lecture 5: March 20, 2007 Topics: 1. Design of Equiripple Linear-Phase FIR Digital Filters (cont.) 2. Comparison of Design Methods for Linear-Phase FIR Digital Filters 3. Design of IIR Digital Filters from Analogue Filters (Part I)

  2. 4.2.6. Design of Equiripple Linear-Phase FIR Digital Filters Previous Methods: The windowing method and the frequency-sampling method are relatively simple techniques for designing linear-phase FIR filter. Here, a major problem, is a lack of precise control of the critical frequencies such cut off frequencies of pass-band and stop-band.

  3. New Method: The new filter design method described in this section is formulated as a Chebyshev approximation problem. It is viewed as an optimum design criterion in the sense that the maximum weighted approximation error between the desired frequency response and the actual frequency response is minimized. The resulting filter designs have ripples in both the pass-band and the stop-band.

  4. New Method: The new filter design method described in this section is formulated as a Chebyshev approximation problem.It is viewed as an optimum design criterion in the sense that the maximum weighted approximation error between the desired frequency response and the actual frequency response is minimized. The resulting filter designs have ripples in both the pass-band and the stop-band.

  5. New Method: The new filter design method described in this section is formulated as a Chebyshev approximation problem. It is viewed as an optimum design criterion in the sense that the maximum weighted approximation error between the desired frequency response and the actual frequency response is minimized. The resulting filter designs have ripples in both the pass-band and the stop-band. To describe the design procedure, let us recall the following basic filter specifications

  6. Basic Filter Specifications: A Review pass-band ripple pass band transition band stop-band ripple stop band

  7. Design of Equiripple Linear-Phase FIR Digital Filters (Summary) Method: formulated as a Chebyshev approximation problem. Optimum design criterion: minimizing the maximum weighted approximation error between the desired frequency response and the actual frequency response. Solution: an iterative method based on an alternation theorem and Remez exchange algorithm application. Result: filter possessing ripples (equirpple) in both the pass-band and the stop-band.

  8. Filter specifications: Pass-band: Stop-band: Filter description: M: the number of impulse response coefficients

  9. Four different cases of linear phase FIR filters: Case 1:symmetric impulse response [h(k)=h(M-1-k)], M odd. Case 2:symmetric impulse response [h(k)=h(M-1-k)], M even. Case 3:antisymmetric impulse response [h(k)=-h(M-1-k)], M odd. Case 4:antisymmetric impulse response [h(k)=-h(M-1-k)],M even.

  10. Frequency response of the linear phase FIR filter We have shown, that the frequency response of linear phase FIR digital filters can be expressed as follows: where is the real-valued frequency response.

  11. L=(M-1)/2 Case 1: L=(M/2)-1 Case 2: Case 3: L=(M-3)/2 Case 4: L=(M/2)-1 where The represent the parameters of the filter which are linearly related to the unit sample response h(k).

  12. B. The desired (ideal) real-valued frequency response of the filter: C. The weighting function of the approximation error: A. The actual real-valued frequency response of the filter:

  13. Comments on weighting function: The weighting function on the approximation error allows to choose the relative size of the approximation errors in the different frequency bands (i.e. in the pass-band and in the stop-band) differently.In particular, it is convenient to normalize to the unity in the stop-band and set in the pass-band.

  14. With regard to previous specifications of the desired (ideal) and actual real-valued frequency responses and the weighting function on the approximation error, we can now define the weighted approximation error as

  15. The modified weighting function on the approximation error: The weighted approximation error: for all different types of linear-phase FIR filters. The modified real-valued desired frequency response:

  16. Given the error function , the Chebyshev’s approximation problem is basically to determine the filter parameters that minimize the maximum absolute value over the frequency bands in which the approximation is to be performed (set: S). In mathematical terms we seek the solution of the problem:

  17. Note A.: Here,S represents the set (disjoint union) of frequency bands over which the optimization is to be performed. Basically, the set S consists of the pass-bands and stop-bands of the desired frequency response of the filter.

  18. Note B.: The described criterion refered to as Chebyshev’s mini-max criterion leads to an equiripple filter i.e. to a filter whose magnitude response oscillates uniformly between the tolerance bounds of each band.

  19. The solution to the Chebyshev’s approximation problem has been due toParks and McClellan. Their solution is based on the combination of the alternation theorem with the Remez exchange algorithm. From a formal point of view, Parks’ and McClellan’s solution is represented by a numerical iterative method. Therefore, this method is clearly improper for „the conventional hand-made approach“. Solution: a computer program for designing the FIR filter has been reported by Parks and McClellan. This program represented by sophisticated software tools can be applied for designing all basic kinds of linear phase FIR digital filters as well as digital differentiators and Hilbert transformers.

  20. 4.2.6.1. MATLAB Function for Optimal Equiripple FIR Filter Design: b=remez(N,F,A) REMEZ Parks-McClellan optimal equiripple FIR filter design.b=remez(N,F,A) returns a length N+1 linear phase (real, symmetriccoefficients)FIR filter having the best approximation of the desired frequency response described by F and A in the mini-max sense.F is a vector of frequency band edges in pairs, in ascending order between “0” and “1”. “1” corresponds to the Nyquist frequency or half of the sampling frequency. A is a real vector the same size as F. It specifies the desired amplitude of the frequency response of the resultant filter b.

  21. 4.2.6.1. MATLAB Function for Optimal Equiripple FIR Filter Design: b=remez(N,F,A) REMEZ Parks-McClellan optimal equiripple FIR filter design.b=remez(N,F,A) returns a length N+1 linear phase (real, symmetriccoefficients)FIR filter having the best approximation of the desired frequency response described by F and A in the mini-max sense.F is a vector of frequency band edges in pairs, in ascending order between “0” and “1”. “1” corresponds to the Nyquist frequency or half of the sampling frequency. A is a real vector the same size as F. It specifies the desired amplitude of the frequency response of the resultant filter b.

  22. 4.2.6.1. MATLAB Function for Optimal Equiripple FIR Filter Design: b=remez(N,F,A) REMEZ Parks-McClellan optimal equiripple FIR filter design.b=remez(N,F,A) returns a length N+1 linear phase (real, symmetriccoefficients)FIR filter having the best approximation of the desired frequency response described by F and A in the mini-max sense.F is a vector of frequency band edges in pairs, in ascending order between “0” and “1”. “1” corresponds to the Nyquist frequency or half of the sampling frequency.A is a real vector the same size as F. It specifies the desired amplitude of the frequency response of the resultant filter b.

  23. 4.2.6.1. MATLAB Function for Optimal Equiripple FIR Filter Design: b=remez(N,F,A) REMEZ Parks-McClellan optimal equiripple FIR filter design.b=remez(N,F,A) returns a length N+1 linear phase (real, symmetriccoefficients)FIR filter having the best approximation of the desired frequency response described by F and A in the mini-max sense.F is a vector of frequency band edges in pairs, in ascending order between “0” and “1”. “1” corresponds to the Nyquist frequency or half of the sampling frequency. A is a real vector the same size as F. It specifies the desired amplitude of the frequency response of the resultant filter b.

  24. Example: By using MATLAB, design a low-pass optimum equiripple FIR filters of length M=21, M=41, M=61, M=101 with the pass-band edge frequency and stop-band edge frequency

  25. A=[1 1 0 0]; F=[0 0.25 0.5 1];  b21=remez(20,F,A); b41=remez(40,F,A); b61=remez(60,F,A); b101=remez(100,F,A); Solution and Results: application of MATLAB function b=remez(N,F,A) Then, the magnitude responses of the designed filters are given in the next figures.

  26. Details: the next figures Magnitude Responses [dB] M=21 M=41 M=61 M=101

  27. Magnitude Responses: Details [dB] [dB] M=21 M=41 [dB] [dB] [dB] M=61 M=101

  28. 4.3. Comparison of Design Methods for Linear-Phase FIR Digital Filters Historically, the design method based on the use of windows to truncate the impulse response and to obtain the desired spectral shaping was the first method proposed for designing linear-phase FIR filters. The frequency-sampling method and the Chebyshev approximation method were developed in the 1970s and have since became very popular in the design of practical linear-phase filters.

  29. 4.3. Comparison of Design Methods for Linear-Phase FIR Digital Filters Historically, the design method based on the use of windows to truncate the impulse response and to obtain the desired spectral shaping was the first method proposed for designing linear-phase FIR filters. The frequency-sampling method and the Chebyshev approximation method were developed in the 1970s and have since became very popular in the design of practical linear-phase filters.

  30. B. The Frequency Sampling Method: The method provides an improvement over the window design method, since is specified at the frequencies , and the transition band is a multiple of . This filter design method is particularly attractive when the FIR filter is realized either in the frequency domain by means of the FFT or in any of the frequency sampling realizations. The attractive feature of these realizations is that is either zero or unity at all frequencies, except in the transition band.

  31. However, it ismore naturalin filter design to specify andto determine the filter length Mthat satisfies the specifications. C. The Chebyshev Design Procedure Based on the Remez Exchange Algorithm The Chebyshev approximation method provides total control of the filter specifications.It is usually preferable over the other two methods.For a low-pass filter, the specification are given in terms of the parameters:M,

  32. Although there is no simple formula to determine the filter length from these specifications, a number of approximations have been proposed for estimatingM from . A particularly, simple formula attributed to Kaiser for approximating M is where the transition band is defined as:

  33. A more accurate formula proposed by Herrmann et al. is where

  34. 5. Design of IIR Digital Filters from Analogue Filters 5.1. Introduction

  35. Just as in the FIR filter design, there are several methods that can be used to design digital filters having an infinite-duration of unit sample response. The methods described in this section are all based on taking an analogue filter and converting it to a digital filter. Analogue filter design is well-developed field, so it is not surprising that we begin the design of digital filters in the analogue domain and then convert the design into the digital domain.

  36. Analogue filter description output signal input signal Analogue filter

  37. B. System (transfer) function: C. Impulse response h(t) is related to HA(p) by: A. The linear constant-coefficient differential equation: Basic Characteristics/Models of Analogue Filters

  38. Each of these three equivalent characterizations of analogue filters leads to alternative method for converting the analogue filters into the digital domain (into digital filters).

  39. We recall that an analog linear time-invariant system with transfer (system) function is stable if and only if all of its poles lies in the left-half p-plane. 2. The axis in the p-plane should be mapped into the unit circle in the z-plane. Thus there has to exist direct relationship between the two frequency variables in the two domains . Consequently, if the conversion method of analogue filters into digital filters is to be effective, it should possess the following desirable properties: 1. The left-half p-plane should be mapped into the inside of the unite circle in the z-plane.Thus the stable analogue filter has to be converted to a stable digital filter.

  40. It can be shown that physically realizable(causal) and stable IIR filters cannot have linear phase. If the restriction on causality is removed, it is possible to obtain a linear phase IIR filters, at least in principle. Therefore, in the design of IIR filters, we shall specify the desired filter characteristics for the magnitude response only. This does not mean that we consider the phase response unimportant. Since the magnitude and phase characteristics are related, we specify the desired magnitude characteristics and accept the phase response that is obtained from the design methodology.

  41. It can be shown that physically realizable(causal) and stable IIR filters cannot have linear phase. If the restriction on causality is removed, it is possible to obtain a linear phase IIR filters, at least in principle. Therefore, in the design of IIR filters, we shall specify the desired filter characteristics for the magnitude response only. This does not mean that we consider the phase response unimportant. Since the magnitude and phase characteristics are related, we specify the desired magnitude characteristics and accept the phase response that is obtained from the design methodology.

  42. It can be shown that physically realizable(causal) and stable IIR filters cannot have linear phase. If the restriction on causality is removed, it is possible to obtain a linear phase IIR filters, at least in principle. Therefore, in the design of IIR filters, we shall specify the desired filter characteristics for the magnitude response only.This does not mean that we consider the phase response unimportant. Since the magnitude and phase characteristics are related, we specify the desired magnitude characteristics and accept the phase response that is obtained from the design methodology.

  43. It can be shown that physically realizable(causal) and stable IIR filters cannot have linear phase. If the restriction on causality is removed, it is possible to obtain a linear phase IIR filters, at least in principle. Therefore, in the design of IIR filters, we shall specify the desired filter characteristics for the magnitude response only.This does not mean that we consider the phase response unimportant. Since the magnitude and phase characteristics are related, we specify the desired magnitude characteristics and accept the phase response that is obtained from the design methodology.

  44. It can be shown that physically realizable(causal) and stable IIR filters cannot have linear phase. If the restriction on causality is removed, it is possible to obtain a linear phase IIR filters, at least in principle. Therefore, in the design of IIR filters, we shall specify the desired filter characteristics for the magnitude response only. This does not mean that we consider the phase response unimportant.Since the magnitude and phase characteristics are related, we specify the desired magnitude characteristics and accept the phase response that is obtained from the design methodology.

  45. It can be shown that physically realizable(causal) and stable IIR filters cannot have linear phase. If the restriction on causality is removed, it is possible to obtain a linear phase IIR filters, at least in principle. Therefore, in the design of IIR filters, we shall specify the desired filter characteristics for the magnitude response only. This does not mean that we consider the phase response unimportant.Since the magnitude and phase characteristics are related, we specify the desired magnitude characteristics and accept the phase response that is obtained from the design methodology.

  46. The procedures for digital filter design from analogue filters to be discussed in this course: • Method of approximation of derivatives. • Impulse-invariant method (impulse invariant transformation). • The matched Z-transformation method. • Bilinear transformation method.

  47. 5.2. Method of Approximation of Derivatives

  48. Basic principle:to substitute derivative at time t=nT by the backward difference: where T represents the sampling interval. Basic idea: approximation of the differential equation: by an equivalent difference equation.

  49. The input: The input: The output: The output: Transfer function: Transfer function: Transform-domain equivalent Digital differentiator Analogue differentiator

  50. The second derivative is replaced by the second backward difference:

More Related