Professional Documents
Culture Documents
SS07 Sampling Theorem
SS07 Sampling Theorem
7. Sampling Theorem
Sampling is a process for converting an analog signal into a discrete-
time sequence, which can be digitally stored and processed. This is x t :
what is done in CD, DVD and Blue Ray recording, and it is also done t
to your voice signal for transmission over a radio channel by your Ts
digital cell Phone.
xn : 4 2 -3 3.5 -2 4.5 1.5
In practice, when we sample an analog signal x t , we capture the
4 4.5
value of the signal at every T s seconds to produce a discrete-time 3.5
xs t : 2 1.5
sequence, x n x nT s .
t
-2
-3
Now suppose we sample x t by multiplying it with an impulse train to form
x s t x t t nT s x nT s t nT s x n t nT s , (7.1)
n n n
im p u ls e s am p lin g
which is a continuous-time signal. It can be shown that the spectrum of x n is equal to the spectrum (or
Fourier transform) of x s t . We shall make use of this equivalence to examine the mechanism of signal
sampling and reconstruction in the continuous-time and -frequency domains, which leads to the Nyquist
sampling theorem. To aid our discussion on signal reconstruction, we begin by introducing the notion of
idealized filters.
CG2023 Signals & Systems Page 7-2
Electronic filters are analog circuits which perform the function of removing unwanted frequency
components from a signal and/or enhancing wanted ones.
For continuous-time LTI systems, the spectrum of the output signal is obtained by multiplying the
spectrum of the input signal with the frequency response of the system. Thus, filters are essentially
systems that exhibit some sort of frequency-selective behavior.
The band of frequencies passed by a filter is referred to as the pass-band, and the band of frequencies
rejected by a filter is called the stop-band.
An idealized filter, also known colloquially as a "brick-wall filter", is one that has full transmission in
the pass-band, and complete attenuation in the stop-band, with abrupt transitions. Two such filters are
described below.
Cu toff frequ en cy B an d w id th B 0 t
1 1
2B 2B
CG2023 Signals & Systems Page 7-3
Ideal filters can be realized mathematically by multiplication in the frequency domain or, equivalently,
convolution in the time domain. Real-time filters can only approximate this ideal since the filter is non-
causal and has an infinite delay. One such real-time filter is the Butterworth filter, which is discussed in
Chapter 8.
Ideal filters are commonly found in conceptual demonstrations or proofs, such as the sampling theorem
where ideal LPF and BPF are used to demonstrate the perfect reconstruction of the original analog signal
from its sampled form.
CG2023 Signals & Systems Page 7-4
Ts t Ts f
Ideal LPF Ideal LPF
x t x̂ t X f H f X̂ f
x s t h t
Xs f
Sampling Sampling frequency f s 1 2 f m
Ts
t x t X f
0 fm 0 fm f
1 fs
T s t T s f
T s 0 Ts t fs 0 fs f
T s 0 Ts t xs t Xs f
fs fm 0 fm fs f
CG2023 Signals & Systems Page 7-5
Reconstruction
T s 0 Ts t xs t Xs f
fs fm 0 fm fs f
2 fm K
K
h t
H f
0 t fm 0 fm f
1 2 f m 1 2 fm
t x̂ t X̂ f
0 fm 0 fm f
LPF
Sampling frequency 1 2f
f s m
Ts
Spectral images overlap. This is called
frequency aliasing.
fm 0 fm f
Perfect reconstruction is not possible.
fs fs
1 2f LPF
Sampling frequency f s m
Ts
Gaps appear between spectral images
due to oversampling.
Perfect reconstruction is possible. fs fm 0 fm fs f
Relaxes LPF design. fs 2 fs 2
Example 7-1:
A signal x t s in c 2 2 t is sampled at 8 Hz to produce the sampled signal x s t . Sketch
the spectra of x t and x s t . Can x t be perfectly reconstructed from x s t using an
ideal low-pass filter? If “yes”, specify the filter. What is the Nyquist sampling frequency
for x t ?
X f
0.5
-2 0 2 f Hz
Xs f
4
-16 -8 -6 -2 0 2 6 8 16 f Hz
B 0 B f Hz
Consider the signal spectra X1 ( f ) and X2( f ) . What are their Nyquist sampling frequencies?
Since both their highest nonzero frequency is at 11 Hz, The Nyquist sampling frequency for them are both
22 Hz. Is that the lowest sampling frequency allowing perfect reconstruction?
X1 ( f )
-7 -9 -11 0 7 9 11
f / Hz
X2( f )
-7 -9 -11 0 7 9 11
f / Hz
In the analysis of sampling process, the sampled signal spectrum consists of multiple copies of the original
spectrum and they are separated by one sampling frequency f s . In order to avoid aliasing in reconstruction,
sampling frequency f s should be selected such that there is no overlap among all those spectrum copies.
CG2023 Signals & Systems Page 7-11
The spectrum X1 ( f ) has two parts which are not symmetric and with a band gap in between. If the
spectrum of X1 ( f ) can be duplicated as the figure below, it can be reconstructed by going through an (ideal)
bandpass filter with cut-off frequencies fl 7 Hz and fu 11 Hz. (What is the gain for this ideal bandpass
filter?)
X 1s ( f ) 12 Hz
….
…. 12A
-11 -9 -7 -5 -3 -1 0 1 3 5 7 9 11
f / Hz
12 Hz
The corresponding sampling frequency is 12 Hz which is lower than Nyquist sampling frequency 22 Hz.
The same sampling and reconstruction process can be applied to sample signal X 2 ( f ) . Is it possible to find
an even lower sampling frequency for X 2 ( f ) since it is symmetric? If their images are fully overlapped after
sampling, their magnitude accumulates proportionally which leads to possible lower sampling frequencies.
Such spectrum extension X 2s ( f ) with fully overlapped images is shown in the figure next page where the
sampling frequency is selected as f s 4.5 Hz. To reconstruct the X 2 ( f ) from X 2s ( f ) , we can use an ideal
X 2s ( f )
…. 9A ….
In general, if x t is a band-limited bandpass signal, it is possible to sample x t below Nyquist rate and
yet achieve perfect reconstruction using a bandpass reconstruction filter.
Suppose the spectrum X f of x t is as shown below:
B B
fc 0 fc f
Is it possible to sample a bandpass signal below Nyquist rate and yet achieve perfect signal
reconstruction? The answer is YES, if f c B .
There are two possible scenarios.
2 fc 2 f
(a) Overlapping spectral images : fs ; k 1, 2, , c (7.3a)
k B
Assumption: The +ve and -ve frequency bands
are symmetric about f c and f c , respectively
2 fc B 2f B 2 f B
(b) Un-aliased spectral images : fs c ; k 1, 2, , c (7.3b)
k 1 k 2B
where denotes integer floor.
CG2023 Signals & Systems Page 7-14
Solution:
Nyquist rate: 24 4 2 56 Hz .
From (7.3b): 2 24 8 f s 2 24 8 ; k 1, 2, , 2 24 8
k 1 k 2 8
56 f 40 ; k 1, 2
k 1 s
k
wit h k 1 wit h k 2
Possible sampling frequencies : 28 f s 40 or 18.67 f s 20 Hz
Lowest sampling frequency : f s 18.67 Hz
Remarks:
When a bandpass signal is sampled at Nyquist rate, an ideal lowpass filter may also be used to
reconstruct the signal from its samples. However, this will require higher sampling rate and also lead to
a significant reduction in the signal-to-noise ratio at the filter output, and is thus not usually practised.
-24 0 24 f
Spectrum of ORIGINAL SIGNAL
Ideal LPF
Ideal BPF