Lecture03 - PCM - Sampling - Quantization - Coding - Shounak Dasgupta
Lecture03 - PCM - Sampling - Quantization - Coding - Shounak Dasgupta
Shounak Dasgupta
JU, 6/27/2017 1
Elements of Digital Communication
10100111001
Information D/ A Digital
Line Decoder
Sink Converter Demodulator
JU, 6/27/2017 2
A/D Line Digital
Source
Converter Encoder Modulator
JU, 6/27/2017 3
JU, 6/27/2017 4
Sampling Theorem
Analog Digital
Pulse Pulse
Modulation Modulation
PCM
PAM , PWM,
DPCM
PPM
DM
JU, 6/27/2017 7
PCM was invented by the British engineer Alec Reeves in 1937 in France.
It was not until about the middle of 1943 that the Bell Labs people
became aware of the use of PCM binary coding as already proposed by
Alec Reeves.
Application
JU, 6/27/2017 8
PCM consists of three steps to digitize an analog signal:
1. Sampling
2. Quantization
3. Binary encoding
Before we sample, we have to filter the signal to limit the maximum
frequency of the signal .Filtering should ensure that we do not distort the
signal, ie remove high frequency components that affect the signal shape.
JU, 6/27/2017 9
Sampling:
JU, 6/27/2017 10
Quantization of Signals
The process of converting a discrete-time continuous amplitude signal
into a discrete-time discrete amplitude signal is called quantization.
This is done by approximating each of the sampled values varying over
a continuous range, to the nearest value from a small set of
predetermined discrete values.
The predetermined discrete-amplitude levels are called quantization
level.
The spacing between the two adjacent quantization levels is called a
step-size.
The quality of a quantizer output depends upon the number of
quantization levels used.
JU, 6/27/2017 11
Quantization Process
JU, 6/27/2017 12
Types of Uniform Quantizer
The Mid-tread type is so called because the origin lies in the middle of a tread
of the stair-case like graph. The quantization levels in this type are odd in
number.
The Mid-Rise type is so called because the origin lies in the middle of a raising
part of the stair-case like graph. The quantization levels in this type are even in
number.
Both the mid-rise and mid-tread type of uniform quantizer is symmetric about
the origin.
JU, 6/27/2017 13
Quantization Noise or Error
The difference between the quantized signal and the original signal is
viewed as a noise due to quantization process and called quantization noise
or quantizing error.
The quantized signal and the original signal differ from each another in
random manner. However, the error voltage will lies between - Δ/2 and
Δ/2.
Let a particular sample at the quantizer input lies in the range (k Δ – Δ/2)
to (k Δ+ Δ/2), here k is an integer & k Δ is the corresponding quantizer
output. qe be the error produced
by quantization process. k Δ + Δ/2
qe kΔ
Δ/2 ≥ qe ≥ - Δ/2
k Δ – Δ/2
JU, 6/27/2017 14
JU, 6/27/2017 15
Signal to Quantization Noise Ratio
For a sinusoid message signal of amplitude A & for L quantization
level
SignalPower
SNR
NoisePower
For any signal , the mean square value gives the power content.
2
In case of the sinusoid signal, the signal power A 2
We know for sinusoidal signal, Quantization noise power
2 A2
Pq
12 3 L2
A2
3 L2
SNR 22
A 2
2
3L
3 L2
( SNR ) dB 10 log 10
2
3
10 log 10 2 20 log 10 L 1.8 6 n
For n bit encoder: L =2n
For a non sinusoidal signal with normalized destination power & normalized input
message signal (SNR)dB = 4.8 +6n
JU, 6/27/2017 16
Problem:
A PCM system uses a uniform quantizer followed by a 10-bit encoder.
i. Find SNRq for the system
ii. How many bits are required to achieve a SNRq of 40 dB
Ans:
ii. 40 = 1.8 + 6n
n = 7 bits
JU, 6/27/2017 17
Non Uniform Quantization: Companding
o Process of uniform quantization, discussed so far, is not always
desirable.
o For some signals with large dynamic range ( such as voice signal)
where high values occur rarely, variable separation between the
quantization level is advantageous.
o Such variations are taken care of by making use of non-uniform
quantization where the step size increases with amplitude of the
signal.
Voltage Range
Input Signal
JU, 6/27/2017 18
Why Non-uniform quantization is done :
JU, 6/27/2017 22
μ -law
μ –law is defined as Vi and Vo are normalized input & output
JU, 6/27/2017 24
The main advantages and drawbacks of the two compression
algorithms are:
JU, 6/27/2017 25
Coding:
The process sampling followed by quantization converts an analog signal
into a discrete time signal whose amplitudes are limited to a set of discrete
values.
The discrete set of sample values are then represented by symbols through
binary coding.
In binary coding, each code word consists of n no of fixed bits to represent
2n no of quantization level. If M be the no quantization levels then,
M ≤ 2n
Ans:
Given, N = 24, n = log2 128 = 7 bits, fs = 8000 Hz
JU, 6/27/2017 29
Trade off between SNR and bandwidth
JU, 6/27/2017 30
Standard Requirements of Different PCM systems:
JU, 6/27/2017 31
Consider a signal f(t) = 20 cos (2000t). The signal is sampled at
Nyquist rate & fed to a 7 bit encoder after uniform quantization.
Ans:
Given, fm = 1000 Hz, fs = 2000 Hz & n=7
JU, 6/27/2017 32
Advantages of PCM system:
JU, 6/27/2017 33
Disadvantages of PCM system:
JU, 6/27/2017 34