Module 3 Part 3-DPCM, DM
Module 3 Part 3-DPCM, DM
• 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 𝑒[𝑛] = 𝑚 𝑛 − 𝑚
ෝ 𝑛
• The quantizer output is given by
Quantization error
𝑒𝑞 𝑛 = 𝑒 𝑛 + 𝑞 𝑛
𝑚𝑞 𝑛 = 𝑚 𝑛 + 𝑞[𝑛]
Reconstruction formula: 𝑚𝑞 𝑛 = 𝑚
ෝ 𝑛 + 𝑒𝑞 𝑛
Waveform Coding Techniques
• 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
• Bandwidth requirement of DM is very much higher than standard PCM since the input
signal is sampled at a frequency much higher than the Nyquist frequency and hence
more number of samples per second and hence more number of bits per second
𝑚𝑞 [𝑛] = 𝑚𝑞 [𝑛 − 1]+ 𝑒𝑞 [𝑛]
= 𝑚𝑞 [𝑛 − 2]+ 𝑒𝑞 [𝑛-1]+𝑒𝑞 [𝑛]
=σ𝑛𝑖=1 𝑒𝑞 [i]
• 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.