Lecture 2
Lecture 2
Lecture-2
Dr Muhammad Arif
[email protected]
https://sites.google.com/site/mdotarif/teaching/dsip
Overview
Digital Signal Processing System
Analog to Digital Conversion
NyquistShannon Sampling Theorem
Aliasing
Sampling Effect in Time Domain
Sampling Effect in Frequency Domain
Anti Aliasing Filter
Under-sampling
Sampling of Band Limited Signals
Over-sampling
Digital to Analog Conversion
Analog vs. Digital Signal Processing
It consists of
an analog filter called (anti-imaging) filter,
an analog-to-digital conversion (ADC) unit,
a digital signal (DS) processor,
a digital-to-analog conversion (DAC) unit,
and an analog filter called reconstruction (anti-image) filter.
4
Typical Digital Signal Processing System
5
A/D & D/A Conversion
6
Analog to Digital (A/D) Conversion
7
Analog to Digital Conversion
A/D conversion can be viewed as a three step process
8
Analog to Digital Conversion
A/D conversion can be viewed as a three step process
9
Analog to Digital Conversion
Sample & Hold (Sampler)
10
Analog to Digital Conversion
Sample & Hold (Sampler)
11
Analog to Digital Conversion
Sample & Hold (Sampler)
14
Analog to Digital Conversion
Sample & Hold (Sampler)
Figure below shows an analog (continuous-time) signal (solid
line) defined at every point over the time axis (horizontal line)
and amplitude axis (vertical line).
Hence, the analog signal contains an infinite number of points.
15
Analog to Digital Conversion
Sample & Hold (Sampler)
Each sample maintains its voltage level during the sampling
interval to give the ADC enough time to convert it.
This process is called sample and hold.
16
NyquistShannon Sampling Theorem
17
NyquistShannon Sampling Theorem
18
NyquistShannon Sampling Theorem
Examples
19
NyquistShannon Sampling Theorem
Example: For the following analog signal, find the Nyquist sampling
rate, also determine the digital signal frequency and the digital
signal
20
NyquistShannon Sampling Theorem
21
NyquistShannon Sampling Theorem
Exercise
22
Aliasing
23
Aliasing
How many hertz can the human eye see?
24
Aliasing
When the minimum sampling rate is not respected, distortion
called aliasing occurs.
The low pass filter, called the anti-aliasing filter, removes all
frequencies above half the selected sampling rate.
25
Aliasing
Figure illustrates sampling a 40 Hz sinusoid
The sampling interval between sample points is T = 0.01 second,
and the sampling rate is thus fs = 100 Hz.
The sampling theorem condition is satisfied
26
Aliasing
Figure illustrates sampling a 90 Hz sinusoid
The sampling interval between sample points is T = 0.01 second,
and the sampling rate is thus fs = 100 Hz.
The sampling theorem condition is not satisfied
27
Aliasing
28
Sampling Effect in Time Domain
29
Time & Frequency Domains
There are two complementary signal descriptions.
Signals seen as projected onto time or frequency domains.
30
Time & Frequency Domains
31
Signal & Spectrum
32
Frequency Range of Analog & Digital Signals
33
Sampling Effect in Frequency Domain
34
Sampling Effect in Frequency Domain
35
Sampling Effect in Frequency Domain
36
Anti Aliasing Filter
A signal with no frequency component above a certain
maximum frequency is known as a band-limited signal.
38
Under Sampling
If the sampling rate is lower than the required Nyquist rate, that
is fS < 2W, it is called under sampling.
39
Sampling of Band Limited Signals
Fs BW
40
Sampling of Band Limited Signals
While this under-sampling is normally avoided, it can be
exploited.
For example, in the case of band limited signals all of the
important signal characteristics can be deduced from the copy
of the spectrum that appears in the baseband through
sampling.
Depending on the relationship between the signal frequencies
and the sampling rate, spectral inversion may cause the shape
of the spectrum in the baseband to be inverted from the true
spectrum of the signal.
41
Sampling of Band Limited Signals
43
Over Sampling
In the example below, 2x oversampling means that a low order analog filter is
adequate to keep important signal information intact after sampling.
After sampling, higher order digital filter can be used to extract the information.
44
Over Sampling
The ideal filter has a flat pass-band and the cut-off is very sharp,
since the cut-off frequency of this filter is half of that of the
sampling frequency, the resulting replicated spectrum of the
sampled signal do not overlap each other. Thus no aliasing
occurs.
Practical low-pass filters cannot achieve the ideal
characteristics.
Firstly, this would mean that we have to sample the filtered
signals at a rate that is higher than the Nyquist rate to
compensate for the transition band of the filter
45
Spectra of Sampled signals
46
Sampling Low Pass Signals
47
Exercise
Exercise-1: If the 20 kHz signal is under-sampled at 30 kHz, find the aliased
frequency of the signal.
48
Exercise
Exercise-4: Humans can hear sounds at frequencies between 0 and 20 kHz.
What minimum sampling rate should be chosen to permit perfect recovery
from samples?
49
Analog to Digital Conversion
Quantizer
53
Analog to Digital Conversion
4-bit Quantizer
54
Quantization Error
The error caused by representing a continuous-valued signal
(infinite set) by a finite set of discrete-valued levels.
56
Analog to Digital Conversion
Lets consider the signal which is to be quantized.
58
Analog to Digital Conversion
Quantization of unipolar data (maximum error = full step)
59
Analog to Digital Conversion
Quantization of unipolar data (maximum error = half step)
60
Analog to Digital Conversion
Example: Analog pressures are recorded using a pressure transducer as
voltages between 0 and 3 V. The signal must be quantized using a 3-bit
digital code. Indicate how the analog voltages will be covered to digital
values.
61
Analog to Digital Conversion
Quantization of bipolar data (maximum error = half step)
62
Three-bit A/D Conversion
63
Dynamic Range
Quantization errors can be determined by the quantization
step.
Quantization errors can be reduced by increasing the number
of bits used to represent each sample.
Unfortunately these errors can not be entirely eliminated and
their combined effect is called quantization noise.
Mathematically,
where
Px= Power of the signal x (before quantization)
Pq= Power of the error signal xq
65
Analog to Digital Conversion
66
2 bit Flash ADC
67
Digital-to-Analog (D/A) Conversion
68
Digital-to-Analog (D/A) Conversion
70
Digital-to-Analog (D/A) Conversion
Three bit D/A Conversion
71
Comparing Signals in the A/D & D/A Chain
72
Comparing Signals in the A/D & D/A Chain
73
Summary
74
Summary
75