Waveform Coding Techniques: 1) Pulse Code Modulation or PCM
Waveform Coding Techniques: 1) Pulse Code Modulation or PCM
PCM is a discrete time, discrete amplitude waveform encoding process by means of which
an analog signal is directly represented by a sequence of coded pulses
A/D Converter
The transmitter consists of – a ) Anti-aliasing LPF
b) Sampler
c) Analog-to-Digital (A/D) Converter
Quantizer + encoder
a) The anti-aliasing LPF will attenuate the high frequencies and bandlimit the signal
and thus prevent aliasing
b) The bandlimited signal is sampled at the sampler
The sampling frequency is chosen to be slightly higher than twice the maximum
frequency in the signal
c) Output of the sampler is then passed on to an analog to digital converter where the
discrete time continuous amplitude output of the sampler is quantized and encoded
• The most important feature of a PCM systems is its ability to control the effects of
distortion and noise produced by transmitting a PCM signal through the channel
1. Much more complex compared to PPM, PAM and PDM since the message signal
undergoes a greater number of operations
2. PCM has a large bandwidth requirement
Variants of PCM , i.e. DM and DPCM are used to overcome these drawbacks of the PCM
Differential Pulse Code Modulation (DPCM)
• When a voice / video signal is sampled at a rate slightly higher than the Nyquist rate, the
sampled signal is found to exhibit high degree of correlation between adjacent samples.
• In standard PCM systems, these highly correlated samples when encoded contains lot of
redundant information.
• Removing the redundancy before encoding, we can obtain an efficient coded signal, i.e. the
number of bits to be sent can be reduced → Basic Idea Behind DPCM
How does DPCM achieve this ?
➢ By predicting the message sample 𝑚[𝑛] and then ‘encoding the difference between
the actual value and the predicted value’ Hence the name Differential PCM
Prediction algorithms are available which can predict an estimate of a future value of the
message signal if it knows the past behavior up to that point in time
1
Assume 𝑚(𝑡) is the input message signal sampled at 𝑓𝑠 = to produce the sequence
𝑇𝑠
{𝑚[𝑛]} whose samples are 𝑇𝑠 seconds apart
• The quantizer in DPCM quantizes the difference between the message sample
and its predicted value
• The input to the quantizer is given by Prediction of input
sample 𝑚[𝑛]
Prediction error 𝑒[𝑛] = 𝑚 𝑛 − 𝑚
ෝ 𝑛
Delta Modulation (DM)
• In DM, the incoming message signal 𝑚(𝑡) is oversampled (at a rate higher than
Nyquist rate) so that adjacent samples of the signal would be highly correlated or will
have values that are close in range
• This is done to simplify the quantization process
• DM allows to quantize each sample by using only a single bit
• DM produces a staircase approximation to the original message signal
• The difference between the input and the approximation can take only two values ±∆
corresponding to positive and negative differences
• If the approximation falls below the signal at any sampling instant, it is increased by ∆ and if it
lies above the signal, it is decreased by ∆
• If the signal does not change too much from sample to sample, the staircase approximation
always lies within ±∆ of the input signal
Error signal 𝑒[𝑛] = 𝑚 𝑛 − 𝑚𝑞 𝑛 − 1
where 𝑚 𝑛 is the sample at 𝑛𝑇𝑠 , 𝑚𝑞 𝑛 − 1 is the latest approximation and 𝑒[𝑛] is the
error signal representing the difference between the two
+∆ 𝑖𝑓 𝑒 𝑛 > 0
Quantized version of 𝑒[𝑛] 𝑒𝑞 [𝑛] = ∆ sgn 𝑒 𝑛 =ቊ
−∆ 𝑖𝑓 𝑒 𝑛 < 0
Approximation at 𝑛𝑇𝑠 𝑚𝑞 [𝑛] = 𝑚𝑞 [𝑛 − 1] + 𝑒𝑞 [𝑛]
Approximation at (𝑛 − 1)𝑇𝑠
𝑒[𝑛] = 𝑚 𝑛 − 𝑚𝑞 𝑛 − 1
𝑒𝑞 [𝑛] = ∆ sgn 𝑒[𝑛]
𝑚𝑞 [𝑛] = 𝑚𝑞 [𝑛 − 1]+ 𝑒𝑞 [𝑛]
• Sampled message signal is applied to a modulator containing a comparator, quantizer
and accumulator
• To reconstruct the approximated value 𝑚𝑞 [𝑛], the decoded signal (𝑒𝑞 [𝑛] ) has to be
continuously added
At the output of the accumulator , the staircase approximation 𝑚𝑞 (𝑡) is reconstructed and the
sharp edges are smoothened out by passing through a LPF
DM is a special case of DPCM with two important differences:
1. Use of one bit quantizer in DM
2. Replacing the prediction filter by a delay element
“ DM is the one-bit version of DPCM”
Delta modulation is subject to 2 types of Quantization errors:
1. Slope Overload Distortion
2. Granular Noise
When the step-size ∆ is too small and the signal 𝑚(𝑡) changes too fast, i.e., rises
too fast or falls too fast, then the staircase approximation may fall short of the
original signal and may not catch up to it
For overcoming slope overload, the step size ∆ should be chosen such that
Maximum slope
Slope of
of message signal
staircase
approximation
Otherwise ∆ is too small for the approximation to follow a steep segment of the
input waveform 𝑚(𝑡) resulting in 𝑚𝑞 (𝑡) falling behind 𝑚 𝑡 . This condition is called
as slope overload distortion
2. Granular Noise
Occurs when step size ∆ is too large relative to the slope of the input message signal
𝑚(𝑡) , i.e. the signal is relatively flat
This causes the staircase approximation to hunt around the flat segment of the input
waveform
Small step size Slope overload error
Large step size Granular noise
• We need to choose a large enough step size to avoid slope overload distortion/error
and a small enough step size to avoid granular noise
• It requires a delta modulator that is “adaptive” in the sense that the step size is made
to vary/adapt in accordance to the input signal
• We go for Adaptive Delta Modulation (ADM)
• The one we studied just now is called as linear delta modulation to differentiate
between the two
Q)
Assuming that the number of quantization levels for PCM is 64, determine the bit rate.
𝑒 𝑛 = 𝑚 𝑛 − 𝑚[𝑛]
ෝ
It is assumed that the input signal m(t) is a sample function of a stationary RP M(t)
with zero mean. Hence we get E[m[n]]=0
• Define
In order to find the filter coefficients which minimize this index, differentiate it wrt
the coefficients 𝑤𝑘 and equate to zero
Wiener-Hopf
equations for linear
prediction
These equations can be reformulated into matrix form as
• The diagonal elements of the autocorrelation matrix are equal to mean square
value ( since zero mean assumption, equal to variance)
• The matrix is symmetric about the main diagonal
• The optimal predictor coefficients can be found as