Lecture15 QuantizationWaveformEncoding Present
Lecture15 QuantizationWaveformEncoding Present
Communications Systems
Lecture 15: Quantization and
Waveform Encoding
Associate Professor
Electrical and Computer Engineering
Virginia Tech, Blacksburg, VA
Overview
PCM
Flat-top
x Sampling
Quantizer Waveform
encoding
n*fs bps
fs M=2n levels n bits/level
Digital Representation of Analog
Signals
Sampling analog signals makes them discrete in time:
0.8
0.6
0.4
0.2
-0.2
-0.4
-0.6
-0.8
-1
0 2 4 6 8 10
Digital Representation of Analog
Signals
Quantization of sampled analog signals makes the samples discrete in
amplitude:
2.5
1.5
0.5
-0.5
-1
-1.5
-2
-2.5
0 2 4 6 8 10
Quantization
x0 , x1 , , x M
where x0 , x M
Then:
x fQ x ~
xk 1 x xk ~ xk
Graphical Description of Quantization
Output Level ~
x
4
~
x8
~ 3
x7
~
x6
2
~
x5 1
~
x4 -4 -3 -2 -1 1 2 3 4 Input Level x
~ -1
x3
~ -2
x2
~ -3
x1 -4
Table Representation of Quantizer
k x k 1 xk ~
xk Output
Bits
1 . -3 -3.5 000
2 -3 -2 -2.5 001
3 -2 -1 -1.5 010
4 -1 0 -0.5 011
5 0 1 0.5 100
6 1 2 1.5 101
7 2 3 2.5 110
8 3 . 3.5 111
Concise Representation of
Quantizer
input sample
Serial or Successive Approximation ADC
Faster
– Uses binary search to narrow range of input sample until desired
accuracy is reached
Parallel or Flash ADC
– Input sample is compared with all possible quantization levels at
once
Distortion
Quantization adds a random noise to the true value of the sample point
2
Then MSE E nQ may be thought of as noise power
Quantizer
x + x f Q x x nQ
~
nQ x ~
x
Signal to Noise Ratio Calculations for
Quantizers
Average SNR
Let:
Let:
ìï 1 8, -4 £ x £ 4
f ( x) = í
ïî 0, else
Signal power:
SNR for Uniform Quantization
20log10(|X(f)|)
Voltage
1/T
Example 3: PCM Calculation
Problem:
– Suppose that an analog music signal is found to have a bandwidth of 15
kHz and that samples of the signal may be modeled as having a uniform
distribution.
– Find the minimum first-null bandwidth (assuming the use of square pulses)
at which it would be possible to transmit a PCM signal while maintaining
an average SNR of at least 58 dB.
Example 3 (cntd.)
Bandpass Digital Modulation
1 1
0.5 0.5
Volts
Volts
0 0
-0.5 -0.5
-1 -1
f1 = 4.5Hz , f2 = 5.5Hz
Relationship between AM and
Digital Modulation
DSB-LC AM BASK
– Message is entirely in the amplitude
DSB-SC AM BPSK, BASK
– Message is in the phase and amplitude
– In BPSK, amplitude is always 1 since the message is square wave.
– In BASK the message signal doesn’t go negative so there are no
phase changes.
Relationship Between Analog
and Digital Modulation Schemes
Message Signals
1 0 0 1
+A Amplitude
Unipolar NRZ Only
BASK
Phase
+A Only
Polar NRZ
BPSK
-A
Arbitrary Amplitude
DSB-SC
Analog signal and Phase
DSB-LC