Chapter 4-Part 2-Sampling Quantizing Encoding PCM
Chapter 4-Part 2-Sampling Quantizing Encoding PCM
Part 2
Sampling. Quantizing. Encoding.
Pulse Modulation
• Pulse modulation consists essentially of sampling analog
information signals and then converting those samples
into discrete pulses and transporting the pulses from a
source to a destination over a physical transmission
medium.
Sample pulse
8 bit
Pulse Width Modulation
• PWM is sometimes called pulse duration
modulation (PDM) or pulse length modulation
(PLM), as the width (active portion of the duty
cycle) of a constant amplitude pulse is varied
proportional to the amplitude of the analog
signal at the time the signal is sampled.
Transmitter
Receiver
PCM Sampling
• The function of a sampling circuit in a PCM transmitter is to
periodically sample the continually changing analog input
voltage and convert those samples to a series of constant-
amplitude pulses that can more easily be converted to binary
PCM code.
• The leftmost bit is the sign bit (1 = + and 0 = -), and the
two rightmost bits represent magnitude.
Sampling pulse
PAM signal
PCM code
Quantization
• For a sample, the voltage at t3 is approximately +2.6 V.
The folded PCM code is
resolution
Linear Qe
2
Error
Quantization
Example 2
• For the PCM coding scheme shown in
Figure 10-8, determine the quantized
voltage, quantization error (Qe) and PCM
code for the analog sample voltage of +
1.07 V.
Solution
• To determine the quantized level, simply divide the
sample voltage by resolution and then round the answer
off to the nearest quantization level:
+1.07V = 1.07 = 1
1V
Vmin resolution
DR dB 20 log 2n 1
DR = dynamic range (unitless)
Vmin = the quantum value
Vmax = the maximum voltage magnitude of the DACs
n = number of bits in a PCM code (excl. sign bit)
For n > 4
DR 2 1 2
n n
DR dB 20 log 2n 1 20n log 2 6n
Dynamic Range
No of Bits No of Levels DR (dB)
1 2 6.02
2 4 12
3 6 18.1
4 16 24.1
5 32 30.1
6 62 36.1
7 128 42.1
8 256 48.2
9 512 54.2
10 1024 60.2
11 2048 66.2
12 4096 72.2
13 8192 78.3
14 16348 84.3
DELTA MODULATION
• Delta modulation uses a single-bit PCM code to achieve
digital transmission of analog signals.
Vmin resolution
SQR min 2
Qe Qe
For input signal maximum amplitude
SQR = maximum voltage / quantization noise
Vmax
SQR max
Qe
SQR is not constant
Linear vs. Nonlinear coding
Linear Nonlinear
Companding
• Companding is the process of compressing and then
expanding
• High amplitude analog signals are compressed prior to
txn. and then expanded in the receiver
• It is a means of improving dynamic range
• Early PCM systems used analog companding, where as
modern systems use digital companding.
Companding
Higher amplitude
analog signals are
compressed
Dynamic range is
improved
PCM system with analog companding
-law companding
Vmax ln 1
Vin
V
Vout max
ln 1
A-law companding
• A-law is superior to -law in terms of small-signal quality
• The compression characteristic is given by
A| x | 1
, 0 | x |
1 log A A
y
1 log( A | x |) 1
, | x | 1
1 log A A
where y=Vout
x=Vin / Vmax
Digital compression error
To calculate the percentage error introduced by digital
compression
%error=12-bit encoded voltage - 12-bit decoded voltage X 100
12-bit decoded voltage