Professional Documents
Culture Documents
Sampling pulse
PAM signal
PCM code
18
Folded Binary Code
Sign Magnitude Decimal Quantization
value range (V)
1 11 +3 +2.5 to +3.5
1 10 +2 +1.5 to +2.5
1 01 +1 +0.5 to 1.5
1 00 +0 0 to +0.5
0 00 -0 0 to -0.5
0 01 -1 -0.5 to -1.5
0 10 -2 -1.5 to -2.5
0 11 -3 -2.5 to -3.5
Three bit PCM code 19
Quantization Error
resolution
Linear Qe =
2
Error
Quantization
20
Dynamic Range
Vmax Vmax n
DR = = = 2 −1
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
n n
DR = 2 − 1 ≈ 2
( )
DR( dB ) ≈ 20 log 2n − 1 = 20n log 2 ≈ 6n
21
Dynamic Range
# Bits # 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
15 32768 90.3
16 65536 96.3
22
Quantization
Out
In
Average quantization noise power
Quantized
23
Encoding (PCM)
24
Quantization example
amplitude
x(t)
111 3.1867
100 0.4552
010 -1.3657
25
Quantization error
Quantizing error: The difference between the input and
output of a quantizer
e(t ) = xˆ (t ) − x(t )
+
e(t ) =
xˆ (t ) − x(t )
26
Quantization error …
Quantizing error:
Granular or linear errors happen for inputs within the dynamic
range of quantizer
Saturation errors happen for inputs outside the dynamic range
of quantizer
Saturation errors are larger than linear errors
Saturation errors can be avoided by proper tuning of AGC
Quantization noise variance:
∞
σ = E{[ x − q( x)] } = ∫ e 2 ( x) p ( x)dx = σ Lin
2
q
2 2 2
+ σ Sat
−∞
L / 2 −1
ql2 q2
σ 2
Lin =2∑ p( xl ) ql Uniform q. σ 2
Lin =
l =0 12 12
27
Uniform and non-uniform quant.
Uniform (linear) quantizing:
No assumption about amplitude statistics and correlation
properties of the input.
Not using the user-related specifications
Robust to small changes in input statistic by not finely tuned to a
specific set of input parameters
Simply implemented
Application of linear quantizer:
Signal processing, graphic and display applications, process
control applications
Non-uniform quantizing:
Using the input statistics to tune quantizer parameters
Larger SNR than uniform quantizing with same number of levels
Non-uniform intervals in the dynamic range with same quantization
noise variance
Application of non-uniform quantizer:
Commonly used for speech
28
Non-uniform quantization
It is done by uniformly quantizing the “compressed” signal.
At the receiver, an inverse compression characteristic, called
“expansion” is employed to avoid signal distortion.
compression+expansion companding
y = C (x) x̂
x(t ) y (t ) yˆ (t ) xˆ (t )
x ŷ
Compress Qauntize Expand
Transmitter Channel Receiver
29
Statistical of speech amplitudes
In speech, weak signals are more frequent than strong ones.
0.5
0.0
1.0 2.0 3.0
Normalized magnitude of speech signal
S
Using equal step sizes (uniform quantizer) gives low for weak
N q
signals and high for strong signals.
S
N q
Adjusting the step size of the quantizer by taking into account the speech statistics
improves the SNR for the input range.
30
Baseband transmission
31
PCM waveforms
Unipolar-RZ +V Miller +V
0 -V
+V +V
Bipolar-RZ 0 Dicode NRZ 0
-V -V
0 T 2T 3T 4T 5T 0 T 2T 3T 4T 5T
32
PCM waveforms …
Criteria for comparing and selecting PCM
waveforms:
Spectral characteristics (power spectral density and
bandwidth efficiency)
Bit synchronization capability
Error detection capability
Interference and noise immunity
Implementation cost and complexity
33
Spectra of PCM waveforms
34
ts
Pulse Modulation
Analog signal
Sample pulse
8 bit
35
M-ary pulse modulation
36
PAM example
37
Formatting and transmission of baseband signal
Transmitter
Receiver
39
Sample Problems ..
40