1 / 23

BIEN425 – Lecture 11

BIEN425 – Lecture 11. By the end of the lecture, you should be able to: Design and implement FIR filters using frequency-sampling method Compare the advantages / disadvantages of FIR filter design using windowing versus frequency-sampling methods. Alternative for designing FIR given A r (f).

kele
Download Presentation

BIEN425 – Lecture 11

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. BIEN425 – Lecture 11 • By the end of the lecture, you should be able to: • Design and implement FIR filters using frequency-sampling method • Compare the advantages / disadvantages of FIR filter design using windowing versus frequency-sampling methods.

  2. Alternative for designing FIR given Ar(f) • Supposed N frequency samples equally spaced • Recall: • Note then h(k) = IDFT{H(fi)} • To ensure that filter is linear-phase, H(f) will have to be of the form

  3. Frequency sampling method

  4. Example • Choosing Ar(f) to be ideal

  5. Example: optimizing trans. band • hx(k) will be different depending on the value of x

  6. Strategy: • Find the value of x so that the stopband attenuation As(x) is maximized • Find As(x) for 3 arbitrarily chosen x values • Assume As(x) follows a quadratic polynomial • Solve for c to fit the data points • Solve for x As x

  7. Example

  8. Another example

  9. Extension using FFT

  10. With Blackman windows

  11. Kaiser and Chebyshev windows • Don’t worry about the complexity • Just have to know the characteristics

  12. So far, we have only deal with low-pass • WHY? • Because it’s straight-forward? Of course! • What if we want other filters • We can translate low-pass into any other filter types • Highpass? Very simple • Bandpass? Here is the example

  13. Let’s design a bandpass filter • Want: bandpass 50-100Hz • Procedure: • Create lowpass filter with the width in the passband (i,e. Fc = 24Hz) • Compute h(k) – introduce concept of taps • Apply windows if necessary • Shift to desired frequency s_shift=sin(2*pi*76/fs*(0:30)); h_shifted=h.*s_shift;

  14. Ideal lowpass –(25-24hz)

  15. Actual lowpass – 1024 points

  16. Tap-31 (take middle 31 points of h(k))

  17. With Blackman window

  18. Apply shift of 75hz

  19. Other options • Least-square method • In a sense, we would like to design a filter so that its actual response Ar(f) matches the desired response Ad(f) by minimizing the objective function J • So far, every frequency is treated with the same weight (or importance)

  20. We could specify weighted importance for particular frequency bands with the variable w(i) • Note that this is not the window parameters • As a result, given the distribution of the weights we could find h(i) so that J is minimized.

More Related