Module 4 - DSP
Module 4 - DSP
h[n]=hd[n]w[n]
● Bartlett (triangular)
● Hann
● Hamming
● Blackman
● The windows have the desirable property that their Fourier Transforms are
concentrated around ⍵=0.
● They have a simple functional form that allows them to be computed easily.
● The function 20log10|W(ej⍵)| is plotted for each of these windows with M=50.
● The rectangular window clearly has the narrowest main lobe, and thus, for a
given length, it should yield the sharpest transitions of H(ej⍵) at a discontinuity
of Hd(ej⍵).
● However, the first lobe is only about 13dB below the main peak, resulting in
oscillations of H(ej⍵) of considerable size around discontinuities of Hd(ej⍵).
● By tapering the window smoothly to zero, as with the Bartlett, Hamming,
Hann, and Blackmann windows, the side lobes are greatly reduced in
amplitude; however, the price paid is a much wider main lobe and thus wider
transitions at discontinuities of Hd(ej⍵).
Advantages of FIR filter over IIR filter
● FIR filters are always stable.
● FIR filters with exactly linear phase can easily be designed.
● FIR filters can be realized in both recursive and non-recursive structures.
● FIR filters are free of limit cycle oscillations, when implemented on a
finite-word length digital systems.
● Excellent design methods are available for various kinds of FIR filters.
Disadvantages of FIR filter
● The implementation of narrow transition band FIR filters are very costly, as it
requires considerably more arithmetic operations and hardware components
such as multipliers, adders and delay elements.
● Memory requirements and execution time are very high.
Design of FIR filters using windows
● The desired frequency response Hd(ej⍵) of a filter is periodic in frequency and
can be expanded in a Fourier series.
● The resultant series is given by :
Where
● hd[n] are know as Fourier coefficients having finite length.
● One possible way of obtaining FIR filter is to truncate the infinite Fourier
series at n=±(N-1)/2, where N is the length of the desired sequence.
● But abrupt truncation of the Fourier series results in oscillations in the
passband and the stopband.
● These oscillations are due to slow convergence of the Fourier series and this
effect is known as the Gibbs phenomenon.
● To reduce these oscillations, the Fourier coefficients of the filter are modified
by multiplying the infinite impulse response with a finite weighing sequence
w[n] called a window where
● After multiplying window sequence w[n] with hd[n], we get a finite duration
sequence h[n] that satisfies the desired magnitude response :
● The frequency response H(ej⍵) of the can be obtained by convolution of the
Hd(ej⍵) and W(ej⍵) given by :
● Because both Hd(ej⍵) and W(ej⍵) are periodic functions the operation is often
called as periodic convolution.
● The Fourier transform of a window consists of a central lobe and side lobes.
The central lobe contains most of the energy of the window.
● The window chosen for truncating the infinite impulse response should have
some desirable properties as :
1. The central lobe of the frequency response of the window should contain
most of the energy and should be narrow.
2. The highest side lobe level of the frequency response should be small.
3. The side lobes of the frequency response should decrease in energy rapidly
as ⍵ tends to 𝜋.
Rectangular window
● The rectangular window sequence is given by :
Where k is an integer.
● The response for ⍵ between 2𝜋/N and -2𝜋/N is called the main lobe and the
other lobes are known as the side lobes.
● The main lobe of the response is the portion that lies between the first the two
zero crossings.
● The side lobes are defined as the portion of the response for ⍵ < -2𝜋/N or ⍵ >
2𝜋/N.
● As the window is made longer the main lobe becomes narrower and higher,
and the side lobe become more concentrated around ⍵=0.
● The main lobe width for the rectangular window is equal to 4𝜋/N.
● The higher side lobe is equal to approximately 22% of the main lobe
amplitude or -13dB relative to the maximum value at ⍵=0.
● The frequency response differs from the desired response in many ways :
1. It does not follow quick transitions in the desired response.
2. As the filter length N increases, the main lobe becomes narrower decreasing
the width of the transition region.
● The convolution of the desired response and the window response’s
sidelobes give rise to the ripples in both the passband and the stopband.
● For the rectangular window, the amplitude of the sidelobes is unaffected by
the length of the window. So increase in N will not reduce ripples, but increase
its frequency.
● The effect where maximum ripple occurs just before and after the transition
band is know as Gibbs phenomenon.
● The Gibbs phenomenon can be reduced by using a less abrupt truncation of
filter coefficients. This can be achieved by using a window function that tapers
smoothly towards zero at both ends.
Hamming window
● The equation for Hamming window is given by :
Where
● H̅(ej⍵) is a real and even function of ⍵. The magnitude and phase of H(ej⍵) are
|H(ej⍵)|=|H̅(ej⍵)| and
Then
● For symmetrical impulse response having symmetry at n=0
h(-n)=h(n)
● Therefore, the above equation can be written as :