Electronics and Communication Engineering‹›⌂ 0:00 studied

Module 7 · 11 min read · Free chapter

PCM, quantisation, DPCM, delta modulation and line coding

In short

PCM samples a signal at twice its bandwidth or more, rounds each sample to one of 2ⁿ levels and sends n bits per sample, so a phone call needs 8 × 8000 = 64 kb/s. Quantisation noise is Δ²/12, and each extra bit adds about 6 dB of SQNR. Delta modulation sends one bit per sample and must avoid slope overload.

What are you preparing for? We show the practice and previous year questions of your exam.

Start from zero: why phone calls went digital

An analog phone call crossing the country had to pass through many amplifiers. Each one boosted the voice but also the noise picked up on the way, so the far end heard a growing hiss.

A digital signal behaves differently. At each repeater, the equipment only has to decide whether a pulse is a 1 or a 0, and then send a fresh, clean pulse. As long as the decisions are right, the noise does not build up at all.

To send a voice digitally, three steps are needed. Sample it, quantise each sample to a fixed set of levels, and encode each level as bits. Together these make pulse code modulation, or PCM, which has carried telephone calls since the 1960s and is still inside every landline and mobile network.

This chapter covers PCM and its relatives, then how bits are multiplexed and turned into pulses on a wire. The sampling theorem from the Fourier chapter is the starting point.

Why it matters. Bit rate, quantisation noise, SQNR per bit and delta-modulation slope questions appear in GATE EC, ESE and RRB JE almost every year.

Pulse code modulation

A PCM system has three stages.

  1. Sampling. The message, band-limited to WW by an anti-aliasing filter, is sampled at fs≥2Wf_s \ge 2W. Telephone speech is limited to about 3.4 kHz and sampled at 8 kHz, giving a guard band.
  2. Quantisation. Each sample is rounded to the nearest of LL levels.
  3. Encoding. Each level is written as an nn-bit binary word, with L=2nL = 2^n.

The bit rate is simply bits per sample times samples per second:

Rb=n fsR_b = n\, f_s

For telephone PCM, Rb=8×8000=64R_b = 8 \times 8000 = 64 kb/s per voice channel. This 64 kb/s figure is the basic building block of the digital telephone network.

The bandwidth needed depends on pulse shaping. With ideal Nyquist pulses, a binary stream needs at least Rb2\dfrac{R_b}{2} hertz. With rectangular pulses, the first spectral null is at RbR_b, which is often used as the practical figure.

Worked example. Music of bandwidth 20 kHz is sampled at 44.1 kHz with 16 bits per sample in each of two stereo channels. The bit rate is 44100×16×2≈1.4144100 \times 16 \times 2 \approx 1.41 Mb/s, which is CD audio.

Why it matters. Bit-rate and minimum-bandwidth calculations are the most common PCM questions at every level.

Quantisation noise and companding

Rounding each sample to the nearest level makes a small error. For a uniform quantiser covering a peak-to-peak range 2mp2m_p with LL levels, the step size is

Δ=2mpL\Delta = \frac{2m_p}{L}

The error lies anywhere between −Δ2-\dfrac{\Delta}{2} and +Δ2+\dfrac{\Delta}{2} with equal chance. The average power of a uniform error over that range is

Nq=Δ212N_q = \frac{\Delta^2}{12}

This quantisation noise is the price of going digital. Unlike channel noise, it is fixed at the transmitter and does not depend on distance.

For a full-scale sinusoid of amplitude mpm_p, the signal power is mp22\dfrac{m_p^2}{2}. Dividing by NqN_q gives the signal-to-quantisation-noise ratio:

SQNR=32 L2=1.5×22n,SQNRdB≈6.02n+1.76\mathrm{SQNR} = \frac{3}{2}\, L^2 = 1.5 \times 2^{2n}, \qquad \mathrm{SQNR_{dB}} \approx 6.02n + 1.76

Each extra bit doubles LL, quadruples SQNR and adds about 6 dB. It also raises the bit rate by fsf_s, so quality is traded for bandwidth.

Speech has a problem: quiet passages are much smaller than loud ones. With uniform steps, quiet sounds get a poor SQNR. Companding fixes this by compressing the signal before uniform quantisation and expanding it after, which gives effectively small steps for small signals and big steps for big ones.

Two standard laws are used. μ-law with μ=255\mu = 255 is used in North America and Japan, and A-law with A=87.6A = 87.6 is used in India and Europe. Both keep SQNR nearly constant over about 40 dB of input level.

Worked example. A sinusoid uses the full range of an 8-bit uniform quantiser. Then SQNR≈6.02×8+1.76≈49.9\mathrm{SQNR} \approx 6.02 \times 8 + 1.76 \approx 49.9 dB.

Why it matters. "Find the bits needed for a given SQNR" and "how much does SQNR improve per bit" are standard one- and two-mark questions.

DPCM and delta modulation

Neighbouring samples of speech or video are usually close in value. Sending each one in full wastes bits on information the receiver could almost guess.

Differential PCM (DPCM) uses this. Both ends run the same predictor, which guesses the next sample from past ones. The transmitter quantises and sends only the prediction error, the difference between the actual sample and the guess. That difference has a much smaller range, so fewer bits give the same SQNR, or the same bits give a better one.

The simplest DPCM is delta modulation (DM). It uses a single bit per sample: 1 means "step up by Δ\Delta", 0 means "step down by Δ\Delta". The receiver builds a staircase that follows the message, and Rb=fsR_b = f_s. DM samples much faster than the Nyquist rate to make this work.

Two kinds of error limit DM. If the message rises faster than the staircase can climb, the staircase falls behind; this is slope overload. To avoid it, the largest staircase slope must cover the message's steepest slope:

Δ fs≥max⁡∣dmdt∣\Delta\, f_s \ge \max\left\lvert \frac{dm}{dt} \right\rvert

For a tone Amcos⁡(2πfmt)A_m\cos(2\pi f_m t), this means Δfs≥2πfmAm\Delta f_s \ge 2\pi f_m A_m.

If Δ\Delta is too large, the staircase hunts up and down around flat parts of the message, which is granular noise. So Δ\Delta is a compromise. Adaptive delta modulation changes Δ\Delta on the fly to reduce both problems.

Worked example. A 1 kHz tone of amplitude 1 V is delta modulated at 64 kHz. The minimum step to avoid slope overload is Δ=2π×1000×164000≈0.098\Delta = \dfrac{2\pi \times 1000 \times 1}{64000} \approx 0.098 V.

Why it matters. The slope-overload condition is one of the most frequently asked DM numericals in GATE and ESE.

Time-division multiplexing

A PCM channel uses the line only in short bursts, so many channels can share one line by taking turns. This is time-division multiplexing (TDM). A multiplexer picks one sample from each channel in a fixed order, forming a frame, and repeats this once per sampling period.

If NN channels each need nn bits per sample at rate fsf_s, the line rate is at least NnfsN n f_s, plus a few bits for framing, so the receiver knows where each frame starts.

Two standard systems are worth remembering. The North American T1 carries 24 voice channels. Each frame holds 24×8=19224 \times 8 = 192 bits plus 1 framing bit, 193 bits in all, sent 8,000 times a second:

RT1=193×8000=1.544 Mb/sR_{T1} = 193 \times 8000 = 1.544\ \text{Mb/s}

The E1 system, used in India and Europe, has 32 time slots of 8 bits each per frame. Slot 0 is used for framing and slot 16 for signalling, leaving 30 voice channels:

RE1=32×8×8000=2.048 Mb/sR_{E1} = 32 \times 8 \times 8000 = 2.048\ \text{Mb/s}

Higher levels stack these. TDM is also how GSM shares one radio carrier among 8 users, each in its own time slot.

Worked example. Ten channels, each band-limited to 4 kHz, are sampled at the Nyquist rate and coded with 8 bits, with no framing bits. The line rate is 10×8×8000=64010 \times 8 \times 8000 = 640 kb/s, and the minimum Nyquist bandwidth is 320 kHz.

Why it matters. TDM bit-rate questions combine sampling, quantisation and multiplexing in one numerical, a favourite at JE and AE level.

Line codes

Before bits go onto a cable, they are turned into voltage pulses by a line code. A good line code has no DC component, because many lines pass through transformers. It should also give frequent transitions for clock recovery, use little bandwidth and, ideally, reveal errors.

Unipolar NRZ sends +V+V for 1 and 0 for 0 over the whole bit. It is simple but has a DC component, and long runs of the same bit give no transitions.

Polar NRZ sends +V+V for 1 and −V-V for 0. It has no DC on average if 1s and 0s are equally likely, and it has the best noise performance for its power, but long runs still lose the clock.

Bipolar AMI (alternate mark inversion) sends 0 V for 0 and alternates +V+V and −V-V for successive 1s. It has no DC, a narrow spectrum, and any single error breaks the alternation, so it can be detected. Long strings of 0s still lose the clock; variants like HDB3, used on E1 lines, insert special patterns to fix this.

Manchester coding puts a transition in the middle of every bit: high-to-low for one value and low-to-high for the other. Clock recovery is easy and there is no DC, but the bandwidth is about twice that of NRZ. Classic 10 Mb/s Ethernet uses it.

Why it matters. Matching a line code to its property, such as "which has no DC and detects single errors?", is a frequent one-mark question.

Descriptive lens

Written papers ask about this topic in four ways:

  1. Explain the stages of a PCM system with a block diagram and derive its bit rate and bandwidth.
  2. Derive quantisation noise and SQNR for a uniform quantiser, and explain why companding is used.
  3. Compare PCM, DPCM and delta modulation, including slope overload and granular noise.
  4. Design a TDM system for a given number of channels, or compare line codes.

Practice questions (our own, not previous-year questions).

  1. Derive the expression SQNR≈6.02n+1.76\mathrm{SQNR} \approx 6.02n + 1.76 dB for a full-scale sinusoid. How many bits are needed for an SQNR of at least 40 dB? (10 marks)
  2. Explain delta modulation with a block diagram. Derive the condition to avoid slope overload for a tone and comment on the choice of step size. (15 marks)
  3. Explain the frame structure of the E1 system. Find the bit rate and the minimum bandwidth with ideal Nyquist pulses. (10 marks)

Answer plan for question 1.

  • Write Δ=2mp2n\Delta = \dfrac{2m_p}{2^n} and Nq=Δ212N_q = \dfrac{\Delta^2}{12}.
  • Take signal power mp22\dfrac{m_p^2}{2} for a full-scale sinusoid.
  • Divide to get SQNR=1.5×22n\mathrm{SQNR} = 1.5 \times 2^{2n}.
  • Take logs: 10log⁡101.5+20nlog⁡102≈1.76+6.02n10\log_{10}1.5 + 20n\log_{10}2 \approx 1.76 + 6.02n dB.
  • Solve 6.02n+1.76≥406.02n + 1.76 \ge 40, giving n≥6.35n \ge 6.35, so 7 bits.

Quick revision

  • PCM: sample at fs≥2Wf_s \ge 2W, quantise to L=2nL = 2^n levels, send Rb=nfsR_b = nf_s.
  • Telephone PCM is 8×8000=648 \times 8000 = 64 kb/s per channel.
  • Minimum binary bandwidth is Rb2\dfrac{R_b}{2} with ideal Nyquist pulses.
  • Uniform quantiser: Δ=2mpL\Delta = \dfrac{2m_p}{L} and Nq=Δ212N_q = \dfrac{\Delta^2}{12}.
  • SQNR for a full-scale sinusoid is 6.02n+1.766.02n + 1.76 dB, about 6 dB per bit.
  • Companding uses μ-law (255) or A-law (87.6, India and Europe).
  • DPCM sends the prediction error; DM sends 1 bit per sample with Rb=fsR_b = f_s.
  • DM avoids slope overload when Δfs≥2πfmAm\Delta f_s \ge 2\pi f_m A_m; too large a Δ\Delta gives granular noise.
  • T1 is 193 bits × 8,000 = 1.544 Mb/s; E1 is 32 × 8 × 8,000 = 2.048 Mb/s.
  • AMI has no DC and detects single errors; Manchester gives easy clocking at double bandwidth.

Check yourself

Exam-style questions on this chapter. Pick an answer to see the explanation. 0 of 12 answered

  1. Speech band-limited to 4 kHz is sampled at the Nyquist rate and coded with 8 bits per sample. The bit rate is:

  2. A quantiser needs at least 100 levels. The number of bits per sample is:

  3. A binary PCM stream at 64 kb/s is sent with ideal Nyquist pulses. The minimum channel bandwidth is:

  4. A uniform quantiser has step size Δ\Delta. Its mean-square quantisation noise is:

  5. Increasing the number of bits per sample in PCM by one improves the SQNR by about:

  6. The minimum number of bits for an SQNR of at least 40 dB with a full-scale sinusoid is:

  7. The companding law used for telephone PCM in India is:

  8. A 1 kHz tone of amplitude 1 V is delta modulated at 64 kHz. The minimum step size that avoids slope overload is about:

  9. In delta modulation, granular noise is caused by:

  10. The bit rate of the T1 carrier system is:

  11. Ten channels, each band-limited to 4 kHz, are sampled at the Nyquist rate, coded with 8 bits and time-division multiplexed with no framing bits. The line rate is:

  12. Which line code has no DC component and can detect single bit errors?

Previous year questions

Previous year questions for UPSC CSE will appear here once each one is checked word for word against the official question paper.

Learn with AI

A tutor that asks instead of telling, a partner that argues the other side, and this chapter told through your own district.

Tell the tutor what you are stuck on. It will guide you with questions and give the answer after a few tries.

🙋 Raise a doubt or feedback

Stuck somewhere, or spotted a mistake? Write to the ExamHike team. We usually reply within a day, and you will see the reply on My progress.

Log in to ask a doubt or send feedback →

Frequently asked questions

How much does one extra bit improve PCM?

It doubles the number of levels and improves SQNR by about 6 dB, while raising the bit rate by one sampling rate.

What is slope overload in delta modulation?

It happens when the message rises faster than the staircase can follow; avoiding it needs step size × sampling rate ≥ the largest message slope.

What is the bit rate of E1?

32 slots × 8 bits × 8,000 frames per second = 2.048 Mb/s, with 30 voice channels.

Which companding law does India use?

A-law with A = 87.6, as in Europe; North America and Japan use μ-law with μ = 255.

More in this module: Digital communication

Official sources

Facts in this chapter were checked against these official sources.

  1. GATE 2026 Electronics and Communication Engineering (EC) syllabus, IIT Guwahati
  2. NPTEL Digital Communication (IIT Kharagpur, 117105077): sampling, PCM, quantisation, DPCM, delta modulation and line codes