MSP - Lecture - 2 and 3 PDF
MSP - Lecture - 2 and 3 PDF
QUANTIZATION
DR SAMEER HASAN
Course assessment
2
Overview
• Digital Signal Processing System
• Analog to Digital Conversion
• Nyquist–Shannon 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
5
Analog to Digital Conversion
A/D conversion can be viewed as a three-step process
6
Analog to Digital Conversion
A/D conversion can be viewed as a three-step process
7
Analog to Digital Conversion
Sample & Hold (Sampler)
8
Analog to Digital Conversion
Sample & Hold (Sampler)
9
Analog to Digital Conversion
Sample & Hold (Sampler)
HW?
11
Analog to Digital Conversion
Sample & Hold (Sampler)
13
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.
14
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.
15
Nyquist–Shannon Sampling Theorem
16
Nyquist–Shannon Sampling Theorem
17
Nyquist–Shannon Sampling Theorem
Examples
18
Nyquist–Shannon Sampling Theorem
Example: For the following analog signal, find the Nyquist sampling
rate, also determine the digital signal frequency and the digital
signal
19
Nyquist–Shannon Sampling Theorem
20
Nyquist–Shannon Sampling Theorem
Exercise
21
Aliasing
22
Aliasing
How many hertz can the human eye see?
23
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.
24
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
25
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
26
Aliasing
27
Sampling Effect in Time Domain
28
Time & Frequency Domains
• There are two complementary signal descriptions.
• Signals seen as projected onto time or frequency domains.
29
Time & Frequency Domains
30
Frequency Range of Analog & Digital Signals
31
Sampling theorem in the frequency domain
32
Sampling theorem in the frequency domain
33
Sampling theorem in the frequency domain
Fourier series
Fourier Transform
Original spectrum
35
36
If applying a lowpass reconstruction filter to obtain exact reconstruction of the
original signal spectrum, the following condition must be satisfied:
Summary:
37
Example:
38
Review of Fourier series and FT
b- After the analog signal is sampled at the rate of 8000 Hz, the sampled signal spectrum
and its replicas centered at the frequencies ±kfs, each with the scaled amplitude being 2.5/T
41
42
The two-sided amplitude
spectrum for the sinusoid
44
Design of the Anti-Aliasing Filter
• Anti-aliasing filters are analog filters.
45
Design of the Anti-Aliasing Filter
• For a second-order Butterworth lowpass filter with the unit gain, the transfer
function and its magnitude frequency response are given by:
47
Practicality: Second-order unit-gain Sallen-Key
lowpass filter
48
49
Assuming a sampling rate of 8000 Hz is used, and the anti-aliasing filter is a second-order
Butterworth lowpass filter with a cutoff frequency of 3.4 kHz:
50
Assuming a sampling rate of 16,000 Hz is used, and the anti-aliasing filter is a second-order
Butterworth lowpass filter with a cutoff frequency of 3.4 kHz:
51