ENGN4537 ENGN6537 Handout for Windowed FIR LPF Design

In this is also
technique, the desired cutoff frequency of the low pass filter is fc Hz, or Ωc =2π fc/ fs radians/sample. Note: this the desired edge of the pass band. We now try to create a filter that approximates this as follows:
Choose a pass band edge frequency f1 in Hz for the filter. This frequency should be in the middle of the filter’s transition width, as shown in the following plot:
f1 = (Desired pass band edge frequency) + (Transition width) 2
Calculate the corresponding digital frequency Ω1 =2π f1/ fs and substitute this into the equation for the impulse response (IIR) of the ideal low pass filter:
h [n] = sin(nΩ1 ) 1 nπ
Note: in terms of the MATLAB sinc function, which is sinc(x) = sin(πx)/ πx, this is equal to: = Ω1 sinc⎛ nΩ1 ⎞
Windowed FIR LPF Filter Design
Based on other specifications provided in the Window Characteristics table on the next page, for example using the stop band attenuation, choose a suitable window function w[n]. Based on the type of window used, use the equation in the table to calculate the number of terms (which should be an odd number so the impulse response is perfectly symmetrical about n=0 … this will ensure no phase distortion in the resulting filter). Determine the filter coefficients for –(N-1)/2 ≤ n ≤ (N-1)/2.
Determine the impulse response (FIR) for the filter defined by h2[n]=h1[n]w[n] for –(N-1)/2 ≤ n ≤ (N-1)/2. h2[n] = 0 for all other values of n. Note that this filter is non-causal, since the impulse response is non-zero for some n < 0. Shift this impulse response to the right by (N-1)/2 samples so that the first non-zero value occurs at n = 0. This makes the filter causal. The final causal FIR low pass filter’s impulse response is now h[n]=h2[n-(N-1)/2]. CS Help, Email: tutorcs@163.com Table: Window Characteristics 浙大学霸代写 加微信 cstutorcs