Chapter 8
Chapter 8
Chapter 8
2
Transformations
3
Modulation
AM Angle
Analog Pulse Digital Pulse
modulation Modulation Modulation
FM PM
PAM PPM PDM
DM PCM
4
Formatting and transmission of
baseband signal
Digital info.
Textual Format
source info.
Pulse
Analog Transmit
Sample Quantize Encode modulate
info.
Pulse
Bit stream waveforms Channel
Format
Analog
info. Low-pass
Decode Demodulate/
filter Receive
Textual Detect
info.
Digital info.
5
Formatting of baseband signals
◼ Data already in a digital format would bypass the formatting
function.
◼ Textual information is transformed into binary digits by use
of a coder.
◼ Analog information is formatted using three separate
processes:
◼ sampling.
◼ quantization, and
◼ Coding.
6
transmission of baseband signal
through a baseband channel
7
transmission of baseband signal
through a baseband channel
8
Components of PCM encoder
9
Sampling
Analog signal is sampled every TS secs.
Ts is referred to as the sampling interval.
fs = 1/Ts is called the sampling rate or sampling frequency.
There are 3 sampling methods:
◦ Ideal - an impulse at each sampling instant
◦ Natural - a pulse of short width with varying amplitude
◦ Flattop - sample and hold, like natural but with single amplitude value
4.10
Three different sampling methods for PCM
4.11
Sampling
12
Sampling theorem
13
Note
LP filter
Nyquist rate
aliasing
Natural sampling
(Sampling with rectangular waveform)
0
0 1 201 401 601 801 1001 1201 1401 1601 1801 2001
1 201 401 601 801 1001 1201 1401 1601 1801 2001
N
a
tu
ra
lsa
mp
le
r
0
1 2
014
016
018
011
00
112
011
40
116
011
80
120
01
17
Natural Sampling
18
Flat-Top sampling (Sample & Hold)
◼ Samples with zero width cannot be realized in
practice (esp. at Rx.).
◼ Sample and hold (S/H) to obtain a sequence of
pulses with a fixed amplitude
◼ Obtain an analog Pulse-Amplitude Modulation
(PAM) waveform.
19
Avoid Aliasing
◼ Band-limiting signals (by filtering) before
sampling.
◼ Sampling at a rate that is greater than
the Nyquist rate.
◼ Improving the aliased signal
Sampling
Aliasing
Increasing sampling rate
Quantization
◼ Amplitude quantizing: Mapping samples of a continuous
amplitude waveform to a finite set of amplitudes.
Out
In
▪Average quantization noise power
Quantized
100 0.5
010 -1.5
x(t ) xˆ (t )
x(t ) xˆ (t )
x
e(t )
+
e(t) =
xˆ(t) − x(t)
33
Quantization error …
◼ Quantizing error:
◼ 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
34
Quantization
◼ Scalar Quantizer Block Diagram
◼ Mid-tread
◼ Mid-rise
35
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
-V V
input w1(t)
-V
Region of operation
For M=2n levels, step size :
= 2V /2n = V(2-n+1)
Quantization Error, e
output w2(t)
V
-V V
input w1(t)
-V
Error, e
/2
-/2 input w1(t)
Nonuniform Quantizer
allowed
values input
values
for most time
of time
Companding
Nonuniform quantizers are difficult to make and expensive.
An alternative is to first pass the speech signal through a nonlinearity before quantizing
with a uniform quantizer.
The nonlinearity causes the signal amplitude to be Compressed.
◦ The input to the quantizer will have a more uniform distribution.
At the receiver, the signal is Expanded by an inverse to the nonlinearity.
The process of compressing and expanding is called Companding.
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
42
Statistical of speech amplitudes
0.5
0.0
1.0 2.0 3.0
Normalized magnitude of speech signal
Using equal step sizes (uniform quantizer) gives low for weak signals
S
◼
N q
and high S for strong signals.
N q
◼ Adjusting the step size of the quantizer by taking into account the speech statistics
improves the SNR for the input range.
43
A-law and m−law Companding
These two are standard companding methods.
u-Law is used in North America and Japan
A-Law is used elsewhere to compress digital telephone signals
PCM encoding example
M=8
M = 2n , n = log2 (M )
Encoding is the process of representing each quantized sample by
an bit code word.
◦ The mapping is one-to-one so there is no distortion introduced by encoding.
◦ Some mappings are better than others.
◦ A Gray code gives the best end-to-end performance.
◦ The weakness of Gray codes is poor performance when the sign bit (MSB)
is received in error.
Gray Codes
With gray codes adjacent samples differ only in one bit position.
Example (3 bit quantization):
XQ Natural coding Gray Coding
+7 111 110
+5 110 111
+3 101 101
+1 100 100
-1 011 000
-3 010 001
-5 001 011
-7 000 010
With this gray code, a single bit error will result in an amplitude error
of only 2.
◦ Unless the MSB is in error.
PCM Transmission System
Bandwidth of PCM Signals
The spectrum of the PCM signal is not directly related to the spectrum of the input
signal.
The bandwidth of (serial) binary PCM waveforms depends on the bit rate R and the
waveform pulse shape used to represent the data.
The Bit Rate R is
R=nfs
Where n is the number of bits in the PCM word (M=2n) and fs is the sampling rate.
For no aliasing case (fs≥ 2B), the MINIMUM Bandwidth of PCM Bpcm(Min) is:
The Minimum Bandwidth of nfs//2 is obtained only when sin(x)/x pulse is used to
generate the PCM waveform.
For PCM waveform generated by rectangular pulses, the First-null Bandwidth is:
Bpcm = R = nfs