Module 7 · 11 min read · Free chapter
PCM, quantisation, DPCM, delta modulation and line coding
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.
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.
- Sampling. The message, band-limited to by an anti-aliasing filter, is sampled at . Telephone speech is limited to about 3.4 kHz and sampled at 8 kHz, giving a guard band.
- Quantisation. Each sample is rounded to the nearest of levels.
- Encoding. Each level is written as an -bit binary word, with .
The bit rate is simply bits per sample times samples per second:
For telephone PCM, 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 hertz. With rectangular pulses, the first spectral null is at , 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 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 with levels, the step size is
The error lies anywhere between and with equal chance. The average power of a uniform error over that range is
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 , the signal power is . Dividing by gives the signal-to-quantisation-noise ratio:
Each extra bit doubles , quadruples SQNR and adds about 6 dB. It also raises the bit rate by , 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 is used in North America and Japan, and A-law with 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 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 ", 0 means "step down by ". The receiver builds a staircase that follows the message, and . 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:
For a tone , this means .
If is too large, the staircase hunts up and down around flat parts of the message, which is granular noise. So is a compromise. Adaptive delta modulation changes 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 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 channels each need bits per sample at rate , the line rate is at least , 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 bits plus 1 framing bit, 193 bits in all, sent 8,000 times a second:
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:
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 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 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 for 1 and 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 and 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:
- Explain the stages of a PCM system with a block diagram and derive its bit rate and bandwidth.
- Derive quantisation noise and SQNR for a uniform quantiser, and explain why companding is used.
- Compare PCM, DPCM and delta modulation, including slope overload and granular noise.
- Design a TDM system for a given number of channels, or compare line codes.
Practice questions (our own, not previous-year questions).
- Derive the expression dB for a full-scale sinusoid. How many bits are needed for an SQNR of at least 40 dB? (10 marks)
- 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)
- 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 and .
- Take signal power for a full-scale sinusoid.
- Divide to get .
- Take logs: dB.
- Solve , giving , so 7 bits.
Quick revision
- PCM: sample at , quantise to levels, send .
- Telephone PCM is kb/s per channel.
- Minimum binary bandwidth is with ideal Nyquist pulses.
- Uniform quantiser: and .
- SQNR for a full-scale sinusoid is 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 .
- DM avoids slope overload when ; too large a 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.