Skip to main content

Pulse Code Modulation (PCM)


Pulse Code Modulation (PCM)

Pulse Code Modulation (PCM) is a digital representation of an analog signal. It is the standard method used for converting analog audio, video, and other signals into a digital format for transmission, processing, or storage.

Block Diagram

The PCM process can be broken down into two main parts: the transmitter (analog-to-digital) and the receiver (digital-to-analog).

┌──────────────┐ │ Analog │ │ Message Signal│ └───────┬──────┘ │ ┌─────▼─────┐ │ LPF │ └─────┬─────┘ │ ┌─────▼─────┐ │ Sampler │ └─────┬─────┘ │ ┌─────▼─────┐ │ Quantizer │ └─────┬─────┘ │ ┌─────▼─────┐ │ Encoder │ └─────┬─────┘ │ PCM Output to Channel │ ┌─────────────────▼───────────────────┐ │ CHANNEL │ │ ┌─────────────────────────────┐ │ │ │ Regenerative Repeater │ │ │ └──────────────┬──────────────┘ │ │ ... │ │ ┌──────────────▼──────────────┐ │ │ │ Regenerative Repeater │ │ │ └─────────────────────────────┘ │ └─────────────────┬───────────────────┘ │ Channel Output │ ┌──────▼──────┐ │ Regeneration │ │ Circuit │ └──────┬──────┘ │ ┌──────▼──────┐ │ Decoder │ └──────┬──────┘ │ ┌──────▼──────┐ │Reconstruction│ │ Filter │ └──────┬──────┘ │ ┌──────▼──────┐ │ Destination │ └──────────────┘

Fig: Block Diagram of a PCM System

Transmitter (Analog-to-Digital Conversion)

  1. Low-Pass Filtering: Removes high-frequency components that could cause aliasing.
  2. Sampling: Converts continuous-time signal into discrete-time signal at rate \(f_s\).
  3. Quantization: Approximates sample amplitude to discrete levels.
  4. Encoding: Assigns unique binary codewords to levels.

Receiver (Digital-to-Analog Conversion)

  1. Regeneration: Prevents noise accumulation using repeaters.
  2. Decoding: Converts binary back to amplitude levels (staircase signal).
  3. Reconstruction Filtering: Smooths the signal back to analog form.

Interactive PCM Simulator

Test various sampling frequencies, quantization levels, and bit rates to visualize how signal quality changes in real-time.

Launch Simulator Tool

The Quantization Process

Quantization maps continuous-amplitude samples to a finite set of discrete levels. This is the main source of error in PCM systems.

Quantization Error (Noise)

The error \(e_q\) ranges from \(-\Delta/2 \le e_q \le \Delta/2\), where \(\Delta\) is the step size.

$$ \Delta = \frac{x_{\text{max}} - x_{\text{min}}}{L} = \frac{x_{\text{max}} - x_{\text{min}}}{2^n} $$

Types of Uniform Quantizers

  • Mid-Tread Quantizer: Origin lies on a tread (zero level exists).
  • Output ↑ 3Δ | ┌─────── | │ 2Δ | ┌──────┘ | │ Δ | ┌──────┘ | │ 0 ─┼─┼───────────→ Input | ┌─────┘ -Δ | │ | ┌────┘ -2Δ | │ └┘ -3Δ |
  • Mid-Rise Quantizer: Origin lies on a riser (no zero level).

Noise and Signal Quality (SQNR)

The quality is measured by the Signal-to-Quantization Noise Ratio (SQNR).

$$ \sigma_e^2 = \frac{\Delta^2}{12} \quad \text{and} \quad \text{SQNR} = \frac{P_s}{\sigma_e^2} $$

The 6dB Rule: For every additional bit, SQNR improves by ~6 dB.

$$ (\text{SQNR})_{\text{dB}} \approx 1.76 + 6.02n $$

Bit Rate (Rb)

$$ R_b = n \times f_s $$

Solved Example: TDM & Bandwidth

Question: Six signals are multiplexed using TDM, and the number of quantization levels is 256. Message frequency \(f_m = 5 \text{ KHz}\). Find Transmission Bandwidth.

Given: - N = 6 (Signals) - fm = 5 KHz - L = 256 levels → n = log₂(256) = 8 bits - fs = 2 × fm = 10 KHz Calculation: Bit Rate (Rb) = N × n × fs Rb = 6 × 8 × 10 = 480 kbps Bandwidth (B) = Rb / 2 B = 480 / 2 = 240 KHz

Deep Dive: Sampling Technique

Sampling is the bridge between analog and digital. It is essentially a switching approach. To prevent aliasing, we follow the Nyquist Criterion:

Sampling Illustration
The sampling frequency should be at least twice the message signal’s frequency.

Computers only comprehend binary ('0' and '1'). Quantization gives these samples meaning. For a 4-bit quantizer, we map signal values to 16 distinct levels (0000 to 1111).

Applications of PCM

  • Digital Telephony: Standard for PSTN and VoIP calls.
  • Digital Audio: Audio CDs (16-bit PCM @ 44.1 kHz), WAV, and AIFF files.
  • Space Communication: Robust against noise in deep space telemetry.
  • ISDN: Integrated services over digital telephone lines.

People are good at skipping over material they already know!

View Related Topics to







Contact Us

Name

Email *

Message *

Popular Posts

Rayleigh vs Rician Fading (with MATLAB + Simulator)

  In Rayleigh fading , the channel coefficients tend to have a Rayleigh distribution, which is characterized by a random phase and magnitude with an exponential distribution. This means the magnitude of the channel coefficient follows an exponential distribution with a mean of 1. In Rician fading , there is a dominant line-of-sight component in addition to the scattered components. The channel coefficients in Rician fading can indeed tend towards 1, especially when the line-of-sight component is strong. When the line-of-sight component dominates, the Rician fading channel behaves more deterministically, and the channel coefficients may tend towards the value of the line-of-sight component, which could be close to 1.   MATLAB Script clc; clear all; close all; % Define parameters numSamples = 1000; % Number of samples K_factor = 5; % K-factor for Rician fading SNR_dB = 20; % Signal-to-noise ratio (in dB) % Generate complex Gaussian random variable for Rayleigh fading channel h_r...

UGC-NET Electronic Science Question Paper With Answer Key and Full Explanation [Dec 2023]

    UGC-NET Electronic Science Question Paper With Answer Key Download Pdf [Dec 2023] Download Question Paper               See Answers   2025 | 2024 | 2023 | 2022 | 2021 | 2020 UGC-NET Electronic Science  2023 Answers with Explanations 51. (A): The stacking fault is the most common area defect found in silicon. These faults typically occur along the 111 plane. In the crystalline structure of silicon, atoms are arranged in a specific pattern known as a diamond lattice. A stacking fault refers to a disruption in the normal order of atomic layers within this lattice, which usually occurs in the 111 plane due to the geometric arrangement of the atoms. This type of defect can affect the electrical and mechanical properties of the material, such as the mobility of charge carriers and mechanical strength. 52. (C): The important figure of merit for the microwave application of a Schot...

BER vs SNR for M-ary QAM, M-ary PSK, QPSK, BPSK, ...(MATLAB Code + Simulator)

Bit Error Rate (BER) & SNR Guide Analyze communication system performance with our interactive simulators and MATLAB tools. 📘 Theory 🧮 Simulators 💻 MATLAB Code 📚 Resources BER Definition SNR Formula BER Calculator MATLAB Comparison 📂 Explore M-ary QAM, PSK, and QPSK Topics ▼ 🧮 Constellation Simulator: M-ary QAM 🧮 Constellation Simulator: M-ary PSK 🧮 BER calculation for ASK, FSK, and PSK 🧮 Approaches to BER vs SNR What is Bit Error Rate (BER)? The BER indicates how many corrupted bits are received compared to the total number of bits sent. It is the primary figure of merit for a...

How to use MATLAB Simulink

Introduction to MATLAB Simulink MATLAB Simulink is a popular add-on of MATLAB. Here, you can use different blocks like modulator, demodulator, AWGN channel, etc. And you can do experiments on your own. Steps to Get Started 1. Go to the 'Simulink' tab at the top navbar of MATLAB. If not found, click on the add-on tab, search 'Simulink,' and then click on it to add. 2. Once you installed the simulation, click the 'new' tap at the top left corner. 3. Then, search the required blocks in the 'Simulink library.' Then, drag it to the editor space. 4. You can double-click on the blocks to see the input parameters. 5. Then, connect the blocks by dragging a line from one block's output terminal to another block's input. 6. If the connection is complete, click the 'run' tab in the middle of the top navbar. 7. After clicking on the run ...

Theoretical vs. simulated BER vs. SNR for ASK, FSK, and PSK (MATLAB Code + Simulator)

📘 Overview 🧮 Simulator 💻 Theoretical Code 📊 Simulated Code 📚 Resources Overview BER vs. SNR denotes how many bits in error are received for a given signal-to-noise ratio, typically measured in dB. Common noise types in wireless systems: 🚀 1. Additive White Gaussian Noise (AWGN) 🌊 2. Rayleigh Fading AWGN adds random noise; Rayleigh fading attenuates the signal variably. A good SNR helps reduce these effects. Bit Error Rate (BER) Equations BER formulas for ASK, FSK, and PSK modulation schemes. ASK BER = 0.5 × erfc(0.5 × √SNR) FSK BER = 0.5 × erfc(√(SNR / 2)) PSK BER = 0.5 × erfc(√SNR) erfc / Q-function (Click here) Live BER S...

UGC NET Electronic Science Previous Year Question Papers

Home / Engineering & Other Exams / UGC NET 2022 PYQ 📥 Download UGC NET Electronics PDFs Complete collection of previous year question papers, answer keys and explanations for Subject Code 88. Start Downloading UGC-NET (Electronics Science, Subject code: 88) Subject_Code : 88; Department : Electronic Science; 📂 View All Question Papers Q. UGC Net Electronic Science Question Paper [June 2025] A. UGC Net Electronic Science Question Paper With Answer Key Download Pdf [June 2025] with full explanation Q. UGC Net Electronic Science Question Paper [December 2024] A. UGC Net Electronic Science Question Paper With Answer Key Download Pdf [December 2024] Q. UGC Net Electronic Science Question Paper [Aug 2024] A. UGC Net Electronic Scien...

OFDM Waveform with MATLAB Code (with Simulator)

  In OFDM (Orthogonal Frequency Division Multiplexing) , we transmit multiple orthogonal subcarriers simultaneously. Since the subcarriers are orthogonal , they do not interfere with each other, which is one of the main advantages of OFDM. Practically, OFDM converts a wideband signal into multiple narrowband orthogonal subcarriers. For typical wireless communication, if the signal bandwidth (or symbol duration) exceeds the coherence bandwidth of the channel, the signal experiences frequency-selective fading . Fading distorts the signal, making it difficult to recover the original information. By using OFDM, we transmit the same wideband signal across multiple orthogonal narrowband subcarriers, reducing the effect of fading. For example, if we want to transmit a signal of bandwidth 1024 kHz , we can divide it into N = 8 subcarriers . Each subcarrier is then spaced by: Δf = Total Bandwidth N = 1024 8 kHz...

Simulation of ASK, FSK, and PSK using MATLAB Simulink (with Online Simulator)

📘 Overview 🧮 How to use MATLAB Simulink 🧮 Simulation of ASK using MATLAB Simulink 🧮 Simulation of FSK using MATLAB Simulink 🧮 Simulation of PSK using MATLAB Simulink 🧮 Simulator for ASK, FSK, and PSK 🧮 Digital Signal Processing Simulator 📚 Further Reading ASK, FSK & PSK HomePage MATLAB Simulation Simulation of Amplitude Shift Keying (ASK) using MATLAB Simulink In Simulink, we pick different components/elements from MATLAB Simulink Library. Then we connect the components and perform a particular operation. Result A sine wave source, a pulse generator, a product block, a mux, and a scope are shown in the diagram above. The pulse generator generates the '1' and '0' bit sequences. Sine wave sources produce a specific amplitude and frequency. The scope displays the modulated signal as well as the original bit sequence created by the pulse generator. Mux i...