Lec 3 Quantization
Lec 3 Quantization
Lec 3
Prepared By: Dr. Walaa Omar Badr
PAM, PWM, PPM: Amplitude, Width, Position
Pulse-Position Modulation
Pulse-Position Modulation
Pulse Width Modulation (PWM)
Pulse Width Modulation (PWM)
Quantization
• A Quantizer takes the incoming sampled signal xs(t) and changes
its amplitude to the closest of one of N allowed level.
• Quantization as a concept is broad and includes that physical quantities
can only have discrete values.
(a) Quantizer characteristic of a uniform quantizer (b) Error signal
Types of Quantization
• Uniform Quantization
It is also known as linear quantization in which, the step size for the complete
discrete signal will be equal. Or we can say that the space between two
quantized levels remains the same for the complete discrete signal.
Uniform quantization is further classified into 2 categories:
1. Midtread Quantization: In midtread quantization, the origin is present at the centre or mid-
region of the tread of the graph of staircase pattern
[Link] Quantization: In case of midrise quantization, the origin of the graph is present at the
mid of the rising part of the staircase pattern.
Types of Quantization
• Non-Uniform Quantization
• Non-uniform quantizer shows different behavior than uniform quantizer, as
here, the step size of the quantized signal is not constant and shows variation.
The step size, in this case, is not the same through the discrete signal. It is also
known as non-linear quantization.
Types of Quantizers
Types of Quantizers
Looking at the quantizers in Figure, determine if they are mid-tread or midrise
and if they are uniform or non-uniform.
Signal to Quantization Noise Ratio
• The level of quantization noise is dependent on how close any particular sample
is to one of the L levels in the converter
Basic principle is to use more levels at regions with large probability density function (pdf)
Or use fine quantization (small step size) for weak signals and coarse quantization (large
step size) for strong signals
in some circumstances, the analog signal's amplitude range may be excessively wide or the signal may
have a lot of amplitude variation. In such cases, linear encoding might not be the most effective
method of signal representation. In these circumstances, companding is a technique used to increase
encoding effectiveness.
Compression and expansion are combined in the process of companding. It is a technique for mapping
the output code words to the input analog amplitude levels logarithmically. This implies that although
bigger amplitudes are encoded more coarsely, smaller signal amplitudes are encoded with greater
resolution.
Companding
Companding: Compressing
Initially at the transmitting end, the signal is first
provided to the compressor. The compressor unit
amplifies the low value or weak signal in order to
increase the signal level of the applied input signal.
While if the input signal is a high level signal or
strong signal then compressor attenuates that signal
before providing it to the uniform quantizer present in
the model.
This is done in order to have an appropriate signal
level as the input to the uniform quantizer. We know a
high amplitude signal needs more bandwidth and also
is more likely to distort. Similarly, some drawbacks
are associated with low amplitude signal and thus
there exist need for such a unit.
Companding: Expanding
• At the receiver end, the output of the uniform quantizer is fed to the expander.
• It performs the reverse of the process executed by the compressor. This unit
when receives a low value signal then it attenuates it. While if a strong signal
is achieved then the expander amplifies it.
• This is done in order to achieve the originally transmitted signal at the output.
Nonuniform quantization using companding
• Companding is a method of reducing the number of bits required in ADC while achieving an
equivalent dynamic range or SQNR
• In order to improve the resolution of weak signals within a converter, and hence enhance the
SQNR, the weak signals need to be enlarged, or the quantization step size decreased, but
only for the weak signals
• But strong signals can potentially be reduced without significantly degrading the SQNR or
alternatively increasing quantization step size
• The compression process at the transmitter must be matched with an equivalent expansion
process at the receiver
• The signal below shows the effect of compression, where the amplitude of one of the
signals is compressed
• After compression, input to the quantizer will have a more uniform distribution after
sampling
log e [1 + µ (| x | / xmax ]
y = ymax sgn( x)
log e (1 + µ )
where
• x and y represent the input and output voltages
• µ is a constant number determined by experiment
• In the U.S., telephone lines uses companding with µ = 255
• Samples 4 kHz speech waveform at 8,000 sample/sec
• Encodes each sample with 8 bits, L = 256 quantizer levels
• Hence data rate R = 64 kbit/sec
• µ = 0 corresponds to uniform quantization
Non-uniform Quantization