EEE543 DCS - Lecture 2 - Part I
EEE543 DCS - Lecture 2 - Part I
Pulse Code
Modulation – Part I
1
OUTLINE
Sampling
Quantization
2
SAMPLING
Consider a band-limited signal g t with bandwidth 𝐵 spectrum
defined as
𝐺 𝑓 = 0, 𝑓 > 𝐵
If we sample this signal at a uniform rate 𝑅 > 2𝐵 then the signal can
be exactly reconstructed (without any error) from the discrete
samples
The minimum frequency for successful recovery is:
𝑓𝑠 ≥ 2𝐵
The sampling rate 𝑓𝑠 Hz means we take 𝑓𝑠 uniform samples per
second at an interval 𝑇𝑠 .
1
The parameter 𝑇𝑠 is called the sampling period and the reciprocal 𝑇
𝑠
denoted 𝑓𝑠 is called the sampling rate or frequency
We obtain a sequence of samples by multiplying 𝑔(𝑡) by an impulse
train 𝛿𝑇𝑠 𝑡 .
The result is a sequence {g 𝑛𝑇𝑠 }, (denoted gത(𝑡) in Figure 2.1) where
𝑛 is an integer, which uniquely define g 𝑡 . 3
SAMPLING CONT’D
The figure below show the original signal and the sampled version
of the signal together with their Fourier transforms
Figure 2.1
4
SAMPLING THEOREM CONT’D
Let the samples of the signal g 𝑡 be denoted by gത 𝑡 and represented
as follows
∞
ℎ 𝑡 = 𝑠𝑖𝑛𝑐 2𝜋𝐵𝑡
7
SIGNAL RECONSTRUCTION CONT’D
When the sampled signal gത t is applied to the filter defined above
the output is g t
The figure below shows the properties of the filter and the
reconstructed signal
8
Figure 2.2
SIGNAL RECONSTRUCTION CONT’D
The k-th sample of the signal gത t = g 𝑘𝑇𝑠 . 𝛿 𝑡 − 𝑘𝑇𝑠 , the output of
the filter is: g 𝑘𝑇𝑠 . ℎ 𝑡 − 𝑘𝑇𝑠 .
The filter output signal g 𝑡 in Figure 2.2 c) given by
∞
g t = g 𝑘𝑇𝑠 . ℎ 𝑡 − 𝑘𝑇𝑠
𝑘=−∞
∞
9
EXAMPLE
10
PRACTICAL SIGNAL RECONSTRUCTION
The idea reconstruction low-pass filter ℎ 𝑡 is practically
unrealizable, This can be equivalently seen from the infinitely long
nature of the sinc reconstruction pulse
For practical application of signal reconstruction, we need to
implement realizable signal reconstruction systems from the
uniform signal samples.
A solution would be a reconstruction pulse 𝑝 𝑡 which must be easy
to generate which is shown in the figure below:
11
Figure 2.3
PRACTICAL SIGNAL RECONSTRUCTION
We must first use the nonideal interpolation pulse p(t) to analyze
the accuracy of the reconstructed signal. First we define the signal
reconstructed using p(t) as
12
PRACTICAL SIGNAL RECONSTRUCTION
We note that that the reconstructed signal g(t) using pulse p(t)
consists of multiple replicas of G(f) shifted to the frequency center
nfs and filtered by P(f)
To fully recover g(t), further filtering of g
𝑡 is required using filters
referred to as equalizers
Let the equalizer transfer function be defined as E(f) distortionless
reconstruction requires that
Where
14
Figure 2.5
PRACTICAL SIGNAL RECONSTRUCTION
An example of p(t) is the simple interpolating pulse generator that
generates short (zero-order hold) pulses given by:
15
PRACTICAL SIGNAL RECONSTRUCTION
The equalizer frequency response should satisfy
16
PRACTICAL SIGNAL RECONSTRUCTION
This means that the equalizer E(f) does not need to achieve infinite
gain. Otherwise the equalizer would become unrealizable – this
requires that
1
𝑇𝑝 <
𝐵
The short rectangular pulses make very little distortions and the
design of the equalizer either unnecessary or very simple
We can use the first-order-hold filter, which results in a linear
interpolation instead of the staircase interpolation
17
PRACTICAL ISSUES WITH SIGNAL SAMPLING & RECONSTRUCTION
If a signal is sampled at the Nyquist rate fs = 2B Hz, the spectrum
𝐺ҧ 𝑓 consists of repetitions of G(f) without any gap between successive
cycles,
To recover g 𝑡 from gത 𝑡 , we need to pass the sampled signal gത 𝑡
through an ideal low-pass filter (dotted lines)
Figure 2.6
Such a filter is unrealizable in practice; It can be closely approximated
only with infinite time delay in the response.
This means that we can recover the signal g(t) from its samples with
infinite time delay. 18
PRACTICAL ISSUES WITH SIGNAL SAMPLING & RECONSTRUCTION
Solution to the above problem is to sample the signal at a rate
higher than the Nyquist rate gത 𝑓𝑠 > 2𝐵 𝑜𝑟 𝜔𝑠 > 4𝜋𝐵 and the output
is as follows
Figure 2.7
In this case a low-pass filter with a gradual cutoff characteristic can
be employed to recover 𝐺 𝑓
The filter gain is required to be zero beyond the first cycle, also such
a filter is unrealizable it can only be better approximated with a
smaller time delay.
Note: Even if the sampling rate is higher than the Nyquist rate, it is
19
impossible in practice to recover a band-limited signal g(t) exactly
from its samples
PRACTICAL ISSUES WITH SIGNAL SAMPLING & RECONSTRUCTION
The premise of the sampling theorem for signal reconstruction from
its samples was that the signal g(t) is band-limited, at most: All
practical signals are time-limited; that is, they are of finite duration
or width
Practically, this is not the case: A time-limited signal cannot be
band-limited, and vice versa (but a signal can be simultaneously
non-time-limited and non-band-limited).
a) Spectrum of a
practical signal g(t)
b) Spectrum of
sampled g (t)
c) Reconstructed
signal spectrum
21
Figure 2.8
PRACTICAL ISSUES WITH SIGNAL SAMPLING & RECONSTRUCTION
Due to the overlapping tails, 𝐺ҧ 𝑓 no longer has complete
information about G(f), recover g(t) exactly from the sampled signal
g(t) is not possible
After passing the signal thought the low pass filter low-pass filter of
cutoff frequency 𝑓𝑠ൗ2 the output is a distorted version of 𝐺 𝑓 denoted
𝐺𝑎 𝑓
The distortion is caused by:
The reappearance of this tail inverted or folded back onto the spectrum
𝑓
The loss of the tail of G(f) beyond 𝑓𝑠 > 𝑠ൗ2 Hz
Folding Frequency
1
The frequency 𝑓𝑠 = 2𝑇 (figure 2.8 c)) is the folding frequency.
At this frequency the lost tail folds back onto itself and its components
appear at the reconstructed signal.
𝑓𝑠
the components of frequencies above 2
reappear as components of
𝑓𝑠
frequencies below
2
This is known as spectral folding or aliasing (shaded region in figure
2.8 b, and c) 22
PRACTICAL ISSUES WITH SIGNAL SAMPLING & RECONSTRUCTION
In aliasing we lose the frequency components above the folding
frequency also these components reappear as lower frequency
components.
Aliasing also destroys the integrity of the frequency components
𝑓
below the folding frequency 2𝑠
To avoid aliasing, we need to suppress the higher frequency
𝑓
components beyond the folding frequency 2𝑠 before sampling the
signal g(t)
The signal is passed through a low-pass filter with cut-off frequency
𝑓𝑠
called anti-aliasing filter as shown below
2
Figure 2.9 23
PRACTICAL ISSUES WITH SIGNAL SAMPLING & RECONSTRUCTION
An antialiasing filter essentially band-limits the signal g(t) to 𝑓2𝑠 Hz
so that we lose only the frequency components beyond the folding
frequency.
The suppressed components cannot reappear and corrupt the
components of frequencies below the folding frequency 𝑓2𝑠
𝑓𝑠
The reconstructed signal spectrum 𝐺𝑎𝑎 𝑓 = 𝐺 𝑓 for 𝑓 < 2
Emphasis: The antialiasing operation must be performed before the
signal is sampled.
24
Figure 2.10
PRACTICAL ISSUES WITH SIGNAL SAMPLING & RECONSTRUCTION
An antialiasing filter also helps to reduce noise
Noise, generally, has a wideband spectrum, it cause the noise
components outside the desired signal band to appear in the signal
band
Antialiasing suppresses the entire noise spectrum beyond frequency
𝑓𝑠
.
2
The antialiasing filter, being an ideal filter, is unrealizable. In
practice we use a steep-cutoff filter, which leaves a sharply
𝑓
attenuated residual spectrum beyond the folding frequency 2𝑠.
25
PRACTICAL ISSUES WITH SIGNAL SAMPLING & RECONSTRUCTION
Sampling Forces Non-Band-Limited Signals to Appear Band-
Limited
Figure 2.8b shows the spectrum of a signal g ത 𝑡 consists of
overlapping cycles of 𝐺 𝑓 . This means that gത t are sub-Nyquist
samples of g t
We may also view the spectrum in Fig. 2.8b as the spectrum 𝐺𝑎 𝑓
(Fig. 2.8c ), repeating periodically every 𝑓𝑠 Hz without overlap
The spectrum 𝐺𝑎 𝑓 is band-limited to 𝑓𝑠ൗ2 Hz
These (sub-Nyquist) samples of g t are actually the Nyquist
samples for signal g a t
In conclusion, sampling a non-band-limited signal g(t) at a rate 𝑓𝑠 Hz
makes the samples appear to be the Nyquist samples of some signal
g a t , band-limited to 𝑓𝑠ൗ2 Hz.
In other words, sampling makes a non-band-limited signal appear to
be a band-limited signal g a t , with bandwidth 𝑓𝑠ൗ2 Hz
26
MAXIMUM INFORMATION RATE
A knowledge of the maximum rate at which information can be
transmitted over a channel of bandwidth B Hz is of fundamental
importance in digital communication
Theorem: A maximum of 2B independent pieces of information per
second can be transmitted, error free, over a noiseless channel of
bandwidth B Hz.
The sampling theorem shows that a low-pass signal of bandwidth B
Hz can be fully recovered from samples uniformly taken at the rate
of 2B samples per second
We need to show that any sequence of independent data at the rate
of 2B Hz can come from uniform samples of a low-pass signal with
bandwidth B
For an independent data samples denoted as {g 𝑛 } with rate 2B
samples per second there always exists a (not necessarily band-
limited) signal g(t) such that
1
g 𝑡 = g 𝑛𝑇𝑠 𝑇𝑠 =
2𝐵
27
MAXIMUM INFORMATION RATE
Previously, we have seen that sub-Nyquist sampling of a signal g(t)
generates samples that can be equally well obtained by Nyquist
sampling of a band-limited signal ga(t)
Sampling g(t) and ga(t) at the rate of 2B Hz will generate the same
independent information sequence {gn}: that is
1
g 𝑛 = g 𝑛𝑇𝑠 = g 𝑎 𝑛𝑇𝑠 𝑇𝑠 =
2𝐵
the sampling theorem also states that a low-pass signal g 𝑎 𝑡 with
bandwidth B can be reconstructed from its uniform samples
29
NONIDEAL PRACTICAL SAMPLING ANALYSIS
In the practical sampler the uniform weighing is defined as
30
NONIDEAL PRACTICAL SAMPLING ANALYSIS
The output of the averaging filter is given by
g1 𝑡 = gො 𝑡 ∗ ℎ𝑎 𝑡
The practical sampler generate a sampled signal g
ු (t) by sampling
the averaging filter output g1 𝑘𝑇𝑠
gු t = g1 𝑘𝑇𝑠 . 𝛿 𝑡 − 𝑘𝑇𝑠
𝑘
The figure in the next slide illustrate the above described practical
sampler .
31
NONIDEAL PRACTICAL SAMPLING ANALYSIS
Practical Sampler
32
Figure 2.11
NONIDEAL PRACTICAL SAMPLING ANALYSIS
We examine the frequency domain relationships to analyze the
distortion generated by practical samplers.
Note that 𝑞𝑇𝑠 (𝑡) is periodic with Fourier series
33
NONIDEAL PRACTICAL SAMPLING ANALYSIS
We can define frequency responses
𝐹𝑜 𝑓 𝐺 𝑓
Where