Professional Documents
Culture Documents
DSP 3
DSP 3
COURSE MATERIAL
Subject Name:
Name:DIGITAL
DIGITAL SIGNAL PROCESSING
Subject Code: KEC -503
Branch/Semester: ECE / 5th
Session: 2022
2022-23(Odd-Semester)
Faculty Members
Dr. Devvrat Tyagi
Dr. Mangal Deep Gupta
KEC503
DIGITAL SIGNAL PROCESSING
UNIT-3 Syllabus
Digital filters are classified as finite duration unit impulse response (FIR) filters or
infinite duration unit impulse response (IIR) filters, depending on the form of the
unit impulse response of the system. In the FIR system, the impulse response
sequence is of finite duration, i.e., it has a finite number of non-zero terms. The IIR
system has an infinite number of non-zero terms, i.e., its impulse response sequence
is of infinite duration. IIR filters are usually implemented using recursive structures
(feed-backpoles and zeros) and FIR filters are usually implemented using non-
recursive structures (no feedback-only zeros). The response of the FIR filter depends
only on the present and past input samples, whereas for the IIR filter, the present
response is a function of the present and past values of the excitation as well as past
values of the response. The well-known methods of designing FIR filters are
Fourier series method, Window method, Frequency sampling method, Optimum
filter design.
The procedure for designing FIR filter using windows is summarised as:
as
1. Choose the desired frequency response of the filter Hd(ω).
2. Take inverse Fourier transform of Hd(ω ) to obtain the desired impulse response
hd(n).
3. Choose a window
ndow sequence w(n) and multiply hd(n) by w(n) to convert the
infinite duration impulse response to a finite duration impulse response h(n).
4. The transfer function H(z) of the filter is obtained by taking Z
Z-transform of h(n).
In the magnitude response, the width of the main lobe is 12π /N, which is highest
among windows. The peak of the first side lobe is at –58 dB and the side lobe
magnitude decreases with frequency. This desirable feature is achieved at the
expense of increased main lobe width. However, the main lobe width can be reduced
by increasing the value of N. The side lobe attenuation of a low-pass filter using
Blackman window is –78 dB.
3.5.3. Hanning Window: The Hanning window function is given by:
The width of main lobe is 8 /N, i.e., twice that of rectangular window which results
in doubling of the transition region of the filter. The peak of the first side lobe is –32
dB relative to the maximum value. This results in smaller ripples in both pass band
and stop band of the low-pass filter designed using Hanning window. The minimum
stop band attenuation of the filter is 44 dB. At higher frequencies the stop band
attenuation is even greater. When compared to triangular window, the main lobe
width is same, but the magnitude of the side lobe is reduced, hence the Hanning
window is preferable to triangular window
In the magnitude response for N = 31, the magnitude of the first side lobe is down
about 41dB from the main lobe peak, an improvement of 10 dB relative to the
Hanning window. But this improvement is achieved at the expense of the side lobe
magnitudes at higher frequencies, which are almost constant with frequency. The
width of the main lobe is 8 /N. In the magnitude response of low-pass filter designed
using Hamming window, the first side lobe peak is –51 dB, which is –7 dB lesser
with respect to the Hanning window filter. However, at higher frequencies, the stop
band attenuation is low when compared to that of Hanning window. Because the
Hamming window generates lesser oscillations in the side lobes than the Hanning
window for the same main lobe width, the Hamming window is generally preferred.
The Kaiser window is nearly optimal in the sense of its peak's concentration around
frequency.
Determine the frequency response of the FIR if Hamming window is used with
N=7
The given window is Hamming window:
To calculate the value of h(n): h(n) = hd (n)w(n)
The filter coefficients are determined by the system transfer functions. These
filter co-efficient are quantized/truncated while implementing DSP System
because of finite length registers. Only Finite numbers of bits are used to perform
arithmetic operations. Typical word length is 16 bits, 24 bits, 32 bits etc. This
finite word length introduces an error which can affect the performance of the
DSP system.
The main errors are:
1. Co-efficient quantization error
2. Quantization noise – truncation and rounding
3. Overflow & round off error (Limit cycle oscillations)
Figure 3.7 shows that quantizing the difference equation coefficients results in a
non-uniform grid of realizable pole locations in the z plane. The grid is defined
by the intersection of vertical lines corresponding to quantization of 2λr and
concentric circles corresponding to quantization of −r2.
Figure 3.7.Realizable pole locations for the difference equation.
Figure 3.9.Rounding
3.7.3. Limit cycle oscillations-dead band effects
In recursive system, the product quantization may create periodic oscillations in
the output. Limit cycles require recursion to exist, and do not occur in non-
recursive FIR filters.
These oscillations are called limit cycles. If the system output enters a limit
cycles, it will continue to remain in limit cycles even when the input is made
zero. Hence these limit cycles are also called zero input limit cycles.
The system output can be brought out of limit cycle by applying an input of
large magnitude, which is sufficient to drive the system out of limit cycle.
Dead band: In a limit cycle the amplitudes of the output are confined to a range
of values, which is called dead band of the filter.
Q.5. Write the expression for Blackman and Bartlett window.[AKTU 2019-20]
Q9. A FIR filter has following symmetry in impulse response: h(n)= h(M-1-n) for
M Even. Derive its frequency response and show that it has linear phase.
[AKTU 2019-20]
Q10. Design a low pas discrete time filter with following specification:
Q12. Design a linear phase low pass digital filter if the desired frequency
response is giving by
Using the bartlett window and choosing a suitable length of filter length M, find
the impulse response and frequency response of designed filter. Determine the
system function and difference equation. Also draw thelinear phase structure of
designed filter.[AKTU 2020-21]
Q13. Design a low pass digital filter using Kaiser window satisfying the
specifications given below:[AKTU 2020-21]
Q14. Explain the following terms with respect of finite word length effect in
digital filters:[AKTU 2021-22]
(i) Coefficient quantization error,
(ii) Quantization noise – truncation and rounding
Q15. Describe the linear phase FIR sysyem, and for h(n)=[1/2, 1/3, 1/5, 1/3, 1/2]
realize H(z) of linear phase FIR system.[AKTU 2021-22]
Q1. What is the width of the main lobe of the frequency response of a
rectangular window of length M-1? [GATE 2003]
a) π/M
b) 2π/M
c) 4π/M
d) 8π/M
Answer:c
(Explanation: The width of the main lobe is measured to the first zero of W(ω)) is
4π/M.)
Q2. An FIR system is described as:
Answer: (c): one zero is inside and one is outside of unit circle
Answer:In the common case, the impulse response is finite because there is no
feedback in the FIR. A lack of feedback guarantees that the impulse response
will be finite. Therefore, the term “finite impulse response” is nearly synonymous
with “no feedback”.
However, if feedback is employed yet the impulse response is finite, the filter still
is a FIR. An example is the moving average filter, in which the Nth prior sample
is subtracted (fed back) each time a new sample comes in. This filter has a finite
impulse response even though it uses feedback: after N samples of an impulse,
the output will always be zero.