Professional Documents
Culture Documents
DSP Chapter-One
DSP Chapter-One
DSP Chapter-One
Chapter One
Introduction to Digital Signal Processing
Jemal H. (Msc)
May, 2023
What is Signal ?
• In digital signal processing;
Signal is any physical quantity that conveys an information and varies
with time, space, or any other independent variable.
• In the field of electrical engineering more generally, a signal is any time-
varying or spatial-varying quantity.
- Current, voltage, acoustic waveform, light intensity of camera...
• Often signals are represented mathematically as a function of independent
variables such as time (e.g. Speech signal), position (e.g. Image) etc.
• Signal processing is passing the signal through a system .
• Digital signal processing is the processing of a signal by a digital means.
• Dsp concerned with the representation of signals by sequence of numbers or
symbols and the processing of these sequence.
Analog Binary
Signal Sampling Quantization Coding bits
• Quantization is the process of converting analog signal with infinite precision to finite
precision so that the continuous amplitude signal is converted to digital data.
• Thus, an infinite number of possible levels are converted to a finite number of
conditions.
• Quantizer do the conversion of discrete time continuous valued signal x(n) into a
discrete-time discrete amplitude (n) signal.
• The notations and general rules for quantization are:
𝒙𝒎𝒂𝒙 𝒙𝒎𝒊𝒏 𝒎 𝒙 𝒙𝒎𝒊𝒏
𝐋 ∆
𝒒 𝒎𝒊𝒏
• The symbol is the step size of the quantizer or the ADC resolution.
• 𝒎𝒂𝒙 and 𝒎𝒊𝒏 are the maximum and minimum values of the analog input signal
• The symbol L denotes the number of quantization levels
• m is the number of bits used in ADC.
• indicates the quantization level and is an index respective to the binary code.
DSP- Lecture # 1 May, 2023 14/32
Quantization of Sinusoidal Signal
1) Assuming that a 3-bit ADC channel accepts analog input ranging from 0 to 5 volts,
determine the following:
a. Number of quantization levels c. Binary code produced by the ADC
b. Step size of the quantizer or resolution d. the quantization level when the
analog voltage is 3.2 volts;
• The D/A conversion process is employed to convert the digital signal into an analog
form after it has been digitally processed.
• The reason for such conversion is to generate an audio signal, to drive a loudspeaker
or to sound an alarm.
• This process begins by converting each digital code into an analog voltage that is
proportional in size to the number represented by the code.
DAC Conversion
• Sample and hold (S/H) takes a snapshot of the analogue signal every T sec and then
holds that constant value for T seconds until the next snapshot is obtained.
• The role of anti-imaging filter is to smooth out the steps in the D/A output thereby
removing the unwanted high frequency components and the requirements of the anti-
imaging filter are similar to those of the anti-aliasing filter.
• Remove the spectral images that exist in the sample-and-hold signal and obtain
the smoothed analog signal.
• Reconstruction of signal is carried out by combining a DA converter with a sample-
and-hold circuit, followed by a low pass reconstruction filter.
• ) * thus
Finally we get
𝒔 𝒄 𝒔
𝒔𝒌
DSP- Lecture # 1 May, 2023 19/32
Cont…
• The sampling theorem states that an analog signal can be perfectly recovered
as long as the sampling rate is at least twice as large as the highest-frequency
component of the analog signal to be sampled.
• If xc(t) is strictly band-limited, Xc (j ) = 0 for| | > N then xc(t) may be
uniquely recovered from its sample xc (nTs ) if
or
• The frequency is called the Nyquist frequency, and the minimum
sampling frequency, , is called the Nyquist rate.
• Thus ,in order to avoid aliasing, the operating frequency of the signal should be
in Nyquist interval [ , ]
• This is done by analog low-pass pre-filter known as an anti-aliasing
• The cutoff frequency of this pre-filter, ,is taken to be the Nyquist
frequency,
• Signal reconstruction deals with the recovery of analog signal from its sampled
signal version.
• The are two basic and simplied steps for the recovery of a signal.
• First, the digitally processed data are converted to the ideal impulse train
.
• Second, the analog reconstruction filter is applied to the ideally recovered
sampled signal to obtain the recovered analog signal.
• If the highest frequency contained in an analogue signal is and the
signal is sampled at a rate ≥ 2 then can be exactly recovered from
its sample values.
• If no aliasing occurs during the sampling process then we can apply a low pass
filter to extract from .
• An ideal reconstructor is supposed to extract from a sampled signal, all the frequency
components that lie within the Nyquist interval, [ , ], & removes all frequencies
outside the interval.
• This shows that an ideal reconstructor,[ ]; acts as an ideal low-pass filter with
cut-off frequency equal to the Nyquist frequency .
Biomedical:
• Spectrum analysis signals to identify various disorders
in heart, brain ultrasounds
• Analysis of biomedical signals, diagnosis,
patient monitoring, preventive health care, artificial organs.
Examples:
• Electrocardiogram (ECG) signal-provides doctor
with information about the condition of the patient heart.
• EEG is used to study normal and abnormal behaviour of the brain
• X-ray images are used to predict the bone fractures and tuberculosis.
DSP- Lecture # 1 May, 2023 28/32
Application cont…
Speech Processing
• Noise reduction-reducing background noise in the
sequence produced by a sensing device (Microphone).
• Speech recognition-differentiating between various speech sounds.
Communication Application
• Telephony- transmission of information in digital form
via telephones line, modem technology, mobile phones.
Image processing :
• Image enhancement
• Compression- reducing the redundancy in theimage data to optimize
transmission/storage
• Image compression and decompression to reduce memory requirement of
storage systems.
• Image compression and decompression for effective use of transmission
channels.
• Image recognition for security systems.
Multimedia Processing :
• Generation storage and transmission of sound, motion pictures video
conferencing.
• Pros of DSP
- Flexibility can be achieved with software implementations.
- Easy to duplicate.
- Digital information can be encrypted for security.
- Digital storage is cheap.
- Non-linear and time-varying operations are easier to implement.
- Sensitivity to electrical noise is minimal.
- Stable and robust, not varying with temperature.
• Cons of DSP
- Sampling causes loss of information.
- Limited speed of processors.
- Quantization and round-off errors.
- Limited to signals with relatively low bandwidths
DSP- Lecture # 1 May, 2023 31/32
The End