Digital Communications: Analog Vs Digital Communication Pulse Code Modulation (PCM) Quantization
Digital Communications: Analog Vs Digital Communication Pulse Code Modulation (PCM) Quantization
Digital Communications: Analog Vs Digital Communication Pulse Code Modulation (PCM) Quantization
−1
−2
0 0.5 1 1.5 2 2.5 3 3.5 4
−1
−2
0 0.5 1 1.5 2 2.5 3 3.5 4
−1
−2
0 0.5 1 1.5 2 2.5 3 3.5 4
Uniform Quantization
An ideal uniform quantizer is a nonlinear time invariant system:
−Nl ∆ν g(t) < −Nl ∆ν
ge(t) = n∆ν (n − 21 )∆ν < g(t) < (n + 12 )∆ν, −Nl < n < Nh
N ∆ν g(t) > N ∆ν
h h
∆ν is quantization interval. Nl + Nh is number of levels.
Nonuniform Quantization
Nonuniform quantizers increase quantization intervals as magnitude of
value. Interval proportional to value implies logarithmic curve.
−1
−2
0 0.5 1 1.5 2 2.5 3 3.5 4
−1
−2
0 0.5 1 1.5 2 2.5 3 3.5 4
−1
−2
0 0.5 1 1.5 2 2.5 3 3.5 4
Quantization Error (cont.)
Quantization error for quantizing to 4 and 16 levels.
0.3
0.2
0.1
−0.1
−0.2
−0.3
−0.4
0 0.5 1 1.5 2 2.5 3 3.5 4
0.15
0.1
0.05
−0.05
−0.1
−0.15
−0.2
0 0.5 1 1.5 2 2.5 3 3.5 4
3L2
Fact: for µ-law, SNR is if µ ≫ mp /rms(m(t)).
(ln(1 + µ))2
Bandwidth vs. Quantization Error
What bandwidth is needed to transmit a PCM encoded signal?
Example: suppose that we want maximum error 0.5%mp for a 3 kHz signal.
∆ν mp 0.5
= = mp =⇒ L = 200 < 28
2 L 100
At Nyquist sample rate
RN = 2 · 3000 = 6000 Hz
we need 6000 · 8 = 48000 bits/sec.
Fact: a bandlimited signal can convey two symbols per Hz.
For binary PCM, we need 48000/2 = 24000 Hz.
For practical reasons, we sample faster than the Nyquist rate.
E.g., at rate 4000 Hz, the required bandwidth is 32 kHz.
PCM SNR
The signal-to-noise ratio is
average signal power
SN R =
average noise power
For uniform quantization noise,
average signal power ≈ am2p (a ≈ 12 )
quantization error ≈ 13 (mp /L)2
SNR ≈ cL2 = c22m
where m is the number of bits in the PCM sample, so L = 2m . c is a
constant.
SNR grows exponentially with the number of bits.
If we measure SNR in dB,
SN RdB = 10 log10 (c22m ) = 10 log 10 (c) + 2m log10 2 = (α + 6m)dB
where α = 10 log10 c.
Increasing n by one bit improves SNR by 6 dB! One bit quadruples SNR.
PCM SNR
Consider two cases for a 4 kHz bandwidth signal
◮ L = 64, m = 6 bits
SN RdB = α + 36 dB
◮ L = 256, and m = 8 bits
SN RdB = α + 48 dB
Receive power ranges from −32 to −71 dB (6.3 × 10−7 to 7.9 × 10−11 W).
The most powerful transmitter was 4 feet from the receiver.