DPCM
DPCM
DPCM
Chapter Two
Layout: 10 Hrs.
1. Introduction.
2. Pulse Code Modulation (PCM).
3. Differential Pulse Code Modulation (DPCM).
4. Delta modulation.
5. Adaptive delta modulation.
6. Sigma Delta Modulation (SDM).
7. Linear Predictive Coder (LPC).
8. MATLAB programs.
1
Chapter Two Digital Communication
Waveform Encoding - DPCM BY: Dr.AHMED ALKHAYYAT
Lecture Five
Differential Pulse Code Modulation
Objective of Lecture:
Understand the way by which we convert the analog signal to binary bits.
Behavioral goals:
The student will be able to use new analog to bit form conversion and understand
how it possible to reduce bit rate (and improving bandwidth efficiency) by keeping
the quality of signal after reconstruction.
2
Chapter Two Digital Communication
Waveform Encoding - DPCM BY: Dr.AHMED ALKHAYYAT
For yet another form of digital pulse modulation, we recognize that when a voice or video
signal is sampled at a rate slightly higher than the Nyquist rate, the resulting sampled signal
is found to show a high degree of correlation between adjacent samples. 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 a standard PCM system, the
resulting encoded signal contains redundant information. Redundancy means that
codewords are not absolutely essential to the transmission of information which are
generated as a result of the encoding process. By removing this redundancy before
encoding, we obtain a more efficient bits rate or bandwidth transmission, compared to
PCM (i.e.𝐵𝑃𝐶𝑀 ).
3
Chapter Two Digital Communication
Waveform Encoding - DPCM BY: Dr.AHMED ALKHAYYAT
DPCM is based on linear predication. 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. In fact, a good prediction lead to better
performance. The linear predictor function is given as:
𝐾
(1)
4
Chapter Two Digital Communication
Waveform Encoding - DPCM BY: Dr.AHMED ALKHAYYAT
8. Electrical pulse is transmitted over physical channel (we already know channel
consideration is physical).
At the receiver, the DPCM decoder uses same method as the encoder to predict the value
of the present sample. After the error term is received and demodulated, it is added to
prediction ̂ (𝑛𝑇𝑠 ) − 𝑚(𝑛𝑇𝑠 ) = 𝑒(𝑛𝑇𝑠 ) → 𝑚
(i.e.,𝑚 ̂ (𝑛𝑇𝑠 ) + 𝑒(𝑛𝑇𝑠 ) = 𝑚(𝑛𝑇𝑠 )),
producing again the actual amplitude of present sample.
If prediction algorithm is chosen properly, the error term will have lower dynamic range
than original signal (i.e., 𝑒(𝑛𝑇𝑠 ) ≪ 𝑚(𝑛𝑇𝑠 )) and thus need fewer quantizing bits to achieve
the much less quantization error which make DPCM require lower rate than PCM. DPCM
require less quantization level because it depend on error term that is represented with less
dynamic range. Error term depend on the predictor performance, if the signal well
predicted, the error term reduces and dynamic range become less which result less
quantization level (i.e. 𝑀).
5
Chapter Two Digital Communication
Waveform Encoding - DPCM BY: Dr.AHMED ALKHAYYAT
𝑒(𝑛𝑇𝑠 )
(𝑆𝑁𝑅)𝑞 = 1.8 + 6.02 log2 (5)
𝑞𝑒
𝑃𝐶𝑀
6
Chapter Two Digital Communication
Waveform Encoding - DPCM BY: Dr.AHMED ALKHAYYAT
𝑀 = 2𝑁 = 28 = 256 𝑙𝑒𝑣𝑒𝑙𝑠
1 1
𝑇𝑠 = = = 0.125 𝑚𝑠𝑒𝑐
𝑓𝑠 8000
7
Chapter Two Digital Communication
Waveform Encoding - DPCM BY: Dr.AHMED ALKHAYYAT
Suppose that linear predictor with order 𝐾 = 3, hence the predictor function is:
̂ (𝑛𝑇𝑠 ) = ∑ 𝑎𝑖 𝑚(𝑛 − 𝑖)
𝑚
𝑖=1
The linear predictor function after evaluating coefficients, 𝑎1 , 𝑎2 𝑎𝑛𝑑 𝑎3 , is written as:
̂ (𝑛𝑇𝑠 ) = 0.75 𝑚(𝑛 − 1) + 0.20 𝑚(𝑛 − 2) + 0.05 𝑚(𝑛 − 3)
𝑚
The amplitude of each sample after sampling process is given as:
𝑚(𝑛𝑇𝑠) = {0.23, 0.38,0.56,0.73,0.9,1.05,1.2,1.35, … . }
𝑚(𝑛𝑇𝑠) = {0𝑇𝑠 , 1𝑇𝑠 , 2𝑇𝑠 , 3𝑇𝑠 , 4𝑇𝑠 , 5𝑇𝑠 , 6𝑇𝑠 , 7𝑇𝑠 , … . }
𝑛 = {0,1,2,3,4,5,6,7, … . }
̂ (𝑛 )
DPCM transmitter is shown in the Table below which consist, 𝑛𝑇𝑠 , predicted value 𝑚
, actual value 𝑚(𝑛𝑇𝑠), error term 𝑒 (𝑛𝑇𝑠 ). Because the dynamic range of DPCM signal
depend on the error term, hence it is smallest that original signal. Where maximum
dynamic range of DPCM is ± 0.5, by which we can estimate the bit rate of DPCM as:
8
Chapter Two Digital Communication
Waveform Encoding - DPCM BY: Dr.AHMED ALKHAYYAT
Hence number of bits reduced per level from 8 bits to 5 bits and gives same quantization
error. The DPCM bit rate efficiency is given as: