Lecture+10-12 (Sampling and Reconstruction) PDF
Lecture+10-12 (Sampling and Reconstruction) PDF
Analog Discrete-time
signal sequence
Motivation (contd.)
• The problem is how to choose the sampling
interval Ts so that the original analog signal
can be reconstructed.
Analog Discrete-time
signal sequence
Sampling
• The sampler takes a snapshot of the x(t) for
every Ts
Analog Discrete-time
signal sequence
Sampling of a sinusoid
• Given an analog sinusoid
x(t ) A cos(t )
• The discrete sequence after sampling is
x(t ) A cos(t )
w(t ) A cos(2 ( f 0 lf s )t )
• Sampling of above signals at the rate of fs will yield
the same discrete sequence
Aliasing and Folding
The frequency is f 0 lf s
Aliasing and Folding
The frequency is f 0 lf
Aliasing and Folding
• Hence x[n] might be the samples of the
following signals:
– A sinusoid with the frequency of f 0
– Sinusoids with frequencies f 0 lf
– Sinusoids with frequencies f 0 lf
• However, only one of the above is the
original signal
Aliasing and Folding
• Aliasing frequencies
f 0 lf f 0 lf
500Hz
Aliasing and Folding
• The way for signal reconstruction is to take
the sinusoid with the frequency less than half
of the sampling rate.
fs
2
• Wrong decision may be made if the following frequencies are within
the above range.
f 0 lf f 0 lf
Aliasing and Folding
• If we consider the frequency component
within the following range
1
[0, f s )
2
• All aliasing components are outside the
range, and hence correct signal
reconstruction is possible
Aliasing and Folding
However, if f s 2 f0 ( f s / 2) f 0
then
f 0 lf s
may also fall within the range [0,fs/2). So the signal restored will not
be the true original one.
Aliasing and Folding
• The way for determining the occurring of aliasing to
see if the following aliasing frequencies
f 0 lf s
( f 0 / f s ) l 0.5
Spectrum View of Sampling:
Over-sampling
• Example
x(t ) A cos(2 (100)t )
sampled at rate of 1000Hz >>100Hz
500Hz
Spectrum View of Sampling:
Over-sampling
• In the cases of over-sampling, the aliasing
frequencies are outside the range [0,0.5]
(normalized frequency) or [0,0.5fs].
• There is no overlap between the aliasing
frequencies and f0 . Hence it is possible to
reconstruct the original signal
Spectrum View of Sampling:
Under-sampling (fs<f0)
• We still consider a sinusoid
x(t ) A cos(2 (100)t )
sampled at rate of 80Hz
100 80l or
1.25 l
Spectrum View of Sampling:
Under-sampling (fs<faliasing
0)
20Hz
Spectrum View of Sampling:
Under-sampling (fs=f0)
• We still consider the same sinusoid
x(t ) A cos(2 (100)t )
sampled at rate of 100Hz
x[n] A cos(2n )
the aliasing frequencies are
100 100l or
1 l
Spectrum View of Sampling:
Under-sampling (fs=faliasing
0)
Spectrum View of Sampling:
Under-sampling (f0 <fs<2f0)
• We still consider a sinusoid
x(t ) A cos(2 (100)t )
sampled at rate of 125Hz
100 125l or
0.8 l
Spectrum View of Sampling:
Under-sampling (fs<faliasing
0)
25Hz
Signal Reconstruction
• In DSP, reconstruction usually means the
determination of an original continuous signal
from a sequence of equally spaced samples
(discrete time signal).
Interpolation
• In the mathematical field of numerical
analysis, interpolation is a method of
constructing new data points within the range
of a discrete set of known data points.
• In DSP, the term interpolation refers to the
process of converting a sampled digital signal
(such as a sampled audio signal) to a higher
sampling rate (Upsampling) using various
digital filtering techniques (e.g., convolution
with a frequency-limited impulse signal)
Interpolation (contd.)
Discrete-to-Continuous Conversion
y(n) y(t)
D-to-C
y (t ) y[n] p(t nT )
n
s
• Interpolation pulses
Discrete-to-Continuous Conversion
• Zero-Order Hold Interpolation
1 1
1 Ts t Ts
p (t ) 2 2
0 otherwise
1 Rectangle pulse
t
1 1
Ts Ts
2 2
Spectrum of Product of sinusoids
Discrete-to-Continuous Conversion
• Linear Interpolation
t
1 Ts t Ts
p(t ) Ts
0 otherwise
Triangle pulse
1
t
Ts Ts
Spectrum of Product of sinusoids
Discrete-to-Continuous Conversion
• Parabolic Interpolation
Duration 4Ts
sin t
Ts
p(t ) sin c( t ) for t
Ts
t
Ts
Discrete-to-Continuous Conversion
Discrete-to-Continuous Conversion
y (t ) y[n] p(t nT )
n
s
1
fs
2
Ideal C-to-D Converter
x[n] x(nTs )
FOURIER
TRANSFORM
of xs(t) ???
Periodic Impulse Train
2
p (t ) (t nTs ) ak e jk s t
s
Ts
n k
Ts / 2
1 jk s t 1 Fourier Series
ak
Ts ( t )e dt
Ts
Ts / 2
FT of Impulse Train
2
p(t ) (t nTs ) P( j ) ( k s )
n k Ts
2
s
Ts
Impulse Train Sampling
xs (t) x(t) (t nTs ) x(t) (t nTs )
n n
xs (t) x(nTs ) (t nTs )
n
Illustration of Sampling
x(t)
t
xs ( t ) x(nTs ) (t nTs )
n
x[n] x(nTs )
n
Sampling: Freq. Domain
ak e jk s t EXPECT
FREQUENCY
k SHIFTING !!!
p (t ) (t nTs ) ak e jk s t
n k
Frequency-Domain Analysis
xs (t) x(t) (t nTs ) x(nTs ) (t nTs )
n n
1 jk st 1 jk st
xs (t) x(t) e x(t)e
Ts
k Ts k
1
Xs ( j ) X( j( k s ))
Ts
k 2
s
Ts
Frequency-Domain Representation of
Sampling
“Typical”
bandlimited signal
1
Xs ( j ) X( j( k s ))
Ts
k
Aliasing Distortion
“Typical”
bandlimited signal
xs (t) x(nTs ) (t nTs )
n
1
Xs ( j ) X( j( k s ))
Ts
k
Xr ( j ) Hr ( j )Xs ( j )
Reconstruction: Frequency-Domain
Ts
Ts
Hr ( j )
0
Ts
sin T t hr (0) 1
hr (t)
s
Ts
t hr (nTs ) 0, n 1, 2,
Signal Reconstruction
xr (t) hr (t) xs (t) hr (t) x(nTs ) (t nTs )
n
xr (t) x(nTs )hr (t nTs )
n
sin T (t nTs )
xr (t) x(nTs )
s
n Ts
(t nTs )
Ideal bandlimited interpolation formula
Shannon Sampling Theorem
• “SINC” Interpolation is the ideal
– PERFECT RECONSTRUCTION
– of BANDLIMITED SIGNALS
Reconstruction in Time-Domain
Ideal C-to-D and D-to-C
sin T (t nTs )
xr (t) x[n]
s
x[n] x(nTs ) n Ts
(t nTs )
Ideal Sampler Ideal bandlimited interpolator
1 Xr ( j ) Hr ( j )Xs ( j )
Xs ( j ) X( j( k s ))
Ts
k
Summary and Exercise
Summary
• Sampling
• Reconstruction
Next
• System Analysis
Exercise
Solve examples # 4.2, 4.3