Design of Linear Phase Fir Filter Using Window

exactly the same as the response of the system described by equation (1.28) with a unit pulse signal as the excitation.

1.2. FIR filter design

1.2.1. DESIGN OF LINEAR PHASE FIR FILTER USING WINDOWS

1.2.1.1. Principle:

From the desired frequency response H d ( ) with the corresponding parameters, we take the inverse Fourier transform to get the impulse response h d ( ):


In general, the resulting h d (n) will have infinite length h(n) and be non-causal, which is not feasible in practice. Therefore, the system must be modified to be causal and h(n) must be constrained to the length of h d (n). A simple method is to truncate h d (n) from the value n = M-1 and obtain an FIR filter of length M. This "truncation" is equivalent to multiplying h(n)g by a window function. The window function is defined as follows:


Thus, the impulse response of the FIR filter becomes:

h(n) = h d (n).w(n) (1.33)

Let W( ) be the Fourier transform of the window w(n), from the multiplicative property of the Fourier transform, we obtain the frequency response of the filter as follows:


1.2.1.2. Main steps of the window method: Select 4 technical parameters of the digital filter: δ 1 , δ 2 , p , s . Determine the impulse response of the ideal filter circuit. Select the window type.

Multiply by the window to get the filter impulse response: h d (n) = h(n).w(n). Retest in the frequency domain: H d ( ) = H( )*W( ).

If the specifications are not met, we increase M and return to step 2.

1.2.1.3. Rectangular window

Definition: A rectangular window of length M is defined in the time domain.

as follows:



In the odd case, w(n) has a symmetric form with the center of symmetry at n: The Fourier transform of the rectangular window is:

M -1 .

2


This window has an amplitude response of:


and has a linear phase response:


, when sin ( M)/2 0


, when sin ( M)/2 < 0


1.38



Figure 1.14: (a) Rectangular window with length M = 9

(b) Rectangular window amplitude response



Figure 1.15: Amplitude responses (db) of rectangular windows with M = 9. M = 51 and M-101

Parameters (these parameters are also defined in common for other window types):

- Width of main band DW (calculated as 2 times the frequency range from = 0 to p , frequency p corresponds to zero value of main band), for rectangular window:

DW = 4p/M. (1.39)

- The ratio between the top of the first lateral cusp and the top of the main cusp, denoted by:


with 1 being the frequency corresponding to the peak of the first side lobe, with a rectangular window w 1 = 3p/M. This parameter is usually calculated as follows:

People also often consider an opposite quantity, which is the ratio of the main cusp tip and the first side cusp tip, denoted by h, we have:

for rectangular windows:

Here are the values ​​of h corresponding to different lengths M:

M = 6 ® h = 4.2426; M = 9 ® h = 4.1000; M = 10 ® h = 4.7014; M = 100 ® h = 4.7106;. ..

and M ® ¥ ~ then h » 4.712. We see that when M > 10 the parameter is almost constant.

Figure 1.14.a shows the rectangular window in the time domain, Figure 1.14.b is the amplitude response of the rectangular window with M = 9. The corresponding parameters are as follows:

DW = 4p/M = 1.3963 rad; 1 = -13.0643dB; h = 4.1000

Figure 1.11 shows the amplitude response of a rectangular window with M being: 9,11 and

101.

Gibbs phenomenon 1

To limit the impulse response length h(n) of the ideal filter, we multiply by the window function w(n). The frequency response of the actual filter is obtained from the convolution (131). For the filter

Ideally, the amplitude response switches abruptly from 1 to 0 (or vice versa) at the cutoff frequency. But for practical filters, due to convolution in the frequency domain, it will cause oscillations in the passband and stopband around the cutoff frequency c . The generation of these oscillations is called the Gibbs phenomenon.

Example 1.4:

Design a linear phase FIR filter with the following specifications:

δ 1 = 0.01, δ 2 = 0.01, p = /4 - /10 = 0.7226, = /4 + /10 = 0.8482 and = ( p + s /2

= /4.

Prize:

- Choose a rectangular window W(n) with causality and symmetry center at (M- 1)/2.

- To illustrate the Gibbs phenomenon, we choose the frequency response of an ideal low-pass filter, we have:

Taking the inverse Fourier transform, according to equation (1.28), we get the impulse response h(n):


We see that h d (n) has infinite length h(n), is not causal and has a center of symmetry at k in the time domain. If we choose k = (M- 1)/2 then than has a center of symmetry at (M- 1)/2.

Multiplying h(n) by the rectangular window w(n), the filter impulse response becomes causal and has finite length h(n):

h(n) = hd(n) .w(n)

Figure 1.16. Illustration of the impulse response h(n) with M = 61.


Figure 1.16: Impulse response h(n) sliced ​​from h d (n) and rectangular window M = 61

The frequency response of the designed system is:

Figure 1.18 plots the amplitude response characteristics of the filter with M = 9, M = 61 and M = 101.

We see that, as M increases, the passband and stopband ripples do not decrease in amplitude and in all three cases, the proposed ripple criterion is not satisfied. However, the transient width is improved (narrowed) as M increases.

To reduce large ripples in both the passband and stopband, we can use window functions that contain a sharp peak and decay gradually to zero instead of abruptly like a rectangular window function.

Some typical window functions commonly used in FIR filter design are shown in Table 1.1 and the shape of some windows is shown in Figure 1.17. These window functions have lower sidelobes than rectangular windows. However, for the same value of M, the width of the main lobe of these window functions is also wider than that of rectangular windows. Therefore, these window functions have the effect of smoothing the frequency response through convolution in the frequency domain, and as a result, the transient band of the FIR filter is wider. To reduce the transient band width, we increase the window length, which results in a larger filter.

Figure 1.17. The form (envelope) of some window functions in the time domain


Figure 1.18: Amplitude response of a low-pass filter designed with a rectangular window. (a) M = 9, (b) M = 61, (c) M = 101

Table 1.1. Window functions



Bartlett (triangular)


2n , With 0 n M 1 M 1 2n

2 - 2n , With 2n < n M - 1

M 1 M 1


Blackman

w(n) = 0.42 - 0.5cos 2π n -+ 0.08 scos 4π n

M 1 M 1


Hamming

w(n) = 0.54 - 0.46 cos 2π n

M 1


H(n)ning

w(n) = 1 (1 - cos 2π n )

2 M 1


Kaiser

I M 1 1 2n 1

β 2 M 1

I M 1

β2

⎠⎦


Lanczos

n M 1

2

sin ⎠⎥

M 1

w(n) = M 1

n

2

M 1

2


Tukey

1, with n M 1 M 1 , 0 < < 1

2 2

n (1 α) M 1

1 2

1 cos ,

2 (1 α) M 1

2

With M 1 n M 1 M 1 2 2 2

Maybe you are interested!

Note: The Kaiser window is a near-optimal window, which is formed from the first-order non-zero Bessel function I 0 (x). In the Kaiser window definition formula (Table

Comment


Agree Privacy Policy *