Skip to content
GATEiit

GATE EC · Communications

PCM, DPCM

Pulse code modulation (sampling, uniform and companded quantization, encoding, bit rate and bandwidth, SQNR) and differential PCM with prediction gain and delta modulation, as tested in GATE EC numericals.

Before you start

This topic comes before: Bandwidth, Digital modulation schemes (ASK, PSK, FSK, QAM)

Concept notes

1. The PCM system: bit rate and bandwidth

Pulse code modulation (PCM) turns an analog message into bits in three steps:

  1. Sampling at fs≥2W (Nyquist rate 2W for a message band-limited to W).
  2. Quantization: each sample is rounded to one of L levels.
  3. Encoding: each level is sent as an n-bit code word, with L=2n (so n=⌈log⁡2L⌉).

The bit rate is

Rb=nfs  bits/s

With ideal Nyquist (sinc) pulses, binary transmission needs a minimum bandwidth BT=Rb/2. With raised-cosine pulses of roll-off α, BT=Rb2(1+α). At Nyquist-rate sampling, BT=nW: PCM bandwidth is n times the message bandwidth.

For time-division multiplexing of N such signals, the bit rate is Nnfs (plus any framing bits the question adds).

Why PCM? Regenerative repeaters remove noise at every hop, so noise does not accumulate; the cost is bandwidth.

m(t)Low-pass filterband-limit to WSamplerfs ≥ 2WQuantizerL = 2ⁿ levelsEncodern bits per samplebitsBit rate Rb = n·fs bits/s. Minimum channel bandwidth (Nyquist pulses) BT = Rb / 2.With raised-cosine pulses of roll-off α: BT = (Rb / 2)(1 + α).
PCM transmitter: band-limit, sample, quantize, encode.

2. Uniform quantization noise and SQNR

A uniform quantizer covering −mp to +mp with L levels has step

Δ=2mpL

The error q=x^−x is assumed uniform on (−Δ/2,Δ/2), so its mean is 0 and its power is

Nq=Δ212=mp23L2

For a message of power P, SQNR=PNq=3L2Pmp2.

Full-scale sinusoid (P=mp2/2): SQNR=1.5L2=1.5×4n, so

SQNRdB≈1.76+6.02 n

Key trade-off: each extra bit adds about 6 dB of SQNR (it doubles L, quartering Nq) but raises Rb and bandwidth by a factor (n+1)/n. SQNR grows exponentially with bandwidth.

A midrise quantizer has no zero output level (levels at ±Δ/2,±3Δ/2,…); a midtread quantizer has a zero level. Inputs beyond ±mp cause overload (clipping) error, which the Δ2/12 formula does not include.

xoutputΔMidrise quantizer, L = 8 levelsxerror q − x+Δ/2−Δ/2Error stays within ±Δ/2: power Δ²/12
Left: midrise uniform quantizer with step Δ (dashed: ideal output = input). Right: the quantization error is a sawtooth between −Δ/2 and +Δ/2.

3. Non-uniform quantization and companding

With uniform steps, SQNR depends on signal power: a quiet talker gets a much lower SQNR than a loud one. Speech has many small amplitudes, so non-uniform quantization uses small steps near zero and large steps near the peaks.

It is done by companding: compress the signal, quantize uniformly, and expand at the receiver.

  • μ-law (North America, Japan), μ=255 in practice: y=sgn⁡(x) ln⁡(1+μ∣x∣)ln⁡(1+μ),∣x∣≤1
  • A-law (Europe, India), A=87.6: linear for ∣x∣≤1/A, logarithmic above.

Effect: SQNR becomes nearly constant over a wide range of input levels (wide dynamic range), at the cost of a little SQNR for full-scale signals. μ=0 gives a uniform quantizer.

Standard telephone PCM: W≈3.4 kHz, fs=8 kHz, n=8, so Rb=64 kbps per voice channel.

4. Differential PCM and prediction gain

Adjacent samples of speech or video are strongly correlated, so sending each sample in full wastes bits. DPCM sends only the prediction error

e[n]=m[n]−m^[n]

where m^[n] is predicted from past quantized samples. Since σe2<σm2, the quantizer range and step can be smaller for the same bits. The SQNR improves by the prediction gain

Gp=σm2σe2,SQNRDPCM=Gp×SQNRPCM

For a first-order predictor m^[n]=a m[n−1] on a signal with normalised autocorrelation ρ between adjacent samples:

σe2=σm2(1+a2−2aρ)

The best choice is a=ρ, giving σe2=σm2(1−ρ2). With a=1 (send plain differences), σe2=2σm2(1−ρ), which helps only if ρ>0.5.

Alternatively, keep the SQNR and save bits: about 10log⁡10Gp/6.02 bits per sample.

Why the predictor uses quantized samples: the receiver only has quantized values. Putting the quantizer inside the loop (diagram) keeps transmitter and receiver predictions identical, so quantization errors do not accumulate; the reconstruction error equals the quantization error of e[n].

m[n]Σ+−e[n]Quantizereq[n]toencoder+Σmq[n]Predictor+m̂[n] (prediction)The decoder has the same Σ–predictor loop.
DPCM encoder. The predictor works on the reconstructed signal m_q[n] = m̂[n] + e_q[n], so the quantizer sits inside the loop.

5. Delta modulation: one-bit DPCM

Delta modulation (DM) is DPCM with a 1-bit quantizer and m^[n]=mq[n−1]: each sample the staircase approximation steps up or down by a fixed δ. Bit rate Rb=fs, and fs is many times the Nyquist rate.

Two kinds of error

Error Cause Cure
Slope overload message rises faster than the staircase can follow increase δ or fs
Granular (idle) noise staircase hunts ±δ around a slowly varying signal decrease δ

So δ is a compromise; adaptive DM varies it.

No slope overload needs the staircase slope to exceed the message slope:

δTs=δfs≥max⁡∣dmdt∣

For m(t)=Amsin⁡(2πfmt) the maximum slope is 2πfmAm, so

Am≤δfs2πfm

The largest allowed amplitude falls as 1/fm: high-frequency tones overload first.

Formulas to remember

PCM bit raten=⌈log⁡2L⌉ bits per sample
Rb=nfs
Minimum transmission bandwidthRaised-cosine roll-off α
BT=Rb2  (ideal),BT=Rb2(1+α)
Step size
Δ=2mpL
Quantization noise power
Nq=Δ212
SQNR, full-scale sinusoid
SQNR=1.5L2,SQNRdB≈1.76+6.02 n
Prediction gain
Gp=σm2σe2
First-order predictor errorMinimum σm2(1−ρ2) at a=ρ
σe2=σm2 (1+a2−2aρ)
DM no slope overloadFor a sinusoid Amsin⁡2πfmt
δfs≥2πfmAm
μ-law compressor
y=sgn⁡(x) ln⁡(1+μ∣x∣)ln⁡(1+μ)

Common mistakes

  • Using L instead of n=log⁡2L in the bit rate; Rb=nfs, not Lfs.
  • Forgetting that the minimum bandwidth is Rb/2, not Rb, for ideal binary Nyquist pulses.
  • Rounding n down when an SQNR target gives a fraction; always round up.
  • Applying 1.76+6.02n to a signal that is not a full-scale sinusoid; use 3L2P/mp2 in general.
  • Saying a larger delta-modulation step reduces all noise; it cures slope overload but increases granular noise.
  • Thinking DPCM quantization errors pile up; with the predictor fed by quantized samples, they do not.

Worked examples

Try each step yourself, then reveal the working.

Example 1: Bit rate, bandwidth and SQNR of a PCM link

numerical

A message band-limited to 4 kHz is sampled at the Nyquist rate and quantized into 256 levels. Find the bit rate, the minimum transmission bandwidth, and the SQNR for a full-scale sinusoid.

  1. Step 1: Find $n$ and $f_s$.

    Try it on paper first.

Example 2: Choosing the number of bits

numerical

An audio signal of bandwidth 5 kHz is sampled 20% above the Nyquist rate. The SQNR for a full-scale sinusoid must be at least 40 dB. Find n, the bit rate, and the bandwidth with raised-cosine pulses of roll-off 0.5.

  1. Step 1: Find the minimum $n$.

    Try it on paper first.

Example 3: Prediction gain of a first-order DPCM

numerical

A signal has adjacent-sample correlation ρ=0.9. Find the prediction gain in dB for (a) the optimum first-order predictor and (b) the simple difference predictor a=1. About how many bits per sample does (a) save?

  1. Step 1: Optimum predictor $a = \rho$.

    Try it on paper first.

Example 4: Slope overload in delta modulation

numerical

A DM system has step δ=0.1 V and fs=32 kHz. The input is Amsin⁡(2π⋅1000 t). Find the largest Am that avoids slope overload.

  1. Step 1: Write the condition.

    Try it on paper first.

Previous year questions

1 official GATE EC question on this topic, newest first.

Topic test

9 questions: up to 1 official PYQs and original practice questions, with GATE marking (MCQ wrong answers lose marks). Score 60% or more to pass. A new set is drawn each time.

Mark as mastered

Loading your progress…

My revision notes

Notes written by the GATEiit team against the official GATE EC syllabus; being checked by a reviewer. Updated 2026-11-29. Spotted a mistake? Use Report an issue on any question, or contact us.