Pulse Code Modulation_lecture
Pulse Code Modulation_lecture
Encode
001
000 • Maps the quantized values to digital
words that are n bits long.
Ø If the (Nyquist) Sampling Theorem is
satisfied, then only quantization introduces
Digital Output distortion to the system.
Signal
111 111 001 010 011 111 011
Quantization
Ø The output of a sampler is still continuous in amplitude.
– Each sample can take on any value e.g. 3.752, 0.001, etc.
– The number of possible values is infinite.
1
equally spaced apart.
-8 -6 -4 -2 -1 2 4 6 8
• Uniform quantizers are
-3
Input sample X
optimal when the input
-5 distribution is uniform.
-7 When all values within the
Quantization Characteristic Dynamic Range of the
Example: Uniform n =3 bit quantizer quantizer are equally likely.
q=8 and XQ = {±1,±3,±5,±7}
Quantization Example
Analogue signal
Sampling TIMING
Quantization levels.
Quantized to 5-levels
Quantization levels
Quantized 10-levels
PCM encoding example
M=8
M = 2n n = log 2 ( M )
M is the number of Quantization levels
(c) Error Signal n is the number of bits per sample