DCS - Sampling and Quantization
DCS - Sampling and Quantization
DCS - Sampling and Quantization
Analog Signal
Amplitude Modulated
Pulses
Pulse Width Modulation (PWM or PLM or PDM):
* In this type, the amplitude is maintained constant but the duration
or length or width of each pulse is varied in accordance with
instantaneous value of the analog signal.
* The negative side of the signal is brought to the positive side by
adding a fixed d.c. voltage.
Analog Signal
Analog Signal
Time
7 111
L 6 110 B
e 5 101 i C
v 4 100 n o
e 3 011 a d
l 2 010 e
1 001 r
s y s
0 000
Time
V
o 010101110111110101010
l
t
a
g
e
Time
Merits of Digital Communication:
1. Digital signals are very easy to receive. The receiver has to just detect
whether the pulse is low or high.
2. AM & FM signals become corrupted over much short distances as
compared to digital signals. In digital signals, the original signal can be
reproduced accurately.
3. The signals lose power as they travel, which is called attenuation. When
AM and FM signals are amplified, the noise also get amplified. But the
digital signals can be cleaned up to restore the quality and amplified by
the regenerators.
4. The noise may change the shape of the pulses but not the pattern of the
pulses.
5. AM and FM signals can be received by any one by suitable receiver. But
digital signals can be coded so that only the person, who is intended for,
can receive them.
6. AM and FM transmitters are ‘real time systems’. i.e. they can be received
only at the time of transmission. But digital signals can be stored at the
receiving end.
7. The digital signals can be stored, or used to produce a display on a
computer monitor or converted back into analog signal to drive a loud
speaker.
END
Digital Communications I:
Modulation and Coding Course
Term 3 – 2008
Catharina Logothetis
Lecture 2
Last time, we talked about:
Lecture 2 11
Today, we are going to talk about:
Lecture 2 12
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
sink
info.
Digital info.
Lecture 2 13
Format analog signals
To transform an analog waveform into a form
that is compatible with a digital
communication system, the following steps
are taken:
1. Sampling
2. Quantization and encoding
3. Baseband transmission
Lecture 2 14
Sampling
xδ (t ) | Xδ ( f ) |
xs (t )
| Xs( f ) |
Lecture 2 15
Aliasing effect
LP filter
Nyquist rate
aliasing
Lecture 2 16
Sampling theorem
Lecture 2 17
Quantization
Amplitude quantizing: Mapping samples of a continuous
amplitude waveform to a finite set of amplitudes.
Out
In
Average quantization noise power
Quantized
Lecture 2 18
Encoding (PCM)
Lecture 2 19
Quantization example
amplitude
x(t)
111 3.1867
100 0.4552
010 -1.3657
Lecture 2 20
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 )
Lecture 2 21
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
+ σ Sat
2
−∞
L / 2 −1
ql2 q2
σ 2
Lin =2∑ p ( xl )ql Uniform q. σ 2
Lin =
l =0 12 12
Lecture 2 22
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
Simple implementation
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
Lecture 2 23
Non-uniform quantization
It is achieved 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
Lecture 2 24
Statistics 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.
Lecture 2 25
Baseband transmission
Lecture 2 26
PCM waveforms
+V 1 0 1 1 0 +V 1 0 1 1 0
NRZ-L -V Manchester -V
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
Lecture 2 27
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
Lecture 2 28
Spectra of PCM waveforms
Lecture 2 29
M-ary pulse modulation
Lecture 2 30
PAM example
Lecture 2 31