SlideShare a Scribd company logo
Eeng 360 1
Chapter 3:
Pulse Code Modulation
 Pulse Code Modulation
 Quantizing
 Encoding
 Analogue to Digital Conversion
 Bandwidth of PCM Signals
Huseyin Bilgekul
Eeng360 Communication Systems I
Department of Electrical and Electronic Engineering
Eastern Mediterranean University
Eeng 360 2
PULSE CODE MODULATION (PCM)
PULSE CODE MODULATION (PCM)
 DEFINITION: Pulse code modulation (PCM) is essentially
analog-to-digital conversion of a special type where the
information contained in the instantaneous samples of an analog
signal is represented by digital words in a serial bit stream.
 The advantages of PCM are:
• Relatively inexpensive digital circuitry may be used extensively.
• PCM signals derived from all types of analog sources may be merged with
data signals and transmitted over a common high-speed digital
communication system.
• In long-distance digital telephone systems requiring repeaters, a clean PCM
waveform can be regenerated at the output of each repeater, where the input
consists of a noisy PCM waveform.
• The noise performance of a digital system can be superior to that of an
analog system.
• The probability of error for the system output can be reduced even further
by the use of appropriate coding techniques.
Eeng 360 3
Sampling, Quantizing, and Encoding
Sampling, Quantizing, and Encoding
 The PCM signal is generated by carrying out three basic operations:
1. Sampling
2. Quantizing
3. Encoding
1. Sampling operation generates a flat-top PAM signal.
2. Quantizing operation approximates the analog values by using a
finite number of levels. This operation is considered in 3 steps
a) Uniform Quantizer
b) Quantization Error
c) Quantized PAM signal output
3. PCM signal is obtained from the quantized PAM signal by
encoding each quantized sample value into a digital word.
Eeng 360 4
Analog to Digital Conversion
Analog to Digital Conversion
 The Analog-to-digital Converter (ADC)
performs three functions:
– Sampling
• Makes the signal discrete in time.
• If the analog input has a bandwidth
of W Hz, then the minimum sample
frequency such that the signal can be
reconstructed without distortion.
– Quantization
• Makes the signal discrete in
amplitude.
• Round off to one of q discrete levels.
– Encode
• Maps the quantized values to digital
words that are  bits long.
 If the (Nyquist) Sampling Theorem is
satisfied, then only quantization introduces
distortion to the system.
ADC
Sample
Quantize
Analog
Input
Signal
Encode
111
110
101
100
011
010
001
000
Digital Output
Signal
111 111 001 010 011 111 011
Eeng 360 5
Quantization
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.
 To transmit as a digital signal we must restrict the number of
possible values.
 Quantization is the process of “rounding off” a sample according to
some rule.
– E.g. suppose we must round to the nearest tenth, then:
 3.752 --> 3.8 0.001 --> 0
Eeng 360 6
Illustration of the Quantization Error
Eeng 360 7
PCM TV transmission:
(a) 5-bit resolution;
(a) 8-bit resolution.
Eeng 360 8
Uniform Quantization
Uniform Quantization
• Most ADC’s use uniform
quantizers.
• The quantization levels of a
uniform quantizer are
equally spaced apart.
• Uniform quantizers are
optimal when the input
distribution is uniform.
When all values within the
Dynamic Range of the
quantizer are equally likely.
Input sample X
Example: Uniform  =3 bit quantizer
q=8 and XQ = {1,3,5,7}
2 4 6 8
1
5
3
Output sample
XQ
-2
-4
-6
-8
Dynamic Range:
(-8, 8)
7
-7
-3
-5
-1
Quantization Characteristic
Eeng 360 9
Quantization Example
Analogue signal
Sampling TIMING
Quantization levels.
Quantized to 5-levels
Quantization levels
Quantized 10-levels
Eeng 360 10
PCM encoding example
Chart 1. Quantization and digitalization of a signal.
Signal is quantized in 11 time points & 8 quantization segments.
Chart 2. Process of restoring a signal.
PCM encoded signal in binary form:
101 111 110 001 010 100 111 100 011 010 101
Total of 33 bits were used to encode a signal
Table: Quantization levels with belonging code words
Levels are encoded
using this table
M=8
Eeng 360 11
Encoding
Encoding
• The output of the quantizer is one of M possible signal levels.
– If we want to use a binary transmission system, then we need to map
each quantized sample into an n bit binary word.
• 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.
2
2 , log ( )
n
M n M
 
Eeng 360 12
Gray Codes
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.
Eeng 360 13
Waveforms in a PCM system for M=8
Waveforms in a PCM system for M=8
M=8
(d) PCM Signal
(c) Error Signal
(b) Analog Signal, PAM Signal, Quantized PAM Signal
(a) Quantizer Input output characteristics
2
2 log ( )
is thenumber of Quantization levels
is thenumber of bitspersample
n
M n M
M
n
 
Eeng 360 14
PCM Transmission System
PCM Transmission System
Eeng 360 15
Practical PCM Circuits
Practical PCM Circuits
• Three popular techniques are used to implement the
analog-to-digital converter (ADC) encoding
operation:
1. The counting or ramp, ( Maxim ICL7126 ADC)
2. Serial or successive approximation, (AD 570)
3. Parallel or flash encoders. ( CA3318)
• The objective of these circuits is to generate the
PCM word.
• Parallel digital output obtained (from one of the
above techniques) needs to be serialized before
sending over a 2-wire channel
• This is accomplished by parallel-to-serial
converters [Serial Input-Output (SIO) chip]
• UART,USRT and USART are examples for SIO’s
Eeng 360 16
Bandwidth of PCM Signals
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:
Bpcm(Min) = R/2 = nfs//2
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

More Related Content

PPTX
Pulse code modulation and Demodulation
PPT
Digital modulation
PPT
L 1 5 sampling quantizing encoding pcm
PPTX
Digital circuits in electronics and communication eng
PPT
PPTX
Digital transmission & analog Digital to conversion
PPTX
Digital communications 1
PPT
Pulse-Code-Modulation for master-PCM.ppt
Pulse code modulation and Demodulation
Digital modulation
L 1 5 sampling quantizing encoding pcm
Digital circuits in electronics and communication eng
Digital transmission & analog Digital to conversion
Digital communications 1
Pulse-Code-Modulation for master-PCM.ppt

Similar to Chapter3_Lect2 Pulse Code Modulation.ppt (20)

PPT
PDF
Digital communication systems Vemu Institute of technology
PPTX
Pulse code modulation
PPTX
ADC_class.pptx
PPT
chapter_5 digital encoding data_part2.ppt
PDF
pcm-march-2020_1_5e71b8ff9c7ad_1584511231641.pdf
PPT
Data Encoding - Analog Data, Digital signal
PPT
Analog to digital converters, adc
PPT
iugytyrtsaewsdtgyuijogdsdtrguyihjoihkgyudst4arwsdfyguihjo.ppt
PPTX
Digital-transmission.pptx
PPT
Data Encoding Techniques - Physical Layer.ppt
PDF
digital communication.pdf
PPTX
Introduction to digital signal processing 2
PDF
Pulse code modulation tutorialspoint
PPT
Quantization class.ppt signal amplitude discrete
PPT
Turbo Codes
PPTX
communication system lec4
Digital communication systems Vemu Institute of technology
Pulse code modulation
ADC_class.pptx
chapter_5 digital encoding data_part2.ppt
pcm-march-2020_1_5e71b8ff9c7ad_1584511231641.pdf
Data Encoding - Analog Data, Digital signal
Analog to digital converters, adc
iugytyrtsaewsdtgyuijogdsdtrguyihjoihkgyudst4arwsdfyguihjo.ppt
Digital-transmission.pptx
Data Encoding Techniques - Physical Layer.ppt
digital communication.pdf
Introduction to digital signal processing 2
Pulse code modulation tutorialspoint
Quantization class.ppt signal amplitude discrete
Turbo Codes
communication system lec4
Ad

More from edoxman (18)

PPT
Chapter3_Lect4 Digital Signaling for digital comm
PPT
Lectura 1 Pulse Amplitud modulation PAM and Flat-top PAM
PPT
chap4_lec5 Transmitter and Receiver Applications.ppt
PPT
chap4_lec4 General Transmitters and Receivers.ppt
PPT
chap4_lecture3 Bandpass Circuits for implementing
PPT
chap4_lecture 2 Bandpass Signals and Systems
PPT
chap4_lecture 1 Bandpass Signalling in analog communications
PPT
Chap3_Prob_1 Problem Solutions of chapter 3
PPT
Chap2_Prob_2 Problem Solutions of chapter 2
PPT
Chap2_Prob_1 Problem Solutions for analog communications
PPTX
Definición de la Hipótesis del proyecto de investigacion
PPTX
Alcance y limitaciones de la Investigación
PPTX
Desarrollo de la perspectiva teórica.pptx
PPTX
Planteamiento del Proyecto Investigación Objetivos Problema ...pptx
PPT
Introducción a la ingenieria y laboratorio de telecomunicaciones
PPTX
Origen Proyecto Investigación y KeyWords
PPTX
Introducción a la Metodología de la Investigación y Diseño de Experimentos
PPT
Introduction to Telecommunication Engineering
Chapter3_Lect4 Digital Signaling for digital comm
Lectura 1 Pulse Amplitud modulation PAM and Flat-top PAM
chap4_lec5 Transmitter and Receiver Applications.ppt
chap4_lec4 General Transmitters and Receivers.ppt
chap4_lecture3 Bandpass Circuits for implementing
chap4_lecture 2 Bandpass Signals and Systems
chap4_lecture 1 Bandpass Signalling in analog communications
Chap3_Prob_1 Problem Solutions of chapter 3
Chap2_Prob_2 Problem Solutions of chapter 2
Chap2_Prob_1 Problem Solutions for analog communications
Definición de la Hipótesis del proyecto de investigacion
Alcance y limitaciones de la Investigación
Desarrollo de la perspectiva teórica.pptx
Planteamiento del Proyecto Investigación Objetivos Problema ...pptx
Introducción a la ingenieria y laboratorio de telecomunicaciones
Origen Proyecto Investigación y KeyWords
Introducción a la Metodología de la Investigación y Diseño de Experimentos
Introduction to Telecommunication Engineering
Ad

Recently uploaded (20)

DOCX
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
DOCX
573137875-Attendance-Management-System-original
PPTX
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
PDF
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
PPTX
Sustainable Sites - Green Building Construction
PPTX
UNIT 4 Total Quality Management .pptx
PPTX
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
PDF
composite construction of structures.pdf
PPTX
web development for engineering and engineering
PPTX
bas. eng. economics group 4 presentation 1.pptx
PDF
PPT on Performance Review to get promotions
PPT
Mechanical Engineering MATERIALS Selection
PPTX
OOP with Java - Java Introduction (Basics)
PPTX
Internet of Things (IOT) - A guide to understanding
PPT
Project quality management in manufacturing
PDF
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
PPTX
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
PDF
Well-logging-methods_new................
PDF
Operating System & Kernel Study Guide-1 - converted.pdf
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
573137875-Attendance-Management-System-original
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
Sustainable Sites - Green Building Construction
UNIT 4 Total Quality Management .pptx
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
composite construction of structures.pdf
web development for engineering and engineering
bas. eng. economics group 4 presentation 1.pptx
PPT on Performance Review to get promotions
Mechanical Engineering MATERIALS Selection
OOP with Java - Java Introduction (Basics)
Internet of Things (IOT) - A guide to understanding
Project quality management in manufacturing
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
Embodied AI: Ushering in the Next Era of Intelligent Systems
Well-logging-methods_new................
Operating System & Kernel Study Guide-1 - converted.pdf

Chapter3_Lect2 Pulse Code Modulation.ppt

  • 1. Eeng 360 1 Chapter 3: Pulse Code Modulation  Pulse Code Modulation  Quantizing  Encoding  Analogue to Digital Conversion  Bandwidth of PCM Signals Huseyin Bilgekul Eeng360 Communication Systems I Department of Electrical and Electronic Engineering Eastern Mediterranean University
  • 2. Eeng 360 2 PULSE CODE MODULATION (PCM) PULSE CODE MODULATION (PCM)  DEFINITION: Pulse code modulation (PCM) is essentially analog-to-digital conversion of a special type where the information contained in the instantaneous samples of an analog signal is represented by digital words in a serial bit stream.  The advantages of PCM are: • Relatively inexpensive digital circuitry may be used extensively. • PCM signals derived from all types of analog sources may be merged with data signals and transmitted over a common high-speed digital communication system. • In long-distance digital telephone systems requiring repeaters, a clean PCM waveform can be regenerated at the output of each repeater, where the input consists of a noisy PCM waveform. • The noise performance of a digital system can be superior to that of an analog system. • The probability of error for the system output can be reduced even further by the use of appropriate coding techniques.
  • 3. Eeng 360 3 Sampling, Quantizing, and Encoding Sampling, Quantizing, and Encoding  The PCM signal is generated by carrying out three basic operations: 1. Sampling 2. Quantizing 3. Encoding 1. Sampling operation generates a flat-top PAM signal. 2. Quantizing operation approximates the analog values by using a finite number of levels. This operation is considered in 3 steps a) Uniform Quantizer b) Quantization Error c) Quantized PAM signal output 3. PCM signal is obtained from the quantized PAM signal by encoding each quantized sample value into a digital word.
  • 4. Eeng 360 4 Analog to Digital Conversion Analog to Digital Conversion  The Analog-to-digital Converter (ADC) performs three functions: – Sampling • Makes the signal discrete in time. • If the analog input has a bandwidth of W Hz, then the minimum sample frequency such that the signal can be reconstructed without distortion. – Quantization • Makes the signal discrete in amplitude. • Round off to one of q discrete levels. – Encode • Maps the quantized values to digital words that are  bits long.  If the (Nyquist) Sampling Theorem is satisfied, then only quantization introduces distortion to the system. ADC Sample Quantize Analog Input Signal Encode 111 110 101 100 011 010 001 000 Digital Output Signal 111 111 001 010 011 111 011
  • 5. Eeng 360 5 Quantization 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.  To transmit as a digital signal we must restrict the number of possible values.  Quantization is the process of “rounding off” a sample according to some rule. – E.g. suppose we must round to the nearest tenth, then:  3.752 --> 3.8 0.001 --> 0
  • 6. Eeng 360 6 Illustration of the Quantization Error
  • 7. Eeng 360 7 PCM TV transmission: (a) 5-bit resolution; (a) 8-bit resolution.
  • 8. Eeng 360 8 Uniform Quantization Uniform Quantization • Most ADC’s use uniform quantizers. • The quantization levels of a uniform quantizer are equally spaced apart. • Uniform quantizers are optimal when the input distribution is uniform. When all values within the Dynamic Range of the quantizer are equally likely. Input sample X Example: Uniform  =3 bit quantizer q=8 and XQ = {1,3,5,7} 2 4 6 8 1 5 3 Output sample XQ -2 -4 -6 -8 Dynamic Range: (-8, 8) 7 -7 -3 -5 -1 Quantization Characteristic
  • 9. Eeng 360 9 Quantization Example Analogue signal Sampling TIMING Quantization levels. Quantized to 5-levels Quantization levels Quantized 10-levels
  • 10. Eeng 360 10 PCM encoding example Chart 1. Quantization and digitalization of a signal. Signal is quantized in 11 time points & 8 quantization segments. Chart 2. Process of restoring a signal. PCM encoded signal in binary form: 101 111 110 001 010 100 111 100 011 010 101 Total of 33 bits were used to encode a signal Table: Quantization levels with belonging code words Levels are encoded using this table M=8
  • 11. Eeng 360 11 Encoding Encoding • The output of the quantizer is one of M possible signal levels. – If we want to use a binary transmission system, then we need to map each quantized sample into an n bit binary word. • 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. 2 2 , log ( ) n M n M  
  • 12. Eeng 360 12 Gray Codes 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.
  • 13. Eeng 360 13 Waveforms in a PCM system for M=8 Waveforms in a PCM system for M=8 M=8 (d) PCM Signal (c) Error Signal (b) Analog Signal, PAM Signal, Quantized PAM Signal (a) Quantizer Input output characteristics 2 2 log ( ) is thenumber of Quantization levels is thenumber of bitspersample n M n M M n  
  • 14. Eeng 360 14 PCM Transmission System PCM Transmission System
  • 15. Eeng 360 15 Practical PCM Circuits Practical PCM Circuits • Three popular techniques are used to implement the analog-to-digital converter (ADC) encoding operation: 1. The counting or ramp, ( Maxim ICL7126 ADC) 2. Serial or successive approximation, (AD 570) 3. Parallel or flash encoders. ( CA3318) • The objective of these circuits is to generate the PCM word. • Parallel digital output obtained (from one of the above techniques) needs to be serialized before sending over a 2-wire channel • This is accomplished by parallel-to-serial converters [Serial Input-Output (SIO) chip] • UART,USRT and USART are examples for SIO’s
  • 16. Eeng 360 16 Bandwidth of PCM Signals 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: Bpcm(Min) = R/2 = nfs//2 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