Professional Documents
Culture Documents
FACULTY OF ENGINEERING
DEPARTMENT OF COMPUTER AND COMMUNICATIONS ENGINEERING
CCE 411
AUST – 2022
DPCM
Differential Pulse-Code Modulation is a data compression technique aimed at reducing the bit rate as compared to
PCM while maintaining the same signal quality.
When a voice or video signal is sampled at a rate slightly higher than the Nyquist rate, the resulting sampled signal is
found to exhibit high correlation between adjacent samples.
The exception is the case when the spectrum of the process is flat within its bandwidth. The meaning of this high
correlation is that, in an average sense, the signal does not change rapidly from one sample to the next.
When these highly correlated samples are encoded, as in standard PCM system, the resulting encoded signal contains
redundant information.
Actually, some number of adjacent samples could be quantized to the same level and this leads to the generation of
the same codeword in successive sampling intervals.
This means that symbols that are not absolutely essential to the transmission of information are generated as a result
of the encoding process.
By removing this redundancy before encoding, we obtain a more efficient coded signal.
Now, if we know a sufficient part of a redundant signal, we may infer the rest, or at least make the most probable
estimate.
In particular, if we know the past behavior of a signal up to a certain point in time, it is possible to make some
inference about its future values; such a process is commonly called prediction.
GABY ABOU HAIDAR, PH.D.
DPCM
Suppose that a message signal m(t) is sampled at the rate 1/Ts to produce a sequence of correlated samples Ts
seconds apart; which is denoted by {m(kTs)} (we will drop the Ts term in just to simplify the notations).
The fact that it is possible to predict future values of the signal m(t) provides motivation for the differential
quantization scheme shown below.
DPCM
In DPCM, we do not transmit the present sample m[k], but d[k] (the difference between m[k]and its
predicted value ˆm[k] ).
At the receiver, we generate ˆm[k] from the past samples values to which the received d[k] is added to
generate m[k].
In order to estimate ˆm[k] at the receiver, we should have m[k −1], m[k −2], ...as well as d[k], but instead,
we have their quantized versions mq[k −1], mq[k −2], ... (because of the quantization before transmission).
Hence, we cannot determine ˆm[k], but we can determine ˆmq[k], the estimate of the quantized sample
mq[k].
DPCM
In order to handle this issue, a better strategy is to determine ˆmq[k] (instead of m[k]) at the transmitter from the
quantized samples mq[k −1], mq[k −2], ....
The difference d[k]= mq[k] −ˆmq[k] is now transmitted using PCM instead of transmitting m[k] −ˆm[k].
At the receiver, we can generate ˆmq[k], and given d[k], we can reconstruct mq[k], and finally get m[k].
At the transmitter, for the predictor output to be ˆmq[k], the predictor input should be mq[k].
How would we achieve that? Since the difference d[k]= m[k] −ˆmq[k] is quantized to yield dq[k], then
where q[k] is the quantization error. The predictor output ˆmq[k] is fed back to its input so that the predictor input
mq[k] is:
GABY ABOU HAIDAR, PH.D.
DPCM
This shows that mq[k] is a quantized version of m[k].
The quantized signal dq[k] is now transmitted over the channel.
The receiver is identical to the dotted portion of the transmitter.
The inputs in both cases are also the same, dq[k].
Therefore, the predictor output must be ˆmq[k] (the same as the predictor output at the transmitter).
Hence, the receiver output (which is the predictor input) is the also the same, mq[k] = m[k]+q[k].
This shows that we are able to receive the desired signal m[k] plus the quantization noise q[k].
This is the quantization noise associated with the difference signal d[k], which is generally smaller than
m[k].
GABY ABOU HAIDAR, PH.D.
SQNR Improvement
To determine the improvement in DPCM over PCM, let mp and dp be the peak amplitudes of m(t) and d(t), respectively.
If we use the same value of L in both cases, the quantization step ∆ in DPCM is reduced by the factor dp/mp.
Because the quantization noise power is ∆2/12, the quantization noise in DPCM reduces by the factor (dp/dm)2, and the
SQNR increases by the same factor.
Moreover, the signal power is proportional to its peak value squared. Therefore, the processing gain Gp (SQNR
improvement due to prediction) is
Example
GABY ABOU HAIDAR, PH.D.
LINEAR PREDICTOR
GABY ABOU HAIDAR, PH.D.
Linear Prediction
The linear predictor used in DPCM to obtain the predicted value of the sample m(n) using past p sample values or past
quantized sample values is as shown below.
The predictor is formed by p unit delay elements, a set of multipliers involving the filter coefficients w1, w2,...,wp and
an adder to sum the coefficients-multiplied delayed inputs m(n−1), m(n−2),...,m(n−p) to provide the output ˆm(n)
The predictor output is given by: Tapped-delay linear prediction filter of order p.
GABY ABOU HAIDAR, PH.D.
Linear Prediction
The number of delay elements is called the prediction order (p).
The difference e(n) = m(n)− ˆm(n) is called the predictor error.
The objective in the design of the predictor is to choose the filter coefficients so as to minimize the mean-square
value of the error e(n).
Thus, the performance index , which represents the average power of the error signal, needs to be
minimized. If this is achieved, then the processing gain Gp in DPCM, which is equal to is maximized.
This leads to SQNR improvements over a PCM system using the same number of quantization levels. The following is
a derivation of the performance index
GABY ABOU HAIDAR, PH.D.
Linear Prediction
Where is the average power of the message signal m(t) (assumed to be zero-mean), and RM is the
autocorrelation function of the m(t).
Taking the partial derivative of the previous equation with respect to the coefficients wk and equating to zero
GABY ABOU HAIDAR, PH.D.
Linear Prediction
The set of p linear equations in the last equation , having p unknowns w1,w2,...,wp, are known as the
Yule-Walker equations.
A matrix form can also be used for the linear equations. Let , which is a p ×1
coefficient vector,
Linear Prediction
Replacing the last equation in the previous one gives the minimum value of:
The quantity is always positive and less than . As a result, , i.e., the processing gain
, In DPCM is always greater than 1.
GABY ABOU HAIDAR, PH.D.
Example:
GABY ABOU HAIDAR, PH.D.
DELTA MODULATION
(DM)
GABY ABOU HAIDAR, PH.D.
Hence, mq[k −1]= mq[k −2]+ dq[k −1] which yields mq[k]= mq[k −2] + dq[k] + dq[k −1]
Proceeding iteratively in this manner, and assuming zero initial condition, that is, mq[0]=0, yields
QUANTIZATION NOISE
GABY ABOU HAIDAR, PH.D.
Quantization Noise
Delta modulation is subject to two types of quantization error:
1. Slope overload distortion
2. Granular noise
We first discuss the cause of slope overload distortion and then granular noise.
We observe that dq[k] = mq[k]−mq[k −1] is the digital equivalent of integration in the sense that it represents
the accumulation of positive and negative increments of magnitude ∆: mq[k] = mq[k −1] ± ∆
Hence, between one sample and the next, m(t) increases or decreases by an amount equal to |m[k]−m[k −1]|,
whereas ˆmq(t) increases or decreases by an amount equal to ∆.
Hence, in order that ˆmq(t) varies as fast as m(t), we need ∆ or ∆/Ts to be of the order of |m[k]−m[k −1]| or
|m[k]−m[k −1]|/Ts.
This ratio is the average slope of m(t) between the time instants (k −1)Ts and kTs.
Generally, if we consider a region of high slope for m(t), then in this region we can require that ∆/Ts be of the
order of the average derivative of m(t) in this region.
Or, to be on the safe side, ∆/Ts needs to be of the order of the maximum value of the derivative of m(t) in the
region. This condition is usually written as:
GABY ABOU HAIDAR, PH.D.
Quantization Noise
If the above condition is not observed, then ∆ is considered too small to make ˆmq(t) follow a steep segment of m(t).
The result of this phenomenon is called slope overload distortion.
Note that since the maximum slope of the staircase approximation mq(t) is fixed by the step size ∆, increases and
decreases in mq(t) tend to occur along straight lines.
For this reason, a delta modulator using a fixed value for the step size ∆ is often referred to as a linear delta
modulator.
Illustration of quantization errors, slope-overload distortion and granular noise, in delta modulation
GABY ABOU HAIDAR, PH.D.
Quantization Noise
In contrast to slope-overload distortion, granular noise occurs when the step size is too large relative to the local
slope characteristic of the original message signal m(t).
This second situation causes the staircase approximation mq(t) to oscillate around a relatively flat segment of m(t).
Granular noise in delta modulation may be viewed as the analog of quantization noise in pulse-code modulation.
So, it appears here that a large step size ∆, is needed to accommodate large variations in m(t) and a small step size is
needed for small variations in the message signal m(t).
Hence, the choice of the optimum size leads to the minimization of the mean-square value of the quantization noise
should be obtained by a compromise between slope overload distortion and granular noise. This is to be done if we
want to use fixed step size.
Another solution is to make the delta modulator adaptive. That is, to make the step size varies in accordance with the
variation of the input signal.
The principle used in adaptive delta modulation (ADM) algorithms is as follows:
1. If successive errors en are of opposite polarity, then the DM is operating in its granular mode. The step-size should be
reduced.
2. If successive errors en are of the same polarity, then the DM is operating in its slope-overload mode. The step-size
should be increased.
GABY ABOU HAIDAR, PH.D.
Example:
GABY ABOU HAIDAR, PH.D.
Quantization Noise
Of course , the approximation of the message can be improved if we sample faster.
So, as it can be seen in the previous example, that the optimum depends on the sampling frequency fs and also on the
signal m(t); i.e., it’s amplitude and frequency.
For a general message signal that is not sinusoidal, the optimum ∆ would depend on the message frequency
components and their corresponding amplitudes.
Alternatively, given a message signal with a specific bandwidth, and sampled at a specific rate (much higher than the
Nyquist rate), the problem becomes on of finding the maximum amplitude of the message that results in no slope
overload distortion.
Of course a specific ∆ needs to be adopted.
For a sinusoidal signal m(t) = Acos(2πfct), Amax can be determined using ∆ ≥ 2πfcA/ fs , which gives A ≤ ∆fs 2πfc .
Hence, Amax = ∆fs /2πfc .
We conclude that for a given ∆, fs, and f, the smaller signal amplitude the better the fight against slope overload
distortion would be.
Also, for a given ∆, and fs, when f increases there is a need for a smaller amplitude combat slope overload distortion.
Fortunately, voice signals have a decreasing amplitude spectrum with increasing frequency.
GABY ABOU HAIDAR, PH.D.
For convenience, natural sampling is shown together with the corresponding gated TDM PAM waveform.
In this example, the pulse width of the TDM PAM signal is Ts /3 = 1/(3fs), and the pulse width of the TDM PCM signal
is Ts /(3n), where n is the number of bits used in the PCM word.
Here fs = 1/Ts denotes the frequency of rotation for the commutator, and fs satisfies the Nyquist rate for the analog
source with the largest bandwidth.
In some applications in which the bandwidth of the sources is markedly different, the larger bandwidth sources may
be connected to several switch positions on the sampler so that they will be sampled more often than the smaller
bandwidth sources.
GABY ABOU HAIDAR, PH.D.
Example
GABY ABOU HAIDAR, PH.D.
Example
GABY ABOU HAIDAR, PH.D.
Frame Synchronization
Frame synchronization is needed at the TDM receiver so that the received multiplexed data can be sorted and
directed to the appropriate output channel.
The frame sync can be provided to the receiver demultiplexer (demux) circuit either by sending a frame sync signal
from the transmitter over a separate channel or by deriving the frame sync from the TDM signal itself.
Because the implementation of the first approach is obvious, we will concentrate on that of the latter approach,
which is usually more economical, since a separate sync channel is not needed.
Frame sync may be multiplexed along with the information words in an N-channel TDM system by transmitting a
unique K−bit sync word at the beginning of each frame.
Example
GABY ABOU HAIDAR, PH.D.
JAMES A MICHENER