Presentation is loading. Please wait.

Presentation is loading. Please wait.

DISP 2003 Lecture 5 – Part 1 Digital Filters 1 Frequency Response Difference Equations FIR versus IIR FIR Filters Properties and Design Philippe Baudrenghien,

Similar presentations


Presentation on theme: "DISP 2003 Lecture 5 – Part 1 Digital Filters 1 Frequency Response Difference Equations FIR versus IIR FIR Filters Properties and Design Philippe Baudrenghien,"— Presentation transcript:

1 DISP 2003 Lecture 5 – Part 1 Digital Filters 1 Frequency Response Difference Equations FIR versus IIR FIR Filters Properties and Design Philippe Baudrenghien, AB-RF

2 20 March 2003P Baudrenghien AB/RF2 Frequency Response (1) Transfer Function H(z) is the z-transform of the impulse response h(n) Output y(n) is the convolution of the input x(n) and impulse response h(n)

3 20 March 2003P Baudrenghien AB/RF3 Frequency Response (2) Consider a pure phasor input x(n) = e j 2   n The output y(n) is y(n) = h(n) * x(n) The response to a phasor is a phasor at the same frequency the gain is the modulus of H(e j 2   ) the phase shift is the argument of H(e j 2   )

4 20 March 2003P Baudrenghien AB/RF4 Frequency Response (3) Frequency response is obtained by evaluating the transfer function on the unit circle in the z-plane Analogy with continuous- time systems where the frequency response is obtained by evaluating the transfer function (Laplace transform of h(t)) on the imaginary axis in the s- plane

5 20 March 2003P Baudrenghien AB/RF5 Difference Equation (1) Linear Time-Invariant -> Constant Coefficient Linear Difference Equation y(n) = a y(n-1) + x(n) ICs: y(-1) =0 then for x(n)=  (n) we get y(0) = 1 y(1) = a y(0) + x(1) = a y(2) = a y(1) + x(2) = a 2 -> h(n) = a n U(n) Knowledge of underlying physics gives the difference equation. Measurement gives impulse response.

6 20 March 2003P Baudrenghien AB/RF6 Difference Equation (2) Let y(n) be linear combination of the N past output values and the present and M past input values (causal) we get: or (with a 0 = 1) General difference equation representing a causal linear time-invariant filter.

7 20 March 2003P Baudrenghien AB/RF7 Rational Transfer Function Now take the z-transform of both sides The filter transfer function H(z) is H(z) is rational, with a M th order polynomial as numerator and N th order polynomial as denominator -> it has M zeros and N poles in the z-plane

8 20 March 2003P Baudrenghien AB/RF8 Frequency Response revisited Factorization of the transfer function H(z) M zeros z 0, z 1, …, z M-1 N poles p 0, p 1, …, p N-1 Graphic evaluation of the frequency response

9 20 March 2003P Baudrenghien AB/RF9 FIR versus IIR (1) FIR = Finite Impulse Response filter h(n) non zero only for n in [n 1,n 2 ] example: rectangular response IIR = Infinite Impulse Response filter example: h(n) = a n U(n)

10 20 March 2003P Baudrenghien AB/RF10 FIR versus IIR (2) Difference Equation For FIR we have N=0 and … for causal FIR or for non-causal FIR For IIR N is not zero and the difference equations are recursive: y(n) depends on the past (and future) output values.

11 20 March 2003P Baudrenghien AB/RF11 FIR versus IIR (3) FIR transfer function no pole except at z=0 (causal) or z=infinity (anti-causal) IIR transfer function has both poles and zeros in the z-plane

12 20 March 2003P Baudrenghien AB/RF12 FIR properties Frequency response is defined by location of zeros only. For a given complexity (nbr of multiply/add) the transition band will be smoother (that is less sharp) than with a IIR. The FIR are always stable:

13 20 March 2003P Baudrenghien AB/RF13 Even-symmetric FIR h(n) = h(-n) Evaluate the frequency response (assuming that N is odd) and h(n) is real-valued The frequency response is real: phase shift is 0 or 180 degrees

14 20 March 2003P Baudrenghien AB/RF14 Odd-symmetric FIR h(n) = - h(-n) Evaluate the frequency response (assuming that N is odd) and h(n) is real-valued The frequency response is imaginary: phase shift is 90 or -90 degrees

15 20 March 2003P Baudrenghien AB/RF15 Constant Group Delay Filter Take even-symmetric FIR H(z) and shift its symmetry axis by L time samples Since H(e j2  ) is purely real, H 1 has a linear phase characteristic -> Constant Group Delay

16 20 March 2003P Baudrenghien AB/RF16 FIR Filter Design Signal Processing Toolkit of MATLAB Define the frequency response template. Case of LPF: Pass band End F pass Pass band Ripple D pass Stop band Start F stop Stop band Attenuation D stop F stop -F pass = Transition band

17 20 March 2003P Baudrenghien AB/RF17 Example 1: Equiripple LP FIR (1) LPF example: Pass band End F pass = 0.1 Pass band Ripple D pass =0.05 (5%) Stop band Start F stop = 0.13 Stop band Attenuation D stop = 0.1 (1/10) Minimum of 31 coefficients needed to achieved required specifications Even-symmetric impulse response

18 20 March 2003P Baudrenghien AB/RF18 Example 1: Equiripple LP FIR (2) Achieved frequency response Purely linear phase response = constant group delay filter Exact zeros in the stop band

19 20 March 2003P Baudrenghien AB/RF19 Example 1: Equiripple LP FIR (3) Pole-Zero plot in the z-plane FIR -> pole at zero (causal) Location of zeros: On the unit circle in the Stop band Far from unit circle in Pass band -> ripples

20 20 March 2003P Baudrenghien AB/RF20 Example 2: Design using Windows (1) Idea: start from an ideal frequency response template (rectangular) expand this function as an infinite Fourier series over the normalized frequency interval [-1/2,1/2] identify the Fourier coefficients as the FIR coefficients h(n) truncate this series to the desired number of FIR coefficients multiply the impulse response by a window to limit the Gibbs phenomenon

21 20 March 2003P Baudrenghien AB/RF21 Example 2: Design using Windows (2) Using Kaiser window Same spec as before: Pass band End = 0.1 Pass band Ripple = 5% Stop band Start = 0.13 Stop band Attenuation = 1/10 Comparison with Equiripple design: 43 coefficients vs. 31 (-) Decreasing amplitude ripples in the Stop band (+)

22 20 March 2003P Baudrenghien AB/RF22 Example 2: Design using Windows (3) Pole-Zero plot Location of zeros: On the unit circle in the Stop band Far from unit circle in Pass band

23 20 March 2003P Baudrenghien AB/RF23 Needed number of coefficients For equiripple LP FIR filters: Independent of BW (F pass )! Weak (logarithmic) dependence on the Pass band ripple level and the Stop band attenuation Linear dependence on the transition band! Our example: Ne = 29 (compared to 31) Problem: Very narrow filters -> Decimating


Download ppt "DISP 2003 Lecture 5 – Part 1 Digital Filters 1 Frequency Response Difference Equations FIR versus IIR FIR Filters Properties and Design Philippe Baudrenghien,"

Similar presentations


Ads by Google