1
1
College of Engineering
Electrical Engineering Department
4th Class
2022-2023
Digital Signal Processing / 4th Class/ 2022-2023
Topics Covered
Introduction to Digital Signal Processing
Signal Sampling and Reconstructions: Sampling of Continuous Signal,
Signal Reconstruction, Aliasing Noise Level
Digital Signals and Systems: Classification of Systems, Linear System,
Time-Invariant System, Causal System, Stability
Digital Convolution: Graphical Method, Table Lookup Method, Matrix by
Vector Method, Linear Convolution and Circular Convolution,
Deconvolution
Frequency Response and Sinusoidal Steady State Response
Z-Transform (Review), Discrete Fourier Transform, Fast Fourier
Transform
Fast Fourier Transform (FFT) Algorithms
Analog Filter Design: Butterworth Filters , Chebyshev Filters.
Digital Filter Design: Infinite Impulse Response (IIR) filter , Finite Impulse
Response (FIR) filter
Realization of Digital Filters :Realization of IIR Filters , Realization of FIR
Filters
Theoretical: 2 Hrs/Wk
Total hours (60 Theoretical)
Suggested References:
1) "Digital Signal Processing Principles, Algorithms, and Applications", John G. Proakis,
Dimitris G. Manolakis, Third Edition (1996).
2) "Applied Digital Signal Processing Theory and Practice", Dimitris G. Manolakis, Vinay K.
Ingle, First Edition (2011).
Digital Signal Processing / 4th Class/ 2022-2023
Continuous in time.
Amplitude may take on any value in the continuous range of (-∞,∞).
Analog Processing
Differentiation, Integration, Filtering, Amplification.
Differential Equations
Implemented via passive or active electronic circuitry.
B. Discrete-Time signals:
Discrete signals are defined only at certain specific value of time as shown in Fig. 2.
.
Fig. 2. Discrete signal
1
Digital Signal Processing / 4th Class/ 2022-2023
C. Digital Signal:
Digital signal is the signal that takes on values from a finite set of possible values as
shown in Fig. 3.
In contrast, the infinite length signal is nonzero over all real numbers.
2
Digital Signal Processing / 4th Class/ 2022-2023
Where,
ℎ(𝑡): The System Impulse Response
H(𝑠): The System Transfer Function
H(Ω): The System Frequency Response
Analogue signal processing is achieved by using analogue components such as:
Resistors.
Capacitors.
Inductors.
3
Digital Signal Processing / 4th Class/ 2022-2023
As shown in the diagram, the analog input signal, which is continuous in time and
amplitude, is generally encountered in our real life. Examples of such analog signals include
current, voltage, temperature, pressure, and light intensity. Usually a transducer (sensor) is
used to convert the non-electrical signal to the analog electrical signal (voltage). This analog
signal is fed to an analog filter, which is applied to limit the frequency range of analog signals
prior to the sampling process. The purpose of filtering is to significantly attenuate aliasing
distortion.
The band-limited signal at the output of the analog filter is then sampled and converted
via the ADC unit into the digital signal, which is discrete both in time and in amplitude.
The DSP then accepts the digital signal and processes the digital data according to
DSP rules such as lowpass, highpass, and bandpass digital filtering, or other algorithms for
different applications. Notice that the DSP unit is a special type of digital computer and can be
a general-purpose digital computer, a microprocessor, or an advanced microcontroller;
furthermore, DSP rules can be implemented using software in general. With the DSP and
4
Digital Signal Processing / 4th Class/ 2022-2023
corresponding software, a processed digital output signal is generated. This signal behaves in a
manner according to the specific algorithm used.
The DAC unit converts the processed digital signal to an analog output signal. The
signal is continuous in time and discrete in amplitude (usually a sample-and-hold signal).
The final stage in Fig. 7 is often another analog filter designated as a function to
smooth the DAC output voltage levels back to the analog signal (i.e. to reconstruct the analog
signal from the DAC output).
In contrast to the above, a direct analog processing of analog signals is much simpler
since it involves only a signal processor. It is therefore natural to ask why we go to use the
DSP systems. There are several good reasons:
1- Rapid advances in integrated circuit design and manufacture are producing more
powerful DSP systems on a single chip at decreasing size and cost.
3- Good processing techniques are available for digital signals, such as Data compression
(or source coding), Error Correction (or channel coding), Equalization and Security.
4- Easy to mix signals and data using digital techniques known as Time Division
Multiplexing (TDM).
The list below by no means covers all DSP applications. Many more areas are
increasingly being explored by engineers and scientists. Applications of DSP techniques will
continue to have profound impacts and improve our lives.
1- Digital audio and speech: Digital audio coding such as CD players, digital crossover,
digital audio equalizers, digital stereo and surround sound, noise reduction systems,
speech coding, data compression and encryption, speech synthesis and speech
recognition.
5- Medical imaging equipment: ECG analyzers, cardiac monitoring, medical imaging and
image recognition, digital x-rays, image processing, magnetic resonance, tomography
and electrocardiogram.
6- Multimedia: Internet phones, audio, and video, hard disk drive electronics, digital
pictures, digital cameras, DVD, JPEG, Movie special effects, video conferencing, text-
to-voice and voice-to-text technologies.
6
Digital Signal Processing / 4th Class/ 2022-2023
Fig. 9. Display of analog (continuous) signal and digital samples versus the sampling time instants
7
Digital Signal Processing / 4th Class/ 2022-2023
For a given sampling interval T, which is defined as the time span between two sample
points, the sampling rate or sampling frequency is the rate at which the signal is sampled,
expressed as the number of samples per second (reciprocal of the sampling interval).
f s 2 f max
Where, fmax is the maximum-frequency component of the analog signal to be sampled.
8
Digital Signal Processing / 4th Class/ 2022-2023
Ts is called the Nyquist interval: It is the longest time interval that can be used for sampling a
band limited signal and still allow reconstruction of the signal at the receiver without
distortion.
Example: Find the Nyquist frequency and Nyquist interval of the following signals:
a) speech signal containing frequencies up to 4 kHz
b) audio signal possessing frequencies up to 20 kHz
Solution:
a) to sample a speech signal containing frequencies up to 4 kHz, the Nyquist rate
(minimum sampling rate fs) is chosen to be at least 8 kHz, or 8,000 samples per
second (fs=2fm) and Nyquist interval (maximum time interval Ts) is 1/fs = 1/8 kHz =
0.125 ms.
b) to sample an audio signal possessing frequencies up to 20 kHz, at least 40,000 samples
per second, or 40 kHz, of the audio signal are required and Nyquist interval
(maximum time interval Ts) is 1/fs = 1/40 kHz = 25 μs.
From the spectral analysis shown in Fig. 12, it is clear that the sampled signal spectrum
9
Digital Signal Processing / 4th Class/ 2022-2023
consists of the scaled baseband spectrum centered at the origin and its replicas centered at the
frequencies of ± nfs (± n/Ts) (multiples of the sampling rate) for each of n = 1,2,3, . . .
In Fig. 12, three possible sketches are classified. Given the original signal spectrum
X(f) plotted in Fig. 12(a), the sampled signal spectrum is plotted in Fig. 12(b), where, the
replicas have separations between them. In Fig. 12(c), the baseband spectrum and its replicas
are just connected. In Fig. 12(d), the original spectrum and its replicas are overlapped; that is,
there are many overlapping portions in the sampled signal spectrum.
If applying a lowpass reconstruction filter to obtain exact reconstruction of the original signal
spectrum,
As long as fs > 2B, no overlap of repeated replicas X(f - n/Ts) will occur in Xs(f). Hence,
the signal at the output of the filter will be the original signal spectrum without
distortion as shown in Fig. 13.
If the waveform is undersampled (i.e. fs < 2B), then there will be spectral overlap in the
sampled signal. Hence, the signal at the output of the filter will be different from the
original signal spectrum as shown in Fig. 14. [This is the outcome of aliasing].
This implies that whenever the sampling condition is not met, an irreversible overlap of
10
Digital Signal Processing / 4th Class/ 2022-2023
Example:
Suppose that an analog signal is given as
x(t) = 5 cos (2π.1000t), for t > 0, and is sampled at the rate of 8,000 Hz.
a. Sketch the spectrum for the original signal.
b. Sketch the spectrum for the sampled signal from 0 to 20 kHz.
Sol.
a. Since the analog signal is sinusoid with a peak value of 5 and frequency of 1,000 Hz, we
can write the sine wave using Euler’s identity:
11
Digital Signal Processing / 4th Class/ 2022-2023
b. After the analog signal is sampled at the rate of 8,000 Hz, the sampled signal spectrum and
its replicas centered at the frequencies ±nfs, each with the scaled amplitude being 2.5/T, are as
shown in Figure below.
Notice that the spectrum of the sampled signal contains the images of the original spectrum;
that the images repeat at multiples of the sampling frequency fs (for our example, 8 kHz, 16
kHz, 24 kHz, . . . ); and that all images must be removed, since they convey no additional
information.
Signal reconstruction
Two simplified steps are involved, as described in Fig. 15. First, the digitally
processed data y(n) are converted to the ideal impulse train ys(t), in which each impulse has its
amplitude proportional to digital output y(n), and two consecutive impulses are separated by a
sampling period of T; second, the analog reconstruction filter is applied to the ideally
recovered sampled signal ys(t) to obtain the recovered analog signal.
The following three cases are listed for recovery of the original signal spectrum:
12
Digital Signal Processing / 4th Class/ 2022-2023
Case 1: fs = 2fmax: Nyquist frequency is equal to the maximum frequency of the analog signal
x(t), an ideal lowpass reconstruction filter is required to recover the analog signal spectrum.
This is an impractical case.
Case 2: fs > 2fmax: In this case, there is a separation between the highest frequency edge of the
baseband spectrum and the lower edge of the first replica. Therefore, a practical lowpass
reconstruction (anti-image) filter can be designed to reject all the images and achieve the
original signal spectrum.
Case 3: fs < 2fmax: This is aliasing, where the recovered baseband spectrum suffers spectral
distortion, that is, contains an aliasing noise spectrum; in time domain, the recovered analog
signal may consist of the aliasing noise frequency or frequencies. Hence, the recovered analog
signal is incurably distorted.
x(t) = 5cos(2π.2000t) +3cos(2π.3000t) for t ≥ 0, and it is sampled at the rate of 8,000 Hz,
The two-sided amplitude spectrum for the sinusoids (sampled signal) is displayed in Fig.
b. Based on the spectrum in (a), the sampling theorem condition is satisfied; hence, we can
recover the original spectrum using a reconstruction lowpass filter. The recovered spectrum
is shown in the following Fig.
13
Digital Signal Processing / 4th Class/ 2022-2023
2n
f
1 a
fc
Aliasing noise level % = for 0 ≤ f ≤ fc
2n
f fa
1 s
fc
Where, n is the filter order, fa is the aliasing frequency, fc is the cutoff frequency, and fs is the
sampling frequency.
Example: In a DSP system with anti-aliasing filter, if a sampling rate of 8,000 Hz is used and the
anti-aliasing filter is a second-order Butterworth lowpass filter with a cutoff frequency of 3.4
kHz,
a. Determine the percentage of aliasing level at the cutoff frequency.
b. Determine the percentage of aliasing level at the frequency of 1,000 Hz.
Sol.
14