Chapter 4 · 8 hours
Pulse Modulation
IOE past exam questions
Past questions and answers
53 questions set from this chapter, 6 of them more than once. Most asked first.
- Asked 2 times
- 2081 Bhadra (CS II) · 4 marks
- 2070 Chaitra (CS II) · 6 marks
Write a short note on linear prediction theory.
Answer
Linear prediction estimates the present sample of a signal as a linear combination of its past samples. It is the basis of DPCM, ADPCM and speech coders (LPC), because only the small prediction error needs to be transmitted.
Predictor. With past samples:
The prediction error is
x[n] --+------------------>( + )--> e[n]
| ^ -
v |
[z^-1]->[z^-1]-> ... ->[z^-1] (tapped delay line)
|w1 |w2 |wp
+-------+---- ... -----+--> sum = x^[n]
Optimum coefficients. The weights are chosen to minimise the mean-square error
Setting gives the normal (Wiener–Hopf) equations:
or in matrix form , so , where is the autocorrelation of the input. The minimum error is
Example: first-order predictor (): , and . For highly correlated speech (), the error variance is only 19% of the signal variance.
Key points:
- Prediction gain gives an SQNR improvement in DPCM of dB (typically 4–11 dB for speech).
- If the statistics change with time, an adaptive predictor updates the weights (e.g. by the LMS algorithm), as in ADPCM.
- In DPCM the predictor works on quantised samples, so transmitter and receiver predictions stay identical.
- Asked 2 times
- 2076 Chaitra (CS II) · 2+5 marks
- 2073 Shrawan (CS II) · 2+6 marks
Explain the need for non uniform quantization. Determine the SQNR for delta modulation with no slope overload condition.
Answer
Need for non-uniform quantization
In uniform quantization the step size is fixed, so the quantization noise power is the same for all signal levels. Hence:
- Weak signals (low amplitude) get a poor SQNR, while loud signals get a high SQNR.
- Speech has a wide dynamic range (about 40 dB) and small amplitudes occur much more often than large ones.
- To keep weak signals acceptable with uniform steps, many more bits would be needed.
Non-uniform quantization uses small steps for small amplitudes and large steps for large amplitudes. This gives nearly constant SQNR over a wide range of input levels with fewer bits (8 bits instead of about 12 for telephony). It is implemented by companding (-law, A-law).
SQNR of delta modulation (no slope overload)
Let the message be a single tone , step size , sampling rate , and the receiver LPF bandwidth .
1. Condition for no slope overload. The staircase can rise by at most per :
2. Signal power (with maximum amplitude):
3. Granular noise power. With no slope overload, the error lies within and is uniformly distributed:
This power is spread uniformly over to . The output LPF passes only , so
4. SQNR:
In dB:
So SQNR improves by 9 dB each time is doubled. Example: kHz, kHz, kHz gives SQNR dB.
- Asked 2 times
- 2076 Asoj (CS II) · 2+5 marks
- 2069 Chaitra (CS II) · 3+4 marks
What is companding and why it is necessary? Explain any two types of companding techniques.
Answer
Companding (compressing + expanding) is a way to obtain non-uniform quantization: the signal is compressed by a non-linear amplifier before a uniform quantizer at the transmitter, and expanded by the inverse characteristic at the receiver.
m(t)->[Compressor]->[Uniform Q]->channel->[Expander]->m(t)
y = c(x) x = c^-1(y)
Why it is necessary
- With uniform quantization, noise is fixed, so weak signals have poor SQNR.
- Speech has a large dynamic range and small amplitudes are most frequent.
- The compressor boosts small amplitudes and reduces large ones, so effectively small inputs see fine steps and large inputs coarse steps. The SQNR stays nearly constant (within a few dB) over about 40 dB of input range with only 8 bits.
μ-law companding (North America, Japan)
- gives uniform quantization; the standard value is (8-bit PCM).
- For small it is nearly linear (); for large it is logarithmic.
- Example with : ; ; .
A-law companding (Europe, India, Nepal – ITU-T G.711)
- Standard value . It is linear for small signals and logarithmic for large ones.
- In practice both laws are realised by a 13-segment (A-law) or 15-segment (μ-law) piecewise-linear approximation.
y (out)
1 | . . . . <- compressed
| . .
| . .... <- uniform (y = x)
| . ....
|. ....
|. ..
+-------------------- x (in)
0 1
- Asked 2 times
- 2075 Asoj (CS II) · 2+4 marks
- 2071 Chaitra (CS II) · 2+5 marks
Explain why DPCM is preferred over PCM? Explain the working principle of DPCM with necessary transmitter and receiver.
Answer
Why DPCM is preferred over PCM
Speech and video samples taken at or above the Nyquist rate are highly correlated: adjacent samples differ only slightly. PCM codes every sample fully, so it sends much redundant information.
DPCM predicts each sample from past samples and quantizes only the difference (prediction error). Since the error has a much smaller range than the signal:
- For the same number of bits, the step size is smaller, so SQNR improves by the prediction gain (typically 4–11 dB for speech).
- For the same SQNR, fewer bits per sample are needed, so bit rate and bandwidth are lower (e.g. 32 kbps ADPCM vs 64 kbps PCM).
DPCM transmitter
m[n]-->(+)--e[n]-->[Quantizer]--+--eq[n]->[Encoder]->
^ - |
| v
m^[n] (+)<------+
| | mq[n] |
+----[Predictor]<-------+ |
| |
+----------------------+
- Prediction error: .
- Quantized error: , which is encoded and transmitted.
- The predictor input is the reconstructed sample .
- Then : the quantized sample differs from the original only by the quantization error of , so errors do not accumulate.
- The predictor (a linear FIR filter, ) works on , the same signal available at the receiver.
DPCM receiver
in->[Decoder]--eq[n]-->(+)--+--> mq[n] -->[LPF]--> m(t)
^ |
m^[n]| |
+--[Predictor]
The decoder recovers ; the same predictor as in the transmitter gives ; their sum gives . A low-pass filter reconstructs the analog signal.
Note: delta modulation is a special case of DPCM with a 1-bit quantizer and a one-sample delay as the predictor.
- Asked 2 times
- 2074 Asoj (CS II) · 7 marks
- 2070 Asar (CS II) · 8 marks
Derive expression for evaluating signal-to-quantization noise ratio (SQNR) for uniform quantization in terms of number of levels and number of bits per source symbol.
Answer
SQNR is the ratio of signal power to quantization noise power at the output of a quantizer.
Step 1: Step size
Let the message lie in and be quantized uniformly into levels. Then the step size is
Step 2: Quantization noise power
The quantization error lies in . For a fine quantizer it is uniformly distributed, with pdf :
Step 3: SQNR in terms of levels
With message power :
Step 4: SQNR in terms of bits
With binary coding of bits per sample, :
Special case: full-scale sinusoid
For , :
Example: bits gives SQNR dB.
Conclusions:
- SQNR increases as the square of the number of levels.
- SQNR increases exponentially with bits: each extra bit adds about 6 dB.
- But each extra bit increases the bit rate and the bandwidth , so there is a trade-off between SQNR and bandwidth.
- Asked 2 times
- 2072 Chaitra (CS II) · 2+5 marks
- 2071 Chaitra (CS II) · 2+5 marks
State Nyquist sampling theory. Determine the Nyquist rate and Nyquist interval for a continuous time signal x(t) = 6cos50πt + 20sin300πt − 10cos100πt is to be sampled and quantize using 512 levels.
Answer
Nyquist sampling theorem
A band-limited signal with no frequency components above Hz is completely described by, and can be exactly recovered from, its samples taken uniformly at a rate
The minimum rate is the Nyquist rate and is the Nyquist interval. Recovery is done by passing the samples through an ideal low-pass filter of cut-off . If , spectral copies overlap (aliasing) and recovery is impossible.
Nyquist rate and interval of the given signal
Frequencies of the components ():
| Term | (rad/s) | (Hz) |
|---|---|---|
| 25 | ||
| 150 | ||
| 50 |
Highest frequency: Hz.
Effect of quantizing with 512 levels
At the Nyquist rate the bit rate is
and the minimum transmission bandwidth is Hz.
Answer: Nyquist rate = 300 Hz, Nyquist interval = 3.33 ms (9 bits/sample, 2.7 kbps).
- 2080 Chaitra · 6+2 marks
Explain the Delta and Adaptive Delta Modulations encoders and decoders with their derivations and diagram. List out their merits and demerits.
Answer
Delta modulation (DM)
Delta modulation is 1-bit DPCM: the signal is oversampled, and only one bit per sample tells whether the signal is above or below the previous staircase approximation, which then moves up or down by a fixed step .
Equations:
So the receiver output is the accumulated (integrated) sum of steps.
DM transmitter
m(t)->[Sampler]->m[n]->(+)--e[n]-->[1-bit ]--+--> bits
^ - [quantizer] |
| v
mq[n-1] (+)
| |
+--[Delay z^-1]<--mq[n]-+
(accumulator)
DM receiver
bits->[Decoder +/-D]->(+)--+--> mq[n] --> [LPF] --> m(t)
^ |
+-[z^-1] (accumulator)
Noise in DM:
- Slope overload: if the signal slope exceeds , the staircase cannot follow. No overload needs ; for a tone, .
- Granular noise: when the signal is nearly flat, the staircase hunts by .
- SQNR (no overload, single tone): .
Adaptive delta modulation (ADM)
In ADM the step size is varied according to the signal slope: large steps for steep parts (to avoid slope overload) and small steps for flat parts (to reduce granular noise).
A common rule (Jayant / song algorithm):
with limits . Consecutive equal bits mean the staircase is lagging (step grows); alternating bits mean granular hunting (step shrinks).
m(t)->(+)->[1-bit Q]--+--------------> bits
^- |
| [Step-size logic]
| | D[n]
| v
+--[Accum.]<-[x]
Receiver: same step logic + accumulator + LPF
The receiver uses the same step-size logic on the received bits, so no side information is needed.
Merits and demerits
| DM | ADM | |
|---|---|---|
| Merits | Very simple 1-bit codec; no framing needed; robust to channel errors | Reduces both slope overload and granular noise; wider dynamic range; lower bit rate for same quality |
| Demerits | Slope overload and granular noise; needs high oversampling, so high bit rate | More complex step-size logic; errors can disturb step adaptation |
- 2079 Chaitra · 3+5 marks
Compare Pulse Code Modulation (PCM), Differential Pulse Code Modulation (DPCM) and Delta Modulation. Find the Signal to Quantization Noise ratio (SQNR) of Pulse Code Modulation (PCM).
Answer
Comparison of PCM, DPCM and DM
| Point | PCM | DPCM | DM |
|---|---|---|---|
| What is coded | Each sample value | Difference between sample and its prediction | Sign of difference only |
| Bits per sample | (e.g. 8) | Fewer than PCM (e.g. 4) | 1 |
| Sampling rate | (Nyquist) | Much higher than (oversampling) | |
| Predictor | None | Linear predictor | One-sample delay (accumulator) |
| Quantization noise | Granular, | Granular, smaller (prediction gain) | Granular + slope overload |
| SQNR | dB | PCM value + | |
| Bandwidth | Highest () | Less than PCM | Can be less, but needs high |
| Complexity | Moderate | Most complex | Simplest |
| Use | Telephony (64 kbps), CD | Speech, video coding | Simple voice links |
SQNR of PCM
Let have peak value and be quantized uniformly into levels.
Step size:
Noise power: the error is uniform in :
SQNR: with signal power ,
For a full-scale sinusoid, :
Each extra bit adds about 6 dB. Example: 8-bit PCM gives dB.
- 2078 Chaitra · 2+3+4 marks
Explain the aperture effect during flat-topped sampling. Illustrate the DPCM scheme that overcomes the disadvantages of PCM. A delta modulator system is designed to operate at 5 times the Nyquist rate for a signal having a bandwidth equal to 3 kHz bandwidth. Calculate the maximum amplitude of a 2 kHz sinusoidal for which the delta modulator does not have slope overload. The given step size is 250 mV.
Answer
Aperture effect in flat-top sampling
In flat-top sampling each sample is held for a pulse width . The flat-top signal is the ideally sampled signal convolved with a rectangular pulse of width :
The message spectrum is multiplied by , so high frequencies are attenuated. This amplitude distortion (plus a delay ) is the aperture effect. It is reduced by keeping (duty ratio ≤ 0.1) or by an equalizer after the reconstruction filter with response .
DPCM scheme
PCM sends full samples although adjacent samples are highly correlated. DPCM sends only the quantized prediction error:
m[n]->(+)-e[n]->[Quant.]--+--eq[n]-->[Encoder]--> out
^- |
m^[n] (+)<-+
| | |
+--[Predictor]<-mq[n] |
+---------------+
Receiver: eq[n]->(+)->mq[n]->[LPF]; feedback via
the same predictor gives m^[n]
, . Since is small, fewer bits are needed, or SQNR improves by the prediction gain.
Numerical: maximum amplitude without slope overload
Given: kHz, Nyquist rate, kHz, mV.
No slope overload requires :
Answer: maximum amplitude V (597 mV).
- 2071 Magh (old course) · 6+2 marks
Derive the expression for the SQNR of uniformly quantized PCM. What is the relation between SQNR value and bit used for coding?
Answer
SQNR of uniformly quantized PCM
Let the message have peak amplitude (range to ) and be quantized uniformly into levels.
Step size:
Quantization noise. The error is uniformly distributed over with pdf :
Signal-to-quantization noise ratio. With signal power :
In terms of bits. For -bit binary coding, :
Sinusoidal message with full-scale amplitude, :
(For a uniformly distributed signal, and SQNR , i.e. dB.)
Relation between SQNR and bits
- SQNR grows exponentially with (); in dB it grows linearly: each added bit improves SQNR by about 6 dB.
- Example: 7 bits → 43.9 dB; 8 bits → 49.9 dB (for a full-scale sine).
- But bandwidth grows linearly with . So SQNR improves exponentially with bandwidth: a key trade-off in PCM.
- 2081 Bhadra (CS II) · 3+6 marks
State the practical considerations that need to be considered during sampling. Explain natural sampling with appropriate derivation.
Answer
Practical considerations in sampling
- Real signals are not strictly band-limited. An anti-aliasing low-pass filter is used before sampling to cut off components above .
- Sample above the Nyquist rate to provide a guard band, because practical reconstruction filters cannot have a sharp cut-off. Example: speech band-limited to 3.4 kHz is sampled at 8 kHz, not 6.8 kHz.
- Finite pulse width: practical samples are pulses of width (natural or flat-top), not impulses. Flat-top samples cause the aperture effect, which needs equalization.
- Non-ideal reconstruction filter: a practical LPF has a transition band, which needs the guard band above.
- Timing jitter and sample-and-hold accuracy in the ADC must be small.
Natural sampling
In natural sampling the message is multiplied by a periodic train of rectangular pulses of width and period ; the top of each pulse follows the message.
m(t) ---->(x)----> s(t) = m(t) c(t)
^
| c(t): pulses, width tau, period Ts
_ _ _ _
| | | | | | | | (tops follow m(t))
_| |_| |_| |_| |_
Derivation. is periodic, so it has the Fourier series
The sampled signal is
Using the frequency-shift property, :
Interpretation:
- The spectrum consists of copies of centred at , each weighted by a constant that depends only on .
- Each copy keeps the original shape of (no distortion), unlike flat-top sampling where the shape is multiplied by .
- The baseband term () is . If , the copies do not overlap, and an LPF of cut-off recovers exactly (scaled by ).
S(f)
| /\ /\ /\
| / \ ... / \ ... / \ (heights follow C_n)
+-/----\-----/----\------/----\---> f
-W 0 W fs-W fs fs+W 2fs
- 2081 Bhadra (CS II) · 3+4 marks
Differentiate between pulse amplitude and pulse position modulation. Explain the generation of pulse width modulation.
Answer
PAM vs PPM
| Point | PAM | PPM |
|---|---|---|
| Parameter varied | Amplitude of pulses | Position (time) of pulses |
| Pulse width and amplitude | Width fixed, amplitude varies | Both fixed |
| Noise immunity | Poor (noise adds to amplitude) | Good (amplitude noise can be clipped) |
| Transmitter power | Varies with signal | Constant |
| Bandwidth | Depends on pulse width; lowest | Large (needs sharp, narrow pulses) |
| Synchronisation | Not critical | Needs accurate timing reference |
| Generation | Sample-and-hold | Derived from PWM (differentiate trailing edges) |
| Detection | LPF / hold | Convert to PWM, then LPF |
Generation of PWM
Pulse width modulation (PWM) keeps amplitude and position of the leading edge fixed and varies the width of each pulse in proportion to the message sample.
+-----------+
m(t) ------->| (+) | +------------+
| sum |------>| Comparator |--> PWM
saw-tooth -->| | | (vs. Vref) |
(fs) +-----------+ +------------+
saw /| /| /| m(t) + saw compared with Vref
/ | / | / |
/ |/ |/ |
PWM ___ _____ __
| | | | | | width ~ m(nTs)
___| |__| |__| |__
Working (comparator method):
- A sawtooth (ramp) generator runs at the sampling frequency .
- The message is added to the ramp (or compared directly with the ramp).
- A comparator outputs HIGH while the ramp is below the message (or the sum exceeds the reference) and LOW otherwise.
- The time at which the crossing occurs depends on the message value, so the trailing edge moves and the pulse width is proportional to .
Alternative: a monostable multivibrator triggered at whose timing is controlled by the message voltage (e.g. 555 timer with the message on the control pin).
PPM from PWM: differentiate the PWM and use the trailing-edge spikes to trigger a fixed-width monostable; pulse positions then follow the message.
- 2081 Bhadra (CS II) · 5+3 marks
Elaborate on the technique of implementing non-uniform quantization using uniform quantization technique. With a suitable diagram, illustrate the working of μ law.
Answer
Non-uniform quantization using a uniform quantizer
A non-uniform quantizer is equivalent to a compressor, followed by a uniform quantizer, with an expander at the receiver. This is called companding.
x(t)->[Compressor]--y-->[Uniform ]-->[Encoder]-->channel
y = c(x) quantizer
channel->[Decoder]-->[Expander x = c^-1(y)]-->x^(t)
Technique:
- The input (normalised to ) is passed through a non-linear compressor with large slope near zero and small slope near full scale.
- A uniform quantizer with step operates on . Step in corresponds to a step in of
so where is large (small ) the effective step is fine, and where is small (large ) the step is coarse. 3. At the receiver, the expander undoes the compression. Compressor + expander together have a linear overall response. 4. If is logarithmic, , so the noise is proportional to the signal and SQNR is nearly constant for all levels.
In practice is implemented digitally as a piecewise-linear segmented characteristic, so standard uniform ADC/DACs can be used.
μ-law
- : uniform (linear). Standard for 8-bit PCM (North America, Japan).
- Small (): , linear with large gain (46 for ).
- Large (): , logarithmic.
Example (): , , , .
y
1.0| ____---- mu = 255
| __---- __-- mu = 5
| _-' ___---
| / __--- . mu = 0 (y = x)
| / _-- .
|/- .
+---------------------> x
0 1.0
Larger gives more compression and a wider dynamic range with nearly flat SQNR (about 38 dB over 40 dB input range for 8-bit ).
- 2081 Baisakh (CS II) · 7 marks
Explain the merits and demerits of flat-top sampling of a continuous time signal using relevant mathematical expressions.
Answer
Flat-top sampling produces pulses whose amplitude equals the instantaneous sample value and stays constant (flat) for the pulse duration . It is produced by a sample-and-hold circuit.
Mathematical model
The flat-top signal is
This equals the ideally sampled signal convolved with :
Taking the Fourier transform:
where
|H(f)|
T |\___
| \__ sinc envelope
| \___ attenuates higher
+-----------\----->f message frequencies
0 W 1/T
Merits
- Easy to generate with a sample-and-hold circuit; the constant level gives the ADC time to quantize, so it is the usual practical method before PCM encoding.
- Pulse tops are flat, so noise on the top is easier to handle and amplitude detection is simple.
- Since the amplitude is constant during the pulse, the energy per sample is well defined, giving a better SNR than very narrow pulses.
Demerits
- Aperture effect: each spectral copy is multiplied by , so higher message frequencies are attenuated: amplitude distortion. Example: at with and , , i.e. a 3.9 dB loss.
- Delay distortion: the term introduces a delay of .
- An equalizer with response (within the message band) is needed after the reconstruction LPF. The distortion is negligible if .
- Wider pulses need more bandwidth than ideal impulses and increase crosstalk in TDM.
Compared with natural sampling (where each copy of keeps its shape), flat-top sampling distorts the spectrum, but it is preferred in practice because of the simple hold-circuit implementation.
- 2081 Baisakh (CS II) · 2+5 marks
Define Pulse Code Modulation (PCM). A band-limited signal m(t) with a bandwidth of 3 kHz is sampled at a rate equal to twice the Nyquist rate. The step size used during the quantization process is 0.5% of the peak amplitude mp. Assuming binary encoding, determine the minimum bandwidth of the channel to transmit the encoded binary signal.
Answer
Pulse code modulation (PCM)
PCM is a method of converting an analog signal into a digital (binary) signal by three steps: sampling at or above the Nyquist rate, quantizing each sample to one of levels, and encoding each level into an -bit binary code word (). The binary pulses are then transmitted.
Numerical
Given: kHz, sampling at twice the Nyquist rate, step size of , binary coding.
Step 1: Sampling rate
Step 2: Number of levels. The signal swings from to , so
Step 3: Bits per sample. must be an integer with :
Step 4: Bit rate
Step 5: Minimum channel bandwidth. A binary signal of rate needs at least Hz (Nyquist bandwidth for ISI-free transmission):
Answer: minimum channel bandwidth = 54 kHz (9 bits/sample, 108 kbps).
- 2081 Baisakh (CS II) · 7 marks
Derive an expression for the SQNR (in dB) of the delta modulation for a single-tone analog signal.
Answer
Setup. Delta modulation uses step size , sampling rate and a reconstruction LPF of bandwidth at the receiver. The message is a single tone:
Step 1: Maximum amplitude without slope overload
The staircase can change by at most in , so the maximum slope it can follow is . The maximum slope of the tone is
No slope overload requires , so
Step 2: Signal power
Step 3: Granular (quantization) noise power
Without slope overload, the error stays within . Assuming it is uniformly distributed in :
This noise power is spread approximately uniformly over to . The LPF passes only to :
Step 4: SQNR
Step 5: In dB
Since dB,
Observations:
- SQNR : doubling the sampling rate improves SQNR by 9 dB (compared with 6 dB per extra bit in PCM).
- SQNR does not depend on (at the maximum amplitude), because the allowed amplitude and noise both scale with .
Example: kHz, kHz, kHz:
- 2080 Bhadra (CS II) · 8 marks
State and prove Nyquist sampling theorem.
Answer
Statement
A band-limited signal with no frequency components above Hz ( for ) is uniquely determined by its samples taken at uniform intervals , i.e. at a rate . It can be recovered exactly from the samples by an ideal low-pass filter of bandwidth .
The minimum rate is the Nyquist rate; is the Nyquist interval.
Proof
1. Ideal sampling. Multiply by a periodic impulse train:
2. Spectrum of the impulse train. It is periodic, with Fourier series coefficients :
3. Spectrum of the sampled signal. Multiplication in time is convolution in frequency:
So is repeated every Hz, scaled by .
f_s >= 2W (no overlap):
/\ /\ /\
/ \ / \ / \
--/----\----/----\----/----\---> f
-W 0 W fs-W fs 2fs
f_s < 2W: copies overlap -> aliasing
4. Condition for no overlap. The copy at occupies to . It does not overlap the baseband copy ( to ) if
5. Recovery. If , pass through an ideal LPF with for (any cut-off between and ):
so is recovered exactly.
6. Interpolation formula. With , the LPF impulse response is , so
Each sample is replaced by a sinc pulse and the sum rebuilds at all instants. This proves the theorem. If , the copies overlap (aliasing) and cannot be recovered; an anti-aliasing filter is therefore used before sampling.
- 2080 Bhadra (CS II) · 2+6 marks
Define quantization. Derive the expression for evaluating signal to quantization noise ratio (SQNR) for linear quantization.
Answer
Quantization
Quantization is the process of approximating each continuous-amplitude sample of a signal by the nearest of a finite set of allowed levels. With levels spaced apart it turns a sampled (discrete-time, continuous-amplitude) signal into a discrete-amplitude signal that can be coded with bits. The difference between the true sample and the quantized value is the quantization error (quantization noise).
SQNR for linear (uniform) quantization
Let the message lie in the range to and let the quantizer have equally spaced levels.
- Step size
- Error range: in a mid-rise quantizer the sample is replaced by the centre of its step, so the error lies between and .
- Error pdf: for a busy signal with many levels, is assumed uniformly distributed, for .
- Quantization noise power (mean square error):
- SQNR: with signal power ,
- Sinusoidal message (full load): , so
Key results
- SQNR rises as , i.e. by about 6 dB for each extra bit.
- For a signal whose power equals (e.g. a square-like signal) the result is , i.e. dB.
- Example: 8-bit PCM with a full-scale sine gives dB.
- Weak signals give a much lower SQNR because is fixed while falls; this is why non-uniform quantization (companding) is used for speech.
- 2080 Baisakh (CS II) · 4+6 marks
State and explain Nyquist sampling theorem. Explain flat top sampling with appropriate derivation.
Answer
Nyquist sampling theorem
A signal band-limited to Hz (no components above ) is completely described by, and can be exactly recovered from, its samples taken uniformly at a rate
The minimum rate is the Nyquist rate and is the Nyquist interval.
Explanation: ideal sampling multiplies by an impulse train . In the frequency domain this repeats the spectrum every :
If the copies do not overlap, so a low-pass filter of cut-off recovers exactly. If the copies overlap (aliasing) and recovery is impossible.
Flat-top sampling
In flat-top sampling each sample is held constant for a pulse width (sample-and-hold), giving a PAM wave with flat tops. It is modelled as ideal sampling followed by convolution with a rectangular pulse of width :
Taking the Fourier transform (convolution becomes multiplication):
g(t)--(x)-->ideal samples-->[h(t): hold tau]-->s(t)
|
impulse train
Meaning of the result
- The spectrum is still repeated every , but each copy is multiplied by , a sinc shape.
- So the high frequencies of the message are attenuated: this amplitude distortion is the aperture effect.
- Distortion is small when .
- At the receiver it is corrected with an equalizer of response (in the band ) after the reconstruction low-pass filter.
Flat-top sampling is the one used in practice (sample-and-hold before the ADC) because a constant amplitude during is easy to quantize and generate.
- 2080 Baisakh (CS II) · 5+5 marks
Explain Differential Pulse Code Modulation (DPCM) and compare with Delta Modulation. Explain E1 TDM-PCM Telephone Hierarchy.
Answer
Differential PCM (DPCM)
Adjacent samples of speech and video are highly correlated, so instead of coding each sample, DPCM codes the difference between the sample and a prediction of it. The difference has a smaller range, so fewer bits (or a smaller step) are needed for the same quality.
Transmitter
m[k]->(+)-d[k]->[Quantizer]-dq[k]->[Encoder]-> out
^- |
| v
mp[k]<-[Predictor]<-(+)<+
^ mp[k]
Receiver
--> [Decoder] --dq[k]-->(+)--mq[k]--> LPF --> output
^ |
+--[Predictor]
- Prediction error: ; quantized: .
- Predictor input: , so the receiver, using the same predictor, rebuilds with only the quantization error .
- SNR improvement over PCM is the prediction gain ; typically 4–11 dB for speech, saving 1–2 bits per sample.
DPCM vs Delta Modulation
| Point | DPCM | DM |
|---|---|---|
| Bits per sample | Several (e.g. 3–6) | 1 |
| Quantizer levels | Many | 2 () |
| Predictor | Linear predictor (higher order) | Simple delay (1st order, integrator) |
| Sampling rate | Near Nyquist | Much higher than Nyquist |
| Slope overload | Rare | Main problem |
| Granular noise | Small | Larger for fixed |
| Complexity | Higher | Very simple |
DM is in fact a 1-bit DPCM.
E1 TDM-PCM telephone hierarchy
E1 is the European (CEPT/ITU-T) primary PCM-TDM system:
- Each voice channel: 8 kHz sampling × 8 bits = 64 kbps.
- One frame = 125 µs with 32 time slots of 8 bits = 256 bits.
- TS0 carries frame alignment, TS16 carries signalling, TS1–15 and TS17–31 carry 30 voice channels.
- Bit rate Mbps.
Higher levels combine 4 lower streams each (plus justification bits):
| Level | Channels | Bit rate |
|---|---|---|
| E1 | 30 | 2.048 Mbps |
| E2 (4 × E1) | 120 | 8.448 Mbps |
| E3 (4 × E2) | 480 | 34.368 Mbps |
| E4 (4 × E3) | 1920 | 139.264 Mbps |
| E5 (4 × E4) | 7680 | 564.992 Mbps |
- 2079 Bhadra (CS II) · 5+5 marks
Briefly explain flat top sampling and compare its advantage over natural sampling. Find the Nyquist rate and the Nyquist interval for the signal x(t) = sin(800πt)/πt + 10 cos 2000t.
Answer
Flat-top sampling
In flat-top sampling, each sample value is held constant for a pulse width (sample-and-hold). The PAM wave is
where is a rectangular pulse of width and . The spectrum copies are shaped by , so high message frequencies are slightly attenuated (aperture effect), corrected by an equalizer at the receiver.
Advantages of flat-top over natural sampling
| Point | Natural sampling | Flat-top sampling |
|---|---|---|
| Pulse top | Follows the signal | Constant (flat) |
| Circuit | Analog switch/multiplier | Simple sample-and-hold |
| Quantization/ADC | Hard (value changes during pulse) | Easy (value constant) |
| Noise | Top varies, harder to detect amplitude | Fixed amplitude, easier detection and less noise interference |
| Distortion | No aperture distortion | Small aperture effect, easily equalized |
So flat-top sampling is preferred in practical PCM/PAM systems because the held value can be digitized and transmitted easily.
Nyquist rate and interval
- First term: is an ideal low-pass (sinc) signal with flat spectrum up to . Here , so Hz.
- Second term: rad/s, so Hz (the argument has no ).
- Highest frequency: Hz.
Answer: Nyquist rate = 800 Hz (samples/s); Nyquist interval = 1.25 ms.
- 2079 Bhadra (CS II)
What is companding? A Delta modulator is used to encode speech signal band-limited to 5 kHz with a sampling frequency of 200 kHz. For maximum signal amplitude of Amax = 1, find
a) Minimum step size to avoid slope overloading
b) Assuming the speech signal to be sinusoidal, find signal to quantization noise ratio
c) Determine the minimum transmission bandwidth
Answer
Companding
Companding = compressing + expanding. At the transmitter the signal is passed through a compressor that amplifies weak signals more than strong ones; it is then uniformly quantized; at the receiver an expander applies the inverse characteristic. The overall effect is non-uniform quantization: small steps for weak signals and large steps for strong signals, so SQNR stays nearly constant over a wide dynamic range. Standard laws: µ-law (, North America/Japan) and A-law (, Europe/India/Nepal).
Given
kHz, kHz, , .
a) Minimum step size to avoid slope overload
The staircase can rise at most . For the maximum slope is . No slope overload requires
b) SQNR for a sinusoidal signal
- Signal power at the limit of slope overload: with , so .
- Granular noise is uniform in : power , spread evenly over to ; the output LPF (bandwidth ) passes the fraction : .
c) Minimum transmission bandwidth
DM sends one bit per sample, so kbps. The minimum (Nyquist) bandwidth for binary data is :
Answer: V; SQNR = 2431.7 (33.86 dB); kHz (if rectangular pulses with are assumed, 200 kHz).
- 2079 Bhadra (CS II) · 5 marks
Write a short note on PAM, PWM and PPM.
Answer
Analog pulse modulation uses a periodic pulse train as the carrier and varies one pulse parameter in step with the sampled message.
m(t) ____/‾‾‾‾\____/
PAM | |‾| |‾‾| |‾| | height varies
PWM ▌ ▐█ ▐██ ▐█ ▌ width varies
PPM | | | | | position varies
PAM (Pulse Amplitude Modulation)
- The amplitude of each pulse is proportional to the sample value; width and position are fixed.
- Produced by natural or flat-top (sample-and-hold) sampling.
- Simplest; first step of PCM and TDM.
- Poor noise immunity, since noise adds directly to amplitude.
- Demodulated with a low-pass filter (plus equalizer for flat-top).
PWM (Pulse Width / Duration Modulation, PDM)
- The width of each pulse varies with the sample; amplitude and starting position are fixed.
- Generated by comparing the message with a sawtooth/triangular wave in a comparator (or a monostable).
- Better noise immunity (amplitude can be clipped), but power varies with width, so transmitter power is wasted.
- Used in motor speed control, class-D amplifiers, SMPS.
PPM (Pulse Position Modulation)
- The position (time shift) of each pulse from its nominal position varies with the sample; amplitude and width are fixed.
- Generated from PWM: the trailing edge of each PWM pulse triggers a short fixed pulse.
- Constant pulse power and best noise immunity of the three, but needs accurate synchronization.
- Demodulated by converting back to PWM and low-pass filtering.
| Feature | PAM | PWM | PPM |
|---|---|---|---|
| Varied parameter | Amplitude | Width | Position |
| Noise immunity | Low | Better | Best |
| Transmit power | Varies | Varies | Constant |
| Sync needed | No | No | Yes |
| Bandwidth | Least | More | More |
- 2076 Chaitra (CS II) · 3+6 marks
State Nyquist sampling theorem. Explain natural sampling with its appropriate mathematical derivation.
Answer
Nyquist sampling theorem
A signal band-limited to Hz can be exactly reconstructed from its uniformly spaced samples if the sampling rate satisfies . The minimum rate is the Nyquist rate and the Nyquist interval. Below this rate the spectral copies overlap and aliasing occurs.
Natural sampling
In natural (chopper) sampling the signal is multiplied by a periodic train of rectangular pulses of width and period . During each pulse the sample follows the shape of the signal:
g(t) ----->(x)-----> s(t) (tops follow g(t))
^
c(t): |‾| |‾| |‾| width tau, period Ts
Derivation
- Expand the pulse train in a Fourier series ():
- Multiply by :
- By the frequency-shift property, , so
Interpretation
- The spectrum is the message spectrum repeated at multiples of .
- Each copy keeps the exact shape of ; only its height is scaled by the constant . Hence there is no aperture distortion (unlike flat-top sampling).
- The copy is , so a low-pass filter with cut-off between and recovers (scaled by ), provided .
- The envelope of the copy heights follows , which falls as grows.
Drawback: the pulse tops vary, so quantizing them is difficult; therefore flat-top sampling is used in PCM.
- 2076 Asoj (CS II) · 6+4 marks
Define Sampling. Explain with proper illustration the Natural Sampling and Flat Top Sampling. Find the Nyquist rate and the interval for m(t) = sin²(400πt)
Answer
Sampling
Sampling is the process of converting a continuous-time signal into a discrete-time signal by taking its values at regular intervals (sampling rate ). It is the first step of analog-to-digital conversion.
Natural sampling
The signal is multiplied by a train of rectangular pulses of width ; during each pulse the top follows the signal.
Every spectral copy has the exact shape of , so a LPF recovers without distortion.
Flat-top sampling
The instantaneous sample value is held constant for width (sample-and-hold):
with . The copies are multiplied by , causing aperture effect (high-frequency loss), corrected by an equalizer .
Signal .-~~~-.
.' '.
Natural |‾\ /‾\ /‾‾\| tops follow curve
Flat-top |‾| |‾| |‾‾| tops flat (held)
Ts 2Ts 3Ts
| Natural | Flat-top |
|---|---|
| Tops follow signal | Tops constant |
| No aperture distortion | Aperture effect, needs equalizer |
| Hard to quantize | Easy to quantize (used in PCM) |
Nyquist rate and interval of
Using :
It has a dc term and a single tone at Hz, so Hz.
Answer: Nyquist rate = 800 Hz, Nyquist interval = 1.25 ms.
- 2075 Chaitra (CS II) · 4+6 marks
Define the Aliasing and Aperture effects in Sampling. Explain the types of sampling techniques with waveforms.
Answer
Aliasing
Aliasing is the overlap of the shifted spectral copies of a sampled signal that occurs when the sampling rate is less than the Nyquist rate (), or when the signal is not strictly band-limited. A high-frequency component then appears falsely as a low frequency and the original signal cannot be recovered. Remedies: anti-aliasing low-pass filter before the sampler, and sampling a little above (guard band).
Aperture effect
In flat-top sampling each sample is held for a width ; the spectrum is multiplied by . This attenuates higher message frequencies, a distortion called the aperture effect. It is reduced by keeping and corrected by an equalizer with response .
Types of sampling
1. Ideal (impulse) sampling
Samples are zero-width impulses. Theoretical only, since impulses cannot be generated.
2. Natural sampling
Pulses of width whose tops follow the signal; done by an analog switch (chopper). No aperture distortion.
3. Flat-top sampling
Pulses of width with constant height equal to the sample value (sample-and-hold). Practical; has aperture effect.
Waveforms
g(t) .-~~~-.
.' '.___
Ideal ^ ^ ^ ^ ^ impulses, height=g(nTs)
| | | | |
Natural ▄ █ █ ▆ ▂ tops follow curve
Flat-top ■ ■ ■ ■ ■ flat tops, held
0 Ts 2Ts 3Ts 4Ts
| Type | Pulse | Spectrum copies | Practical? |
|---|---|---|---|
| Ideal | Impulse | Exact , equal height | No |
| Natural | Width , curved top | Exact , sinc-scaled height | Yes |
| Flat-top | Width , flat top | , distorted | Yes (most used) |
- 2075 Chaitra (CS II) · 2+4 marks
What do you mean by companding? Briefly explain the operation of Differential PCM (DPCM) along with derivation and block diagram.
Answer
Companding
Companding (compressing + expanding) is a method of achieving non-uniform quantization. A compressor at the transmitter boosts weak signal amplitudes relative to strong ones, the result is uniformly quantized, and an expander at the receiver applies the inverse law. Weak signals thus get small effective steps and strong signals large steps, keeping SQNR almost constant over a wide range of speech levels. Standard laws are the µ-law () and A-law ().
Differential PCM (DPCM)
Speech/video samples are strongly correlated, so DPCM transmits the difference between the current sample and its predicted value rather than the sample itself. The difference has a smaller range, so fewer bits are needed for the same SQNR.
Transmitter
m[k]-->(+)--d[k]-->[Quantizer]--dq[k]-->[Encoder]--> out
^- |
m^[k]| v
+---[Predictor]<--(+)<---+
^ m^[k]
Receiver
in-->[Decoder]--dq[k]-->(+)--mq[k]--> LPF --> m(t)
^ |
+-[Predictor]
Operation and derivation
- Prediction error: , where is predicted from past reconstructed samples.
- Quantized error: , with the quantization error.
- Predictor input:
So the reconstructed sample differs from the true one only by the quantization error of ; errors do not accumulate. 4. The receiver has the same predictor, adds to its prediction and gets , then low-pass filters it. 5. SNR gain: since is quantized instead of ,
where is the prediction gain (4–11 dB for speech), equivalent to saving 1–2 bits/sample.
- 2075 Chaitra (CS II) · 4 marks
The bandwidth of a TV plus audio signal is 4.5 MHz. If this signal is converted to PCM with 1024 quantization levels, determine bit rate of the resulting PCM signal. Let us assume that the signal is sampled at a rate 20% above the Nyquist rate.
Answer
Given: MHz, , sampling 20% above Nyquist rate.
- Bits per sample:
- Nyquist rate and actual sampling rate:
- Bit rate:
Answer: Bit rate = 108 Mbps.
- 2075 Chaitra (CS II) · 6+1 marks
Explain the Delta Modulation encoder and decoder with its derivations and diagram. Compare between PCM and DM?
Answer
Delta modulation (DM)
DM is a 1-bit DPCM: the signal is sampled much faster than the Nyquist rate and only one bit per sample is sent, telling whether the signal is above or below the previous staircase approximation. The staircase then steps up or down by a fixed .
Encoder
m(t)->[Sampler]-m[k]->(+)-e[k]->[1-bit Q]-+-> eq[k]
^- | (+D/-D)
mq[k-1] | v
+--[Delay Ts]<--(+)<
mq[k] ^
| mq[k-1]
Decoder
eq[k] -->(+)--mq[k]--> [LPF] --> m(t)
^ |
+-[Delay Ts] (accumulator)
Equations
The feedback loop (delay + adder) is an accumulator (integrator), so the transmitter tracks the input with a staircase. The decoder is the same accumulator followed by a LPF that smooths the staircase.
Errors
- Slope overload: if the signal slope exceeds the staircase cannot follow. For we need
- Granular noise: for a flat signal the staircase hunts ; error is uniform in with power . After the LPF of bandwidth :
So SQNR rises 9 dB for every doubling of .
PCM vs DM
| Point | PCM | DM |
|---|---|---|
| Bits/sample | (e.g. 8) | 1 |
| Sampling rate | Near Nyquist | Much higher |
| Errors | Quantization noise | Slope overload + granular |
| SQNR improves by | 6 dB per bit | 9 dB per doubling of |
| Bandwidth | (higher) | Lower for same quality only at low SQNR |
| Complexity | ADC, framing needed | Very simple |
- 2075 Asoj (CS II) · 6+4 marks
Illustrate and explain the ideal sampling and reconstruction of sampled signal. Find the Nyquist rate and the interval for ½π Cos(400πt) Cos(1000πt).
Answer
Ideal sampling
In ideal (impulse) sampling the message , band-limited to , is multiplied by an impulse train of period :
The impulse train has the Fourier series , so
The spectrum is repeated every (scaled by ).
G(f) /\
____/ \____
-W W
Gd(f) /\ /\ /\
____/ \__/ \__/ \___ (fs > 2W)
-fs 0 fs
|<-LPF->|
Reconstruction
- If , the copies do not overlap. An ideal LPF of gain and cut-off () passes only the copy, giving back .
- In the time domain, the LPF impulse response is . With and , , and
This is the interpolation formula: each sample is replaced by a sinc pulse, and the sum is exactly .
- If , copies overlap (aliasing) and cannot be recovered.
- In practice a guard band () is used since ideal LPFs do not exist.
Nyquist rate of
(The constant in front only scales amplitude, so it does not affect the answer.)
Using :
Frequencies: Hz and Hz, so Hz.
Answer: Nyquist rate = 1400 Hz, Nyquist interval = 0.714 ms.
- 2075 Asoj (CS II) · 2+2+2 marks
Differentiate between uniform quantization and non-uniform quantization. Why is non-uniform quantization done for speech signal? Explain about companding laws.
Answer
Uniform vs non-uniform quantization
| Point | Uniform | Non-uniform |
|---|---|---|
| Step size | Equal everywhere | Small near zero, large at high amplitude |
| Quantization noise | Same for all levels | Small for weak, larger for strong signals |
| SQNR | Falls for weak signals | Nearly constant over range |
| Implementation | Simple ADC | Compressor + uniform ADC + expander |
| Suited to | Signals with uniform pdf | Speech, wide dynamic range |
Why non-uniform quantization for speech
- Speech has a large dynamic range (about 40 dB between loud and soft talkers).
- Its amplitude pdf is peaked near zero: small amplitudes occur most often.
- With uniform steps, SQNR signal power, so quiet talkers and soft sounds get poor SQNR.
- Non-uniform steps give small steps where samples are most likely, so SQNR becomes almost independent of level, and 8 bits give quality that would need about 12 bits uniformly.
Companding laws
Companding = compressing at the transmitter + expanding at the receiver. With normalised input ():
µ-law (North America, Japan; ):
A-law (Europe, ITU-T E1 systems; ):
- or gives uniform quantization.
- Both laws are nearly linear for small inputs and logarithmic for large inputs.
- In practice they are implemented as 13-segment (A-law) or 15-segment (µ-law) piecewise linear approximations.
- 2075 Asoj (CS II) · 6 marks
With necessary derivations show that in case of PCM, SQNR increases approximately by 6dB for each extra bit used.
Answer
In PCM with bits per sample, the quantizer has levels. We find SQNR in terms of .
- Step size for a message in the range :
- Quantization noise: the error is uniformly distributed in :
- Signal power: take a full-load sinusoid , so .
- SQNR:
- Effect of one extra bit: going from to bits,
In ratio terms, doubles, halves, and falls by a factor of 4, i.e. dB.
For a general signal, , i.e. , where depends only on the signal's power-to-peak ratio. The 6 dB/bit rule holds for any signal.
Price paid: each extra bit increases bit rate and transmission bandwidth in proportion, so PCM trades bandwidth for SNR exponentially: SQNR .
Example: 7 bits give dB; 8 bits give dB, about 6 dB more.
- 2074 Asoj (CS II) · 4+6 marks
State Sampling theorem in terms of transmitter and receiver. Explain aliasing and aperture effect with remedy solutions.
Answer
Sampling theorem
At the transmitter: a band-limited signal of finite energy with no frequency components above Hz is completely described by its sample values taken at uniform intervals of seconds, i.e. at a rate .
At the receiver: such a signal can be completely recovered from its samples taken at the rate of samples per second (or more) by passing them through an ideal low-pass filter of bandwidth .
The rate is the Nyquist rate. Proof sketch: ideal sampling gives ; the copies separate when , so a LPF extracts .
Aliasing
When , or the signal is not strictly band-limited, the spectral copies overlap. High-frequency components fold back and appear as false low frequencies . Example: a 7 kHz tone sampled at 10 kHz appears as 3 kHz after reconstruction.
copy n=0 copy n=1
/‾‾‾‾‾‾\ /‾‾‾‾‾‾\
/ \ / \
/ X \ overlap = aliasing
-W 0 fs/2 fs
Remedies
- Use an anti-aliasing (pre-alias) low-pass filter before the sampler to strictly band-limit the signal to .
- Sample slightly above the Nyquist rate () to create a guard band, so a practical reconstruction filter with finite roll-off can be used. Example: speech 3.4 kHz sampled at 8 kHz.
Aperture effect
In flat-top sampling each sample is held for width . The sampled spectrum becomes with . Because falls with frequency, high-frequency parts of the message are attenuated and slightly delayed: this amplitude distortion is the aperture effect.
Remedies
- Keep the pulse width small, (duty cycle makes the loss under about 0.5%).
- Use an equalizer after the reconstruction LPF with response
which boosts high frequencies to cancel the sinc loss.
- 2074 Chaitra (CS II) · 2+2 marks
Briefly explain the terms "sub-sampling theory" and "aperture effect".
Answer
Sub-sampling (band-pass sampling) theory
For a band-pass signal occupying to with bandwidth , it is not necessary to sample at . The signal can be recovered from samples taken at a rate as low as about , i.e. below the Nyquist rate of its highest frequency; this is called sub-sampling (or under-sampling). The allowed rates are
Aliasing is used deliberately to shift the band down to baseband without overlap. Example: a 80–115 kHz signal can be sampled at 76.7–80 kHz instead of 230 kHz. It is used in digital receivers to sample IF signals directly.
Aperture effect
In flat-top sampling the sample is held for a finite width , so the spectrum is multiplied by . This attenuates the higher frequencies of the message, an amplitude distortion called the aperture effect. It is reduced by making and corrected by an equalizer with response after the reconstruction filter.
- 2074 Chaitra (CS II) · 4+6 marks
Explain E1 hierarchy of TDM-PCM Telephony. A television signal having a bandwidth of 4.2 MHz is transmitted using binary PCM system. Given that the number of quantization level is 512. Determine:
i) Code word length
ii) Transmission bandwidth
iii) Bit rate
iv) SQNR
Answer
E1 hierarchy of TDM-PCM telephony
E1 is the ITU-T (CEPT) primary digital multiplex used in Europe, Asia and Nepal.
- Each voice signal (300–3400 Hz) is sampled at 8 kHz and A-law coded into 8 bits: 64 kbps per channel.
- One frame lasts 125 µs and has 32 time slots × 8 bits = 256 bits.
- TS0: frame alignment word; TS16: signalling (multiframe of 16 frames); TS1–15, TS17–31: 30 voice channels.
- Bit rate: Mbps.
|TS0|TS1|...|TS15|TS16|TS17|...|TS31| = 125 us
sync voice 1-15 sig voice 16-30
Higher orders multiplex 4 tributaries each, adding justification and framing bits:
| Level | Inputs | Voice channels | Rate (Mbps) |
|---|---|---|---|
| E1 | 30 voice | 30 | 2.048 |
| E2 | 4 × E1 | 120 | 8.448 |
| E3 | 4 × E2 | 480 | 34.368 |
| E4 | 4 × E3 | 1920 | 139.264 |
Numerical
Given: MHz, , sampling at the Nyquist rate.
i) Code word length
ii) Transmission bandwidth (minimum, Nyquist)
iii) Bit rate
iv) SQNR (full-load sinusoid)
(Using the form for a signal with power : , i.e. 58.96 dB.)
Answer: bits; MHz; Mbps; SQNR ≈ 55.95 dB.
- 2074 Chaitra (CS II) · 5 marks
Why is non uniform quantization required, explain any one algorithms for implementing non-uniform quantization.
Answer
Why non-uniform quantization is needed
- In uniform quantization the noise power is the same for every level, so SQNR is proportional to signal power. Weak signals get poor SQNR.
- Speech has a wide dynamic range (about 40 dB) and small amplitudes are far more probable than large ones.
- To give soft talkers acceptable SQNR with uniform steps would need about 12–13 bits per sample.
- Non-uniform quantization uses small steps for small amplitudes and large steps for large amplitudes, making SQNR nearly constant over the range. 8 bits then give toll-quality speech (64 kbps).
Algorithm: companding with the µ-law
Non-uniform quantization is realised by companding: compressor → uniform quantizer → (channel) → expander.
m(t)->[Compressor]->[Uniform quantizer+encoder]->channel
|
out<-[Expander]<-[Decoder]<-------------------------+
- Normalise the input: , so .
- Compress using the µ-law:
For small , (large gain); for large the curve is logarithmic (small gain). 3. Uniformly quantize into levels and encode into bits (8 bits in telephony). 4. At the receiver decode and expand with the inverse law:
- The combined effect: equal steps in correspond to small steps in near zero and large steps near .
For , SQNR , almost independent of signal level; with , it is about 38 dB over a 40 dB input range.
In practice the curve is approximated digitally by 15 linear segments (µ-law, T1 systems) or 13 segments for the A-law (, E1 systems).
- 2073 Shrawan (CS II) · 5+3 marks
State and prove sampling theorem. Define aliasing effect and aperture effect.
Answer
Sampling theorem
A band-limited signal with no frequency components above Hz is uniquely determined by its samples taken at uniform intervals , and can be recovered from them exactly by an ideal low-pass filter.
Proof
Step 1: spectrum of the sampled signal. Ideal sampling:
The periodic impulse train has Fourier series . Hence
The spectrum is repeated at every multiple of .
Step 2: no overlap. Each copy occupies to . Copies and do not overlap if , i.e. .
Step 3: recovery. Pass through an ideal LPF . Only the term survives: . In the time domain, with , and
Thus is fully recovered from its samples, proving the theorem.
Gd(f): /\ /\ /\
____/ \____/ \____/ \____
-fs 0 fs
|<-LPF->| (needs fs >= 2W)
Aliasing effect
When the spectral copies overlap; components above fold back and appear as false low frequencies. The signal cannot be recovered. Prevented by an anti-aliasing LPF and sampling above .
Aperture effect
In flat-top sampling of pulse width , the spectrum is multiplied by , attenuating high message frequencies. This distortion is the aperture effect; it is reduced by small and corrected by an equalizer .
- 2073 Shrawan (CS II) · 5 marks
Explain working principle of PCM with necessary figures and equations.
Answer
Pulse Code Modulation (PCM) converts an analog signal into a sequence of binary code words by sampling, quantizing and encoding; the bits are then sent as pulses.
Transmitter
m(t)->[LPF]->[Sampler]->[Quantizer]->[Encoder]->line
anti- fs>=2W L levels n bits
alias
Channel: --[Regenerative repeaters]-->
Receiver
-->[Regen]->[Decoder]->[Hold]->[Recon LPF]->m(t)
Transmitter
- Anti-aliasing LPF limits the message to Hz.
- Sampling at (flat-top, sample-and-hold), e.g. speech 3.4 kHz at 8 kHz.
- Quantization rounds each sample to one of levels. For uniform steps:
Non-uniform (µ/A-law) quantization is used for speech. 4. Encoding maps each level to an -bit code word, . Bit rate and minimum bandwidth:
Channel
- Regenerative repeaters placed along the line re-time, re-shape and re-decide the pulses, so noise does not accumulate (major advantage of PCM).
Receiver
- Regeneration of clean pulses.
- Decoding: each code word is converted back to a quantized PAM sample.
- Reconstruction LPF (cut-off ) recovers the analog signal, with only quantization noise.
Performance
(full-load sinusoid). Each extra bit adds 6 dB but increases bandwidth.
Example: telephony with kHz, : kbps, SQNR ≈ 49.9 dB.
Merits: high noise immunity, regenerative repeaters, easy encryption and TDM, uniform digital format. Demerits: larger bandwidth, need for synchronization, quantization noise.
- 2073 Shrawan (CS II) · 3 marks
A PCM system uses a uniform quantizer followed by a 7 bit binary encoder. The bit rate of the system is equal to 50×10⁶ bits/sec. What is the maximum message signal bandwidth for which the system operates satisfactorily?
Answer
Given: bits/sample, bps, uniform quantizer.
For satisfactory operation the sampling rate must be at least the Nyquist rate, .
- Bit rate relation:
- Maximum message bandwidth (sampling exactly at Nyquist rate):
Answer: Maximum message bandwidth ≈ 3.57 MHz.
- 2073 Chaitra (CS II) · 7+3 marks
Define the Aperture and Aliasing effects? A signal g(t) = 10 cos(20πt) cos(200πt) is sampled at the rate of 250 samples per second, then (i) determine the spectrum of the resulting sampled signal, (ii) specify the cut-off frequency of the ideal reconstruction filter so as to recover g(t) from its sampled version, and (iii) determine the Nyquist rate for g(t).
Answer
Aperture effect
In flat-top sampling each sample is held for a width , which is the same as passing ideal samples through a rectangular pulse filter . The sampled spectrum is therefore shaped by a sinc that falls with frequency, so the higher message frequencies are attenuated. This amplitude distortion is the aperture effect. It is made small by keeping and corrected by an equalizer with response .
Aliasing effect
If the sampling rate is below the Nyquist rate (), or the signal is not band-limited, the shifted copies of the spectrum overlap. Components above fold back and appear as false lower frequencies, and the original signal cannot be recovered. It is prevented by an anti-aliasing LPF before the sampler and by sampling above .
Numerical
So has two tones: 90 Hz and 110 Hz, each of amplitude 5. Highest frequency Hz.
(i) Spectrum of the sampled signal ( Hz)
Each line has weight . Positive-frequency lines:
| Lines at , (Hz) | |
|---|---|
| 0 | 90, 110 |
| 1 | 140, 160, 340, 360 |
| 2 | 390, 410, 590, 610 |
| 3 | 640, 660, 840, 860 |
625 | | | | | | | | |
+--+-+--+-+------+-+--+-+--> f (Hz)
90 110 140 160 340 360 ...
(baseband) (around 250)
The baseband pair (90, 110 Hz) and the lowest image pair (140, 160 Hz) do not overlap, since .
(ii) Reconstruction filter cut-off An ideal LPF must pass 110 Hz and reject 140 Hz:
A convenient choice is the midpoint Hz.
(iii) Nyquist rate
Answer: lines at and Hz (weight 625 each); cut-off between 110 and 140 Hz (e.g. 125 Hz); Nyquist rate = 220 Hz.
- 2073 Chaitra (CS II) · 4+6 marks
Differentiate between uniform and non-uniform quantization. The information in an analog waveform with maximum frequency 4 kHz is to be transmitted over a 16-level PCM system.
a) What would be the maximum number of bits per sample?
b) What is the minimum sampling rate and bit rate?
Answer
Uniform vs non-uniform quantization
| Point | Uniform | Non-uniform |
|---|---|---|
| Step size | Constant over the whole range | Small near zero, larger at high amplitudes |
| Noise power | , same at all levels | Varies; small for weak signals |
| SQNR | Proportional to signal power; poor for weak signals | Nearly constant over wide range |
| Realisation | Uniform ADC | Compressor + uniform ADC + expander (companding) |
| Laws | Linear | µ-law (), A-law () |
| Bits for toll-quality speech | About 12–13 | 8 |
| Used in | Instrumentation, video, audio with uniform pdf | Telephony (speech) |
Non-uniform quantization suits speech because small amplitudes are much more likely and the dynamic range is large.
Numerical
Given: kHz, levels.
a) Bits per sample
b) Minimum sampling rate and bit rate
Answer: (a) 4 bits/sample; (b) kHz (8000 samples/s), kbps.
- 2072 Kartik (CS II) · 2+2+2+1 marks
Explain Sub-sampling theorem. A signal x(t) = sinc(5πt) is sampled (using uniformly spaced impulses) at a rate of 10 Hz.
i) Sketch the sampled signal (not to scale);
ii) Sketch the spectrum of the sampled signal for the range |f| < 30 Hz;
iii) Explain whether you can recover the signal x(t) from the sampled signal.
Answer
Sub-sampling theorem
A band-pass signal occupying to (bandwidth ) can be sampled at a rate much lower than , roughly , without loss of information. The valid rates are
Here aliasing is used on purpose: the band is shifted down to baseband without overlap. Used in IF sampling receivers.
Numerical: , Hz
Using :
so for Hz and zero elsewhere. Bandwidth Hz, Nyquist rate Hz.
i) Sampled signal ( s):
| 0 | ±1 | ±2 | ±3 | ±4 | ±5 | |
|---|---|---|---|---|---|---|
| 1 | 0.637 | 0 | −0.212 | 0 | 0.127 |
1 ^
|
0.637 ^ | ^
| | |
..._^___|_|_|___^_... t
| |
-0.212 -0.212
-0.3 -0.1 0 0.1 0.3 (s)
Impulses at every 0.1 s with heights following the sinc envelope; zeros every 0.2 s.
ii) Spectrum of the sampled signal
Rectangles of height and width 5 Hz centred at Hz:
2 |‾‾| |‾‾| |‾‾| |‾‾| |‾‾| |‾
| | | | | | | | | | |
---+--+--+--+--+--+--+--+--+--+--+--> f
-22.5 -12.5 -2.5 2.5 12.5 22.5 30
(blocks at -20, -10, 0, 10, 20; edge at 27.5)
Occupied bands for : , –, –, – Hz (and mirrored).
iii) Recovery Yes. Hz is greater than the Nyquist rate Hz, so the copies are separated by 5 Hz gaps (2.5 to 7.5 Hz). An ideal LPF with gain and cut-off anywhere between 2.5 and 7.5 Hz (e.g. 5 Hz) recovers exactly.
- 2072 Kartik (CS II) · 3+3+2 marks
Explain basic process of Non-uniform quantization including companding technique of its realization. An audio signal of frequency 4 kHz and maximum dynamic range of ±2.4 V is digitized by PCM system with its bit rate of 64 kHz. Calculate numbers of bits per sample, quantization noise power and SQNR_dB. Estimate the minimum bandwidth required for TDM of 10 such audio signals (assume no extra framing and synchronization bits).
Answer
Non-uniform quantization and companding
In non-uniform quantization the step size is small for low amplitudes and large for high amplitudes. Since speech has mostly small amplitudes and a wide dynamic range, this keeps SQNR nearly constant for loud and soft talkers.
It is realised by companding:
m(t)->[Compressor]->[Uniform Q + encoder]->channel
out <-[Expander]<---[Decoder]<-------------+
- Compressor applies a logarithmic gain: weak signals amplified more than strong ones. µ-law: , ; or A-law with .
- Uniform quantizer then acts on the compressed signal; equal steps in are small steps in near zero.
- Expander at the receiver applies the inverse law, restoring the original amplitude relation. In practice the curve is a 13-segment (A-law) or 15-segment (µ-law) piecewise linear approximation.
Numerical
Given: kHz, range V ( V), kbps. Assume sampling at the Nyquist rate and a full-scale sinusoidal signal.
Bits per sample
Quantization noise power
SQNR
(Check: dB.)
Minimum bandwidth for TDM of 10 signals
Answer: bits; V² (normalised to 1 Ω); SQNR = 49.93 dB; kHz.
- 2072 Kartik (CS II) · 2+3+1 marks
A Delta modulator is used to encode speech signal band-limited to 3 kHz with sampling frequency 10 kHz. For maximum signal amplitude of Amax = 1, find:
i) Minimum step size to avoid slope overloading.
ii) Assuming the speech signal to be sinusoidal, find Signal to quantization noise ratio
iii) Determine the minimum transmission bandwidth.
Answer
Given: kHz, kHz, . Assume output LPF bandwidth kHz.
i) Minimum step size to avoid slope overload
The staircase slope must be at least the maximum signal slope :
ii) SQNR for a sinusoidal signal
Signal power at maximum amplitude ; granular noise after the LPF :
This very low value shows that kHz is far too low for DM; DM needs many times the Nyquist rate.
iii) Minimum transmission bandwidth
One bit per sample: kbps.
Answer: V; SQNR = 1.407 (1.48 dB); kHz (10 kHz if is taken).
- 2072 Kartik (CS II) · 4 marks
Write a short note on adaptive delta modulation.
Answer
Adaptive Delta Modulation (ADM) is a delta modulator in which the step size is varied automatically according to the slope of the input signal, instead of being fixed.
Why needed: linear DM with a fixed step faces a trade-off. A large avoids slope overload but gives large granular noise; a small gives low granular noise but causes slope overload. ADM removes this conflict.
m(t)->(+)->[1-bit Q]-+-------------> out
^- |
| v
+-[Accum]<-[x]<+--[Step-size logic]
^ |
+---------+
Working
- The output bits are watched by a step-size control logic.
- If several successive bits are the same (e.g. 111 or 000), the signal is rising/falling steeply, so the step is increased (e.g. multiplied by 1.5 or doubled).
- If the bits alternate (1010), the signal is flat, so the step is reduced (e.g. halved), down to a minimum .
- The receiver uses the same logic on the received bits, so no extra side information is sent.
- A common rule (Song algorithm): ; another is CVSD (continuously variable slope DM).
Advantages
- Reduced slope overload and granular noise together.
- Wider dynamic range and better SQNR than linear DM at the same bit rate.
- Good speech quality at 16–32 kbps (CVSD used in military and Bluetooth voice).
Drawback: more complex circuitry; bit errors affect step size for a few samples.
- 2071 Shrawan (CS II) · 6+2 marks
State and explain Nyquist-Kotelnikov sampling theorem with time domain and frequency domain analysis. Define aliasing and aperture effect.
Answer
Nyquist–Kotelnikov sampling theorem
A signal band-limited to Hz is completely described by its instantaneous values taken at uniform intervals , and can be exactly reconstructed from them. The minimum rate is the Nyquist rate. (Kotelnikov proved it independently in 1933, so it is also called the Kotelnikov or WKS theorem.)
Time-domain analysis
Ideal sampling multiplies by a periodic impulse train:
Reconstruction by an ideal LPF of bandwidth (with , ) gives
At only the -th sinc is nonzero (others are at their zeros), so the curve passes exactly through every sample, and between samples the sincs interpolate the signal.
g(t) .-~~-.
.' | '.
_.' | | | '._
| | | | | | samples every Ts
-2Ts -Ts 0 Ts 2Ts
Frequency-domain analysis
The impulse train has Fourier series , so
/\ /\ /\
___/ \______/ \______/ \___ f
-fs -W 0 W fs
- Copies of sit at
- They do not overlap if , i.e. .
- An ideal LPF for then gives back.
- If the copies overlap and is lost.
Aliasing and aperture effect
- Aliasing: overlap of spectral copies when ; high frequencies appear as false low frequencies. Prevented by an anti-aliasing filter and .
- Aperture effect: in flat-top sampling with pulse width , the spectrum is multiplied by , attenuating high frequencies. Corrected with an equalizer or small .
- 2071 Shrawan (CS II) · 2+3+2 marks
A message signal x(t) = 6cos(5000πt) is quantized in 128 levels using Nyquist sampling rate:
a) Find SQNR of the PCM signal
b) Find the sampling frequency required when same signal uses delta modulation for same SQNR
c) If the system uses DM using Nyquist sampling rate, find SQNR degradation in DM as compared to PCM.
Answer
Given: , so V, Hz. . Nyquist rate kHz.
a) SQNR of PCM
bits. For a full-load sinusoid ( V):
b) Sampling frequency for DM with the same SQNR
For DM with a sinusoid at the slope-overload limit and output filter :
Set equal to 24 576:
c) SQNR degradation of DM at the Nyquist rate
With kHz, :
Answer: (a) 43.91 dB; (b) kHz; (c) DM is about 49.08 dB worse than PCM.
- 2070 Asar (CS II) · 5 marks
With mathematical derivation show that original band limited signal can be reconstructed from its samples taken at Nyquist rate.
Answer
Let be band-limited to Hz and sampled ideally at the Nyquist rate ().
1. Sampled signal and its spectrum
With the copies just touch without overlapping, so in :
2. Express through the samples. Taking the Fourier transform of directly:
so
, and therefore , is fixed by the samples alone.
3. Inverse transform (ideal LPF reconstruction)
This is the interpolation formula. Each sample is multiplied by a sinc pulse centred at its own instant; at all other sincs are zero, so is reproduced exactly, and between samples the sum fills in . Physically this is the output of an ideal LPF (cut-off , gain ) driven by the sample impulses. Hence a band-limited signal is fully recovered from samples at the Nyquist rate.
- 2070 Asar (CS II) · 3 marks
What is aliasing effect and how it can be minimized?
Answer
Aliasing is the distortion that occurs when a signal is sampled below its Nyquist rate (), or when it contains components above . The shifted spectral copies overlap, so high-frequency components fold back and appear as false low frequencies . Example: a 6 kHz tone sampled at 8 kHz appears as a 2 kHz tone after reconstruction, and cannot be removed afterwards.
/‾‾\ /‾‾\
/ \ / \ overlap region = aliasing
/ X \
0 fs/2 fs
Ways to minimize aliasing
- Anti-aliasing (pre-alias) filter: a low-pass filter before the sampler removes components above (and noise) so the signal is strictly band-limited.
- Sample above the Nyquist rate: use to create a guard band, so practical filters with finite roll-off can separate copies (e.g. speech limited to 3.4 kHz sampled at 8 kHz).
- Sharp-cut-off filters / oversampling: high-order filters or oversampling with digital decimation reduce residual aliasing.
- 2070 Chaitra (CS II) · 6+2 marks
What are the practical factors to be considered while sampling? Explain. If two band limited signals X1[t] and X2[t] have bandwidths of W1 and W2 Hertz respectively, estimate the maximum sampling interval required for the signal given by Y[t] = X1[t] X2[t].
Answer
Practical factors in sampling
- Signals are not strictly band-limited. Real signals (and noise) have some energy above , which would alias. An anti-aliasing LPF is used before the sampler.
- Non-ideal filters. Ideal brick-wall filters do not exist, so the sampling rate is chosen above to leave a guard band for the filter's transition region (speech 3.4 kHz sampled at 8 kHz instead of 6.8 kHz).
- Finite pulse width (aperture effect). Practical samples are pulses of width , not impulses. Flat-top sampling multiplies the spectrum by , attenuating high frequencies; fixed by small and an equalizer .
- Sample-and-hold limits. Acquisition time, droop of the hold capacitor and aperture jitter (uncertainty in sampling instant) cause errors, especially for fast signals.
- Clock stability. Jitter in produces timing errors, so stable crystal clocks are used.
- Choice of rate. Higher eases filtering but raises bit rate, storage and bandwidth; a compromise is chosen.
- Noise and quantization. The sampled value is followed by quantization; ADC resolution and noise must suit the required SNR.
m(t)->[Anti-alias LPF]->[S/H, fs>2W]->[ADC]->...
...->[DAC]->[Recon. LPF]->[Equalizer]->m(t)
Maximum sampling interval for
Multiplication in time is convolution in frequency:
If occupies and occupies , the convolution occupies . So the bandwidth of is .
Answer: maximum sampling interval seconds.
- 2070 Chaitra (CS II) · 1.5+1+1.5+1.5+1.5 marks
Define PAM, PWM and PPM with corresponding waveforms. A Television signal having a bandwidth of 4.8 MHz is transmitted using binary PCM system. Given that the number of quantization levels is 512. Determine:
i) Code word length
ii) Transmission bandwidth
iii) Final bit rate
iv) Output signal to quantization noise ratio
Answer
PAM, PWM and PPM
- PAM (Pulse Amplitude Modulation): the amplitude of regularly spaced pulses varies with the sample value; width and position are fixed.
- PWM (Pulse Width Modulation): the width (duration) of each pulse varies with the sample value; amplitude and leading edge are fixed.
- PPM (Pulse Position Modulation): the position of each pulse shifts from its nominal time in proportion to the sample; amplitude and width are fixed. Usually derived from the trailing edge of PWM.
Sample: small medium large medium
PAM: _ _ |‾| _
|‾| | | | | | |
PWM: |‾|_____|‾‾|____|‾‾‾|__|‾‾|__
PPM: |_______ _|______ __|___ _|__
(pulse shifts later as sample grows)
0 Ts 2Ts 3Ts
Numerical
Given: MHz, , sampling at the Nyquist rate.
i) Code word length
ii) Transmission bandwidth (minimum, Nyquist)
iii) Final bit rate
iv) Output SQNR (full-load sinusoid)
(Using : 58.96 dB.)
Answer: bits; MHz; Mbps; SQNR ≈ 55.95 dB.
- 2070 Chaitra (CS II) · 6 marks
Derive the expression for evaluating signal to quantization noise ratio (SQNR) for Delta modulation.
Answer
In delta modulation the quantization noise has two parts: slope-overload noise and granular noise. SQNR is derived assuming the step is just large enough to avoid slope overload, so only granular noise remains.
1. Maximum signal amplitude (no slope overload) For the maximum slope is . The staircase can change by per , so we need
2. Signal power
3. Granular noise power Without slope overload the error lies in and is assumed uniform with pdf :
4. Effect of the output LPF The error waveform changes at the sampling rate, so its power spectral density is taken as roughly flat from 0 to . The receiver LPF passes only to (message bandwidth), so
5. SQNR
With :
Observations
- SQNR is independent of (when is set at the overload limit).
- SQNR : doubling improves SQNR by dB.
- Compared with PCM (6 dB per bit, i.e. per unit increase of bandwidth factor), DM needs a much higher sampling rate for good quality. Example: gives , i.e. about 31 dB.
- 2069 Chaitra (CS II) · 5+3 marks
What do you mean by aperture effect in Sampling? How can it be corrected? A band pass signal with the spectrum in the range of (80–115) kHz is to be digitized. Calculate minimum sampling frequency required for the signal.
Answer
Aperture effect
In flat-top sampling each sample is held for a finite pulse width . This is equivalent to passing ideal samples through a filter with impulse response :
Since falls as rises, the higher message frequencies are attenuated (and delayed by ). This amplitude distortion is the aperture effect; the larger , the worse it is.
Correction
- Equalizer: after the reconstruction LPF, use a filter with
which boosts high frequencies to cancel the sinc droop. 2. Small duty cycle: keep ; for the droop at the band edge is under about 0.5%, so equalization is often unnecessary.
Band-pass sampling of 80–115 kHz
kHz, kHz, kHz.
Band-pass sampling condition:
So any from 76.67 to 80 kHz works, far below the low-pass Nyquist rate kHz.
Answer: minimum sampling frequency ≈ 76.67 kHz. (If treated as a low-pass signal, 230 kHz would be needed.)
Questions from Old Question Collection (BEI EX 656) (BEI Communication Systems (EX 656) exam papers, 2078 to 2081 Chaitra), Communication System I (EX 652) (BEX Communication System I (EX 652) papers 2064 to 2080, plus two old BCT Communication Systems papers (2068, 2071)) and Communication System II (EX 702) (BEX Communication System II (EX 702) exam papers, 2069 to 2081). Answers are written for this site; check them against your class notes.
Chapter titles and hours from the IOE syllabus ↗