Skip to main content

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 pp past samples:

x^[n]=∑k=1pwk x[n−k]\hat{x}[n] = \sum_{k=1}^{p} w_k\, x[n-k]

The prediction error is

e[n]=x[n]−x^[n]e[n] = x[n] - \hat{x}[n]
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

J=E{e2[n]}=E{(x[n]−∑k=1pwkx[n−k])2}J = E\{e^2[n]\} = E\left\{\left(x[n] - \sum_{k=1}^{p} w_k x[n-k]\right)^2\right\}

Setting ∂J/∂wk=0\partial J/\partial w_k = 0 gives the normal (Wiener–Hopf) equations:

∑j=1pwj Rx(k−j)=Rx(k),k=1,2,…,p\sum_{j=1}^{p} w_j\, R_x(k-j) = R_x(k), \qquad k = 1, 2, \ldots, p

or in matrix form Rw=r\mathbf{R}\mathbf{w} = \mathbf{r}, so wo=R−1r\mathbf{w}_o = \mathbf{R}^{-1}\mathbf{r}, where Rx(k)R_x(k) is the autocorrelation of the input. The minimum error is

Jmin=Rx(0)−rTwoJ_{min} = R_x(0) - \mathbf{r}^T\mathbf{w}_o

Example: first-order predictor (p=1p = 1): w1=Rx(1)/Rx(0)=ρw_1 = R_x(1)/R_x(0) = \rho, and Jmin=Rx(0)(1−ρ2)J_{min} = R_x(0)(1-\rho^2). For highly correlated speech (ρ≈0.9\rho \approx 0.9), the error variance is only 19% of the signal variance.

Key points:

  • Prediction gain Gp=σx2/σe2G_p = \sigma_x^2/\sigma_e^2 gives an SQNR improvement in DPCM of 10log⁡Gp10\log G_p 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 Δ\Delta is fixed, so the quantization noise power Δ2/12\Delta^2/12 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 (μ\mu-law, A-law).

SQNR of delta modulation (no slope overload)

Let the message be a single tone m(t)=Amcos⁡2πfmtm(t) = A_m\cos 2\pi f_m t, step size Δ\Delta, sampling rate fs=1/Tsf_s = 1/T_s, and the receiver LPF bandwidth WW.

1. Condition for no slope overload. The staircase can rise by at most Δ\Delta per TsT_s:

∣dmdt∣max=2πfmAm≤ΔTs  ⇒  Am,max=Δfs2πfm\left|\frac{dm}{dt}\right|_{max} = 2\pi f_m A_m \le \frac{\Delta}{T_s} \;\Rightarrow\; A_{m,max} = \frac{\Delta f_s}{2\pi f_m}

2. Signal power (with maximum amplitude):

S=Am22=Δ2fs28π2fm2S = \frac{A_m^2}{2} = \frac{\Delta^2 f_s^2}{8\pi^2 f_m^2}

3. Granular noise power. With no slope overload, the error q(t)q(t) lies within ±Δ\pm\Delta and is uniformly distributed:

E[q2]=12Δ∫−ΔΔq2 dq=Δ23E[q^2] = \frac{1}{2\Delta}\int_{-\Delta}^{\Delta} q^2\,dq = \frac{\Delta^2}{3}

This power is spread uniformly over 00 to fsf_s. The output LPF passes only WW, so

Nq=Δ23⋅WfsN_q = \frac{\Delta^2}{3}\cdot\frac{W}{f_s}

4. SQNR:

SQNR=SNq=Δ2fs2/(8π2fm2)Δ2W/(3fs)=3fs38π2fm2W\text{SQNR} = \frac{S}{N_q} = \frac{\Delta^2 f_s^2/(8\pi^2 f_m^2)}{\Delta^2 W/(3f_s)} = \frac{3 f_s^3}{8\pi^2 f_m^2 W}

In dB:

SQNRdB=30log⁡10fs−20log⁡10fm−10log⁡10W−14.2\text{SQNR}_{dB} = 30\log_{10} f_s - 20\log_{10} f_m - 10\log_{10} W - 14.2

So SQNR improves by 9 dB each time fsf_s is doubled. Example: fs=64f_s = 64 kHz, fm=1f_m = 1 kHz, W=4W = 4 kHz gives SQNR =2490≈33.96= 2490 \approx 33.96 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 Δ2/12\Delta^2/12 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)

y=ln⁡(1+μ∣x∣)ln⁡(1+μ) sgn(x),0≤∣x∣≤1y = \frac{\ln(1 + \mu|x|)}{\ln(1+\mu)}\,\text{sgn}(x), \qquad 0 \le |x| \le 1
  • μ=0\mu = 0 gives uniform quantization; the standard value is μ=255\mu = 255 (8-bit PCM).
  • For small xx it is nearly linear (y≈μx/ln⁡(1+μ)y \approx \mu x/\ln(1+\mu)); for large xx it is logarithmic.
  • Example with μ=255\mu = 255: x=0.01→y=0.228x = 0.01 \to y = 0.228; x=0.1→y=0.591x = 0.1 \to y = 0.591; x=0.5→y=0.876x = 0.5 \to y = 0.876.

A-law companding (Europe, India, Nepal – ITU-T G.711)

y={A∣x∣1+ln⁡A sgn(x),0≤∣x∣≤1A1+ln⁡(A∣x∣)1+ln⁡A sgn(x),1A≤∣x∣≤1y = \begin{cases} \dfrac{A|x|}{1+\ln A}\,\text{sgn}(x), & 0 \le |x| \le \dfrac{1}{A} \\[2mm] \dfrac{1+\ln(A|x|)}{1+\ln A}\,\text{sgn}(x), & \dfrac{1}{A} \le |x| \le 1 \end{cases}
  • Standard value A=87.6A = 87.6. 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 Gp=σm2/σe2G_p = \sigma_m^2/\sigma_e^2 (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]<-------+        |
                  |                      |
                  +----------------------+
  1. Prediction error: e[n]=m[n]−m^[n]e[n] = m[n] - \hat{m}[n].
  2. Quantized error: eq[n]=e[n]+q[n]e_q[n] = e[n] + q[n], which is encoded and transmitted.
  3. The predictor input is the reconstructed sample mq[n]=m^[n]+eq[n]m_q[n] = \hat{m}[n] + e_q[n].
  4. Then mq[n]=m^[n]+e[n]+q[n]=m[n]+q[n]m_q[n] = \hat{m}[n] + e[n] + q[n] = m[n] + q[n]: the quantized sample differs from the original only by the quantization error of e[n]e[n], so errors do not accumulate.
  5. The predictor (a linear FIR filter, m^[n]=∑wkmq[n−k]\hat{m}[n] = \sum w_k m_q[n-k]) works on mqm_q, the same signal available at the receiver.

DPCM receiver

in->[Decoder]--eq[n]-->(+)--+--> mq[n] -->[LPF]--> m(t)
                       ^    |
                  m^[n]|    |
                       +--[Predictor]

The decoder recovers eq[n]e_q[n]; the same predictor as in the transmitter gives m^[n]\hat{m}[n]; their sum gives mq[n]=m[n]+q[n]m_q[n] = m[n] + q[n]. 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 m(t)m(t) lie in [−mp,mp][-m_p, m_p] and be quantized uniformly into LL levels. Then the step size is

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

Step 2: Quantization noise power

The quantization error q=m−mqq = m - m_q lies in [−Δ/2,Δ/2][-\Delta/2, \Delta/2]. For a fine quantizer it is uniformly distributed, with pdf f(q)=1/Δf(q) = 1/\Delta:

Nq=E[q2]=∫−Δ/2Δ/2q2⋅1Δ dq=1Δ[q33]−Δ/2Δ/2=Δ212=(2mp/L)212=mp23L2\begin{aligned} N_q = E[q^2] &= \int_{-\Delta/2}^{\Delta/2} q^2\cdot\frac{1}{\Delta}\,dq = \frac{1}{\Delta}\left[\frac{q^3}{3}\right]_{-\Delta/2}^{\Delta/2} \\ &= \frac{\Delta^2}{12} = \frac{(2m_p/L)^2}{12} = \frac{m_p^2}{3L^2} \end{aligned}

Step 3: SQNR in terms of levels

With message power P=m2(t)‾P = \overline{m^2(t)}:

SQNR=PNq=3L2 Pmp2\text{SQNR} = \frac{P}{N_q} = \frac{3L^2\, P}{m_p^2}

Step 4: SQNR in terms of bits

With binary coding of nn bits per sample, L=2nL = 2^n:

SQNR=3Pmp2 22n=3Pmp2 4n\text{SQNR} = \frac{3P}{m_p^2}\,2^{2n} = \frac{3P}{m_p^2}\,4^n SQNRdB=10log⁡10 ⁣(3Pmp2)+6.02 n dB\text{SQNR}_{dB} = 10\log_{10}\!\left(\frac{3P}{m_p^2}\right) + 6.02\,n\ \text{dB}

Special case: full-scale sinusoid

For m(t)=mpcos⁡ωmtm(t) = m_p\cos\omega_m t, P=mp2/2P = m_p^2/2:

SQNR=3L22=1.5L2=1.5×22n\text{SQNR} = \frac{3L^2}{2} = 1.5L^2 = 1.5\times 2^{2n} SQNRdB=1.76+6.02 n dB\text{SQNR}_{dB} = 1.76 + 6.02\,n\ \text{dB}

Example: n=8n = 8 bits gives SQNR =1.76+48.16=49.92= 1.76 + 48.16 = 49.92 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 nfsn f_s and the bandwidth nfs/2n f_s/2, 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 fmf_m Hz is completely described by, and can be exactly recovered from, its samples taken uniformly at a rate

fs≥2fmf_s \ge 2f_m

The minimum rate fs=2fmf_s = 2f_m is the Nyquist rate and Ts=1/(2fm)T_s = 1/(2f_m) is the Nyquist interval. Recovery is done by passing the samples through an ideal low-pass filter of cut-off fmf_m. If fs<2fmf_s < 2f_m, spectral copies overlap (aliasing) and recovery is impossible.

Nyquist rate and interval of the given signal

x(t)=6cos⁡50πt+20sin⁡300πt−10cos⁡100πtx(t) = 6\cos 50\pi t + 20\sin 300\pi t - 10\cos 100\pi t

Frequencies of the components (ω=2πf\omega = 2\pi f):

Termω\omega (rad/s)ff (Hz)
6cos⁡50πt6\cos 50\pi t50π50\pi25
20sin⁡300πt20\sin 300\pi t300π300\pi150
10cos⁡100πt10\cos 100\pi t100π100\pi50

Highest frequency: fm=150f_m = 150 Hz.

Nyquist rate fN=2fm=2×150=300 Hz (samples/s)\text{Nyquist rate } f_N = 2f_m = 2 \times 150 = 300\ \text{Hz (samples/s)} Nyquist interval TN=1fN=1300=3.33 ms\text{Nyquist interval } T_N = \frac{1}{f_N} = \frac{1}{300} = 3.33\ \text{ms}

Effect of quantizing with 512 levels

n=log⁡2512=9 bits/samplen = \log_2 512 = 9\ \text{bits/sample}

At the Nyquist rate the bit rate is

Rb=nfN=9×300=2700 bits/sR_b = n f_N = 9 \times 300 = 2700\ \text{bits/s}

and the minimum transmission bandwidth is Rb/2=1350R_b/2 = 1350 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 Δ\Delta.

Equations:

e[n]=m[n]−mq[n−1]eq[n]=Δ sgn(e[n])(bit 1 for +Δ, 0 for −Δ)mq[n]=mq[n−1]+eq[n]=∑i=1neq[i]\begin{aligned} e[n] &= m[n] - m_q[n-1] \\ e_q[n] &= \Delta\,\text{sgn}(e[n]) \quad (\text{bit 1 for } +\Delta,\ 0 \text{ for } -\Delta) \\ m_q[n] &= m_q[n-1] + e_q[n] = \sum_{i=1}^{n} e_q[i] \end{aligned}

So the receiver output is the accumulated (integrated) sum of ±Δ\pm\Delta 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 Δ/Ts\Delta/T_s, the staircase cannot follow. No overload needs ∣dmdt∣max≤Δfs\left|\frac{dm}{dt}\right|_{max} \le \Delta f_s; for a tone, Am≤Δfs2πfmA_m \le \frac{\Delta f_s}{2\pi f_m}.
  • Granular noise: when the signal is nearly flat, the staircase hunts by ±Δ\pm\Delta.
  • SQNR (no overload, single tone): SQNR=3fs38π2fm2W\text{SQNR} = \frac{3f_s^3}{8\pi^2 f_m^2 W}.

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):

Δ[n]={K Δ[n−1],b[n]=b[n−1]Δ[n−1]/K,b[n]≠b[n−1](K≈1.5)\Delta[n] = \begin{cases} K\,\Delta[n-1], & b[n] = b[n-1] \\ \Delta[n-1]/K, & b[n] \ne b[n-1] \end{cases} \qquad (K \approx 1.5)

with limits Δmin≤Δ[n]≤Δmax\Delta_{min} \le \Delta[n] \le \Delta_{max}. 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

DMADM
MeritsVery simple 1-bit codec; no framing needed; robust to channel errorsReduces both slope overload and granular noise; wider dynamic range; lower bit rate for same quality
DemeritsSlope overload and granular noise; needs high oversampling, so high bit rateMore 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

PointPCMDPCMDM
What is codedEach sample valueDifference between sample and its predictionSign of difference only
Bits per samplenn (e.g. 8)Fewer than PCM (e.g. 4)1
Sampling rate≥2W\ge 2W (Nyquist)≥2W\ge 2WMuch higher than 2W2W (oversampling)
PredictorNoneLinear predictorOne-sample delay (accumulator)
Quantization noiseGranular, Δ2/12\Delta^2/12Granular, smaller (prediction gain)Granular + slope overload
SQNR1.76+6.02n1.76 + 6.02n dBPCM value + 10log⁡Gp10\log G_p3fs3/(8π2fm2W)3f_s^3/(8\pi^2 f_m^2 W)
BandwidthHighest (nWnW)Less than PCMCan be less, but needs high fsf_s
ComplexityModerateMost complexSimplest
UseTelephony (64 kbps), CDSpeech, video codingSimple voice links

SQNR of PCM

Let m(t)m(t) have peak value mpm_p and be quantized uniformly into L=2nL = 2^n levels.

Step size: Δ=2mpL\Delta = \dfrac{2m_p}{L}

Noise power: the error qq is uniform in (−Δ/2,Δ/2)(-\Delta/2, \Delta/2):

Nq=∫−Δ/2Δ/2q2Δ dq=Δ212=mp23L2N_q = \int_{-\Delta/2}^{\Delta/2}\frac{q^2}{\Delta}\,dq = \frac{\Delta^2}{12} = \frac{m_p^2}{3L^2}

SQNR: with signal power PP,

SQNR=PNq=3L2Pmp2=3Pmp2 22n\text{SQNR} = \frac{P}{N_q} = \frac{3L^2P}{m_p^2} = \frac{3P}{m_p^2}\,2^{2n}

For a full-scale sinusoid, P=mp2/2P = m_p^2/2:

SQNR=1.5×22n⇒SQNRdB=1.76+6.02 n\text{SQNR} = 1.5\times 2^{2n} \quad\Rightarrow\quad \text{SQNR}_{dB} = 1.76 + 6.02\,n

Each extra bit adds about 6 dB. Example: 8-bit PCM gives 1.76+48.16=49.921.76 + 48.16 = 49.92 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 TT. The flat-top signal is the ideally sampled signal convolved with a rectangular pulse h(t)h(t) of width TT:

S(f)=fs∑kM(f−kfs) H(f),H(f)=T sinc(fT) e−jπfTS(f) = f_s\sum_k M(f - kf_s)\,H(f), \qquad H(f) = T\,\text{sinc}(fT)\,e^{-j\pi fT}

The message spectrum is multiplied by sinc(fT)\text{sinc}(fT), so high frequencies are attenuated. This amplitude distortion (plus a delay T/2T/2) is the aperture effect. It is reduced by keeping T≪TsT \ll T_s (duty ratio ≤ 0.1) or by an equalizer after the reconstruction filter with response 1/H(f)1/H(f).

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]

e[n]=m[n]−m^[n]e[n] = m[n] - \hat m[n], mq[n]=m^[n]+eq[n]=m[n]+q[n]m_q[n] = \hat m[n] + e_q[n] = m[n] + q[n]. Since e[n]e[n] is small, fewer bits are needed, or SQNR improves by the prediction gain.

Numerical: maximum amplitude without slope overload

Given: W=3W = 3 kHz, fs=5×f_s = 5 \times Nyquist rate, fm=2f_m = 2 kHz, Δ=250\Delta = 250 mV.

fs=5×2W=5×6 kHz=30 kHzf_s = 5 \times 2W = 5 \times 6\ \text{kHz} = 30\ \text{kHz}

No slope overload requires 2πfmAm≤Δfs2\pi f_m A_m \le \Delta f_s:

Am,max=Δfs2πfm=0.25×300002π×2000=750012566.4=0.597 VA_{m,max} = \frac{\Delta f_s}{2\pi f_m} = \frac{0.25 \times 30000}{2\pi \times 2000} = \frac{7500}{12566.4} = 0.597\ \text{V}

Answer: maximum amplitude ≈0.597\approx 0.597 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 m(t)m(t) have peak amplitude mpm_p (range −mp-m_p to +mp+m_p) and be quantized uniformly into LL levels.

Step size:

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

Quantization noise. The error qq is uniformly distributed over (−Δ/2,Δ/2)(-\Delta/2, \Delta/2) with pdf 1/Δ1/\Delta:

Nq=E[q2]=∫−Δ/2Δ/2q21Δ dq=Δ212=mp23L2N_q = E[q^2] = \int_{-\Delta/2}^{\Delta/2} q^2\frac{1}{\Delta}\,dq = \frac{\Delta^2}{12} = \frac{m_p^2}{3L^2}

Signal-to-quantization noise ratio. With signal power P=m2(t)‾P = \overline{m^2(t)}:

SQNR=PNq=3L2Pmp2\text{SQNR} = \frac{P}{N_q} = 3L^2\frac{P}{m_p^2}

In terms of bits. For nn-bit binary coding, L=2nL = 2^n:

SQNR=3Pmp2 22n,SQNRdB=10log⁡103Pmp2+6.02 n\text{SQNR} = \frac{3P}{m_p^2}\,2^{2n}, \qquad \text{SQNR}_{dB} = 10\log_{10}\frac{3P}{m_p^2} + 6.02\,n

Sinusoidal message with full-scale amplitude, P=mp2/2P = m_p^2/2:

SQNR=1.5×22n,SQNRdB=1.76+6.02 n dB\text{SQNR} = 1.5\times 2^{2n}, \qquad \text{SQNR}_{dB} = 1.76 + 6.02\,n\ \text{dB}

(For a uniformly distributed signal, P=mp2/3P = m_p^2/3 and SQNR =22n= 2^{2n}, i.e. 6.02n6.02n dB.)

Relation between SQNR and bits

  • SQNR grows exponentially with nn (∝4n\propto 4^n); 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 BT=nfs/2B_T = nf_s/2 grows linearly with nn. 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

  1. Real signals are not strictly band-limited. An anti-aliasing low-pass filter is used before sampling to cut off components above fs/2f_s/2.
  2. 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.
  3. Finite pulse width: practical samples are pulses of width τ\tau (natural or flat-top), not impulses. Flat-top samples cause the aperture effect, which needs equalization.
  4. Non-ideal reconstruction filter: a practical LPF has a transition band, which needs the guard band above.
  5. 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 c(t)c(t) of width τ\tau and period TsT_s; 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. c(t)c(t) is periodic, so it has the Fourier series

c(t)=∑n=−∞∞Cn ej2πnfst,Cn=τTs sinc(nfsτ)c(t) = \sum_{n=-\infty}^{\infty} C_n\, e^{j2\pi n f_s t}, \qquad C_n = \frac{\tau}{T_s}\,\text{sinc}(n f_s\tau)

The sampled signal is

s(t)=m(t) c(t)=∑n=−∞∞Cn m(t) ej2πnfsts(t) = m(t)\,c(t) = \sum_{n=-\infty}^{\infty} C_n\, m(t)\,e^{j2\pi n f_s t}

Using the frequency-shift property, m(t)ej2πnfst↔M(f−nfs)m(t)e^{j2\pi nf_st} \leftrightarrow M(f - nf_s):

S(f)=∑n=−∞∞Cn M(f−nfs)=τTs∑nsinc(nfsτ) M(f−nfs)S(f) = \sum_{n=-\infty}^{\infty} C_n\, M(f - n f_s) = \frac{\tau}{T_s}\sum_{n} \text{sinc}(n f_s \tau)\, M(f - n f_s)

Interpretation:

  • The spectrum consists of copies of M(f)M(f) centred at nfsnf_s, each weighted by a constant CnC_n that depends only on nn.
  • Each copy keeps the original shape of M(f)M(f) (no distortion), unlike flat-top sampling where the shape is multiplied by sinc(fT)\text{sinc}(fT).
  • The baseband term (n=0n = 0) is τTsM(f)\frac{\tau}{T_s}M(f). If fs≥2Wf_s \ge 2W, the copies do not overlap, and an LPF of cut-off WW recovers m(t)m(t) exactly (scaled by τ/Ts\tau/T_s).
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

PointPAMPPM
Parameter variedAmplitude of pulsesPosition (time) of pulses
Pulse width and amplitudeWidth fixed, amplitude variesBoth fixed
Noise immunityPoor (noise adds to amplitude)Good (amplitude noise can be clipped)
Transmitter powerVaries with signalConstant
BandwidthDepends on pulse width; lowestLarge (needs sharp, narrow pulses)
SynchronisationNot criticalNeeds accurate timing reference
GenerationSample-and-holdDerived from PWM (differentiate trailing edges)
DetectionLPF / holdConvert 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):

  1. A sawtooth (ramp) generator runs at the sampling frequency fsf_s.
  2. The message m(t)m(t) is added to the ramp (or compared directly with the ramp).
  3. A comparator outputs HIGH while the ramp is below the message (or the sum exceeds the reference) and LOW otherwise.
  4. The time at which the crossing occurs depends on the message value, so the trailing edge moves and the pulse width is proportional to m(t)m(t).

Alternative: a monostable multivibrator triggered at fsf_s 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:

  1. The input xx (normalised to ∣x∣≤1|x| \le 1) is passed through a non-linear compressor y=c(x)y = c(x) with large slope near zero and small slope near full scale.
  2. A uniform quantizer with step Δ\Delta operates on yy. Step Δ\Delta in yy corresponds to a step in xx of
Δx≈Δc′(x)\Delta_x \approx \frac{\Delta}{c'(x)}

so where c′(x)c'(x) is large (small xx) the effective step is fine, and where c′(x)c'(x) is small (large xx) the step is coarse. 3. At the receiver, the expander c−1(y)c^{-1}(y) undoes the compression. Compressor + expander together have a linear overall response. 4. If c(x)c(x) is logarithmic, Δx∝∣x∣\Delta_x \propto |x|, so the noise is proportional to the signal and SQNR is nearly constant for all levels.

In practice c(x)c(x) is implemented digitally as a piecewise-linear segmented characteristic, so standard uniform ADC/DACs can be used.

μ-law

y=ln⁡(1+μ∣x∣)ln⁡(1+μ) sgn(x),0≤∣x∣≤1y = \frac{\ln(1+\mu|x|)}{\ln(1+\mu)}\,\text{sgn}(x), \qquad 0 \le |x| \le 1
  • μ=0\mu = 0: uniform (linear). Standard μ=255\mu = 255 for 8-bit PCM (North America, Japan).
  • Small ∣x∣|x| (μ∣x∣≪1\mu|x| \ll 1): y≈μxln⁡(1+μ)y \approx \frac{\mu x}{\ln(1+\mu)}, linear with large gain (46 for μ=255\mu = 255).
  • Large ∣x∣|x| (μ∣x∣≫1\mu|x| \gg 1): y≈ln⁡(μ∣x∣)ln⁡(1+μ)y \approx \frac{\ln(\mu|x|)}{\ln(1+\mu)}, logarithmic.

Example (μ=255\mu = 255): x=0.01→0.228x = 0.01 \to 0.228, x=0.1→0.591x = 0.1 \to 0.591, x=0.5→0.876x = 0.5 \to 0.876, x=1→1x = 1 \to 1.

 y
1.0|              ____----   mu = 255
   |        __----      __-- mu = 5
   |    _-'      ___---
   |  /    __---    .  mu = 0 (y = x)
   | / _--     .
   |/-    .
   +---------------------> x
   0                   1.0

Larger μ\mu gives more compression and a wider dynamic range with nearly flat SQNR (about 38 dB over 40 dB input range for 8-bit μ=255\mu = 255).

  • 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 m(nTs)m(nT_s) and stays constant (flat) for the pulse duration TT. It is produced by a sample-and-hold circuit.

Mathematical model

The flat-top signal is

s(t)=∑n=−∞∞m(nTs) h(t−nTs),h(t)={1,0<t<T0,otherwises(t) = \sum_{n=-\infty}^{\infty} m(nT_s)\,h(t - nT_s), \qquad h(t) = \begin{cases} 1, & 0 < t < T \\ 0, & \text{otherwise} \end{cases}

This equals the ideally sampled signal convolved with h(t)h(t):

s(t)=[m(t)∑nδ(t−nTs)]∗h(t)=mδ(t)∗h(t)s(t) = \left[m(t)\sum_n \delta(t - nT_s)\right] * h(t) = m_\delta(t) * h(t)

Taking the Fourier transform:

S(f)=Mδ(f) H(f)=fs∑k=−∞∞M(f−kfs)  H(f)S(f) = M_\delta(f)\,H(f) = f_s\sum_{k=-\infty}^{\infty} M(f - kf_s)\;H(f)

where

H(f)=T sinc(fT) e−jπfTH(f) = T\,\text{sinc}(fT)\,e^{-j\pi fT}
 |H(f)|
  T |\___
    |    \__              sinc envelope
    |       \___          attenuates higher
    +-----------\----->f  message frequencies
    0   W        1/T

Merits

  1. 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.
  2. Pulse tops are flat, so noise on the top is easier to handle and amplitude detection is simple.
  3. Since the amplitude is constant during the pulse, the energy per sample is well defined, giving a better SNR than very narrow pulses.

Demerits

  1. Aperture effect: each spectral copy is multiplied by sinc(fT)\text{sinc}(fT), so higher message frequencies are attenuated: amplitude distortion. Example: at f=Wf = W with T=TsT = T_s and fs=2Wf_s = 2W, sinc(0.5)=0.637\text{sinc}(0.5) = 0.637, i.e. a 3.9 dB loss.
  2. Delay distortion: the term e−jπfTe^{-j\pi fT} introduces a delay of T/2T/2.
  3. An equalizer with response 1H(f)=πfsin⁡(πfT)ejπfT\frac{1}{H(f)} = \frac{\pi f}{\sin(\pi fT)}e^{j\pi fT} (within the message band) is needed after the reconstruction LPF. The distortion is negligible if T/Ts≤0.1T/T_s \le 0.1.
  4. Wider pulses need more bandwidth than ideal impulses and increase crosstalk in TDM.

Compared with natural sampling (where each copy of M(f)M(f) 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 LL levels, and encoding each level into an nn-bit binary code word (L=2nL = 2^n). The binary pulses are then transmitted.

Numerical

Given: W=3W = 3 kHz, sampling at twice the Nyquist rate, step size Δ=0.5%\Delta = 0.5\% of mpm_p, binary coding.

Step 1: Sampling rate

fN=2W=6 kHz,fs=2×6=12 kHzf_N = 2W = 6\ \text{kHz}, \qquad f_s = 2 \times 6 = 12\ \text{kHz}

Step 2: Number of levels. The signal swings from −mp-m_p to +mp+m_p, so

Δ=2mpL=0.005 mp  ⇒  L=20.005=400\Delta = \frac{2m_p}{L} = 0.005\,m_p \;\Rightarrow\; L = \frac{2}{0.005} = 400

Step 3: Bits per sample. nn must be an integer with 2n≥4002^n \ge 400:

n=⌈log⁡2400⌉=⌈8.64⌉=9(29=512)n = \lceil\log_2 400\rceil = \lceil 8.64\rceil = 9 \quad (2^9 = 512)

Step 4: Bit rate

Rb=nfs=9×12000=108 kbpsR_b = n f_s = 9 \times 12000 = 108\ \text{kbps}

Step 5: Minimum channel bandwidth. A binary signal of rate RbR_b needs at least Rb/2R_b/2 Hz (Nyquist bandwidth for ISI-free transmission):

Bmin=Rb2=1082=54 kHzB_{min} = \frac{R_b}{2} = \frac{108}{2} = 54\ \text{kHz}

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 Δ\Delta, sampling rate fs=1/Tsf_s = 1/T_s and a reconstruction LPF of bandwidth WW at the receiver. The message is a single tone:

m(t)=Amcos⁡2πfmtm(t) = A_m\cos 2\pi f_m t

Step 1: Maximum amplitude without slope overload

The staircase can change by at most Δ\Delta in TsT_s, so the maximum slope it can follow is Δ/Ts=Δfs\Delta/T_s = \Delta f_s. The maximum slope of the tone is

∣dmdt∣max=2πfmAm\left|\frac{dm}{dt}\right|_{max} = 2\pi f_m A_m

No slope overload requires 2πfmAm≤Δfs2\pi f_m A_m \le \Delta f_s, so

Am,max=Δfs2πfmA_{m,max} = \frac{\Delta f_s}{2\pi f_m}

Step 2: Signal power

S=Am,max22=Δ2fs28π2fm2S = \frac{A_{m,max}^2}{2} = \frac{\Delta^2 f_s^2}{8\pi^2 f_m^2}

Step 3: Granular (quantization) noise power

Without slope overload, the error q(t)=m(t)−mq(t)q(t) = m(t) - m_q(t) stays within ±Δ\pm\Delta. Assuming it is uniformly distributed in (−Δ,Δ)(-\Delta, \Delta):

E[q2]=∫−ΔΔq212Δ dq=12Δ⋅2Δ33=Δ23E[q^2] = \int_{-\Delta}^{\Delta} q^2\frac{1}{2\Delta}\,dq = \frac{1}{2\Delta}\cdot\frac{2\Delta^3}{3} = \frac{\Delta^2}{3}

This noise power is spread approximately uniformly over 00 to fsf_s. The LPF passes only 00 to WW:

Nq=Δ23⋅WfsN_q = \frac{\Delta^2}{3}\cdot\frac{W}{f_s}

Step 4: SQNR

SQNR=SNq=Δ2fs28π2fm2⋅3fsΔ2W=3fs38π2fm2W\begin{aligned} \text{SQNR} &= \frac{S}{N_q} = \frac{\Delta^2 f_s^2}{8\pi^2 f_m^2}\cdot\frac{3 f_s}{\Delta^2 W} \\ &= \frac{3 f_s^3}{8\pi^2 f_m^2 W} \end{aligned}

Step 5: In dB

Since 10log⁡1038π2=−14.210\log_{10}\frac{3}{8\pi^2} = -14.2 dB,

SQNRdB=30log⁡10fs−20log⁡10fm−10log⁡10W−14.2 dB\text{SQNR}_{dB} = 30\log_{10} f_s - 20\log_{10} f_m - 10\log_{10} W - 14.2\ \text{dB}

Observations:

  • SQNR ∝fs3\propto f_s^3: doubling the sampling rate improves SQNR by 9 dB (compared with 6 dB per extra bit in PCM).
  • SQNR does not depend on Δ\Delta (at the maximum amplitude), because the allowed amplitude and noise both scale with Δ\Delta.

Example: fs=64f_s = 64 kHz, fm=1f_m = 1 kHz, W=4W = 4 kHz:

SQNR=3(64000)38π2(1000)2(4000)=2490≈33.96 dB\text{SQNR} = \frac{3(64000)^3}{8\pi^2(1000)^2(4000)} = 2490 \approx 33.96\ \text{dB}
  • 2080 Bhadra (CS II) · 8 marks

State and prove Nyquist sampling theorem.

Answer

Statement

A band-limited signal m(t)m(t) with no frequency components above WW Hz (M(f)=0M(f) = 0 for ∣f∣>W|f| > W) is uniquely determined by its samples taken at uniform intervals Ts≤12WT_s \le \frac{1}{2W}, i.e. at a rate fs≥2Wf_s \ge 2W. It can be recovered exactly from the samples by an ideal low-pass filter of bandwidth WW.

The minimum rate 2W2W is the Nyquist rate; 1/(2W)1/(2W) is the Nyquist interval.

Proof

1. Ideal sampling. Multiply m(t)m(t) by a periodic impulse train:

mδ(t)=m(t)∑n=−∞∞δ(t−nTs)=∑n=−∞∞m(nTs) δ(t−nTs)m_\delta(t) = m(t)\sum_{n=-\infty}^{\infty}\delta(t - nT_s) = \sum_{n=-\infty}^{\infty} m(nT_s)\,\delta(t - nT_s)

2. Spectrum of the impulse train. It is periodic, with Fourier series coefficients 1/Ts1/T_s:

∑nδ(t−nTs)=1Ts∑k=−∞∞ej2πkfst  ⟷  fs∑kδ(f−kfs)\sum_n \delta(t - nT_s) = \frac{1}{T_s}\sum_{k=-\infty}^{\infty} e^{j2\pi k f_s t} \;\longleftrightarrow\; f_s\sum_{k}\delta(f - kf_s)

3. Spectrum of the sampled signal. Multiplication in time is convolution in frequency:

Mδ(f)=M(f)∗fs∑kδ(f−kfs)=fs∑k=−∞∞M(f−kfs)M_\delta(f) = M(f) * f_s\sum_k\delta(f - kf_s) = f_s\sum_{k=-\infty}^{\infty} M(f - kf_s)

So Mδ(f)M_\delta(f) is M(f)M(f) repeated every fsf_s Hz, scaled by fsf_s.

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 fsf_s occupies fs−Wf_s - W to fs+Wf_s + W. It does not overlap the baseband copy (−W-W to WW) if

fs−W≥W  ⇒  fs≥2Wf_s - W \ge W \;\Rightarrow\; f_s \ge 2W

5. Recovery. If fs≥2Wf_s \ge 2W, pass mδ(t)m_\delta(t) through an ideal LPF with H(f)=TsH(f) = T_s for ∣f∣<W|f| < W (any cut-off between WW and fs−Wf_s - W):

Mδ(f) H(f)=M(f)M_\delta(f)\,H(f) = M(f)

so m(t)m(t) is recovered exactly.

6. Interpolation formula. With fs=2Wf_s = 2W, the LPF impulse response is h(t)=sinc(2Wt)h(t) = \text{sinc}(2Wt), so

m(t)=∑n=−∞∞m ⁣(n2W)sinc(2Wt−n)m(t) = \sum_{n=-\infty}^{\infty} m\!\left(\frac{n}{2W}\right)\text{sinc}(2Wt - n)

Each sample is replaced by a sinc pulse and the sum rebuilds m(t)m(t) at all instants. This proves the theorem. If fs<2Wf_s < 2W, the copies overlap (aliasing) and m(t)m(t) 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 LL levels spaced Δ\Delta apart it turns a sampled (discrete-time, continuous-amplitude) signal into a discrete-amplitude signal that can be coded with n=log⁡2Ln = \log_2 L 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 m(t)m(t) lie in the range −mp-m_p to +mp+m_p and let the quantizer have LL equally spaced levels.

  1. Step size
Δ=2mpL\Delta = \frac{2m_p}{L}
  1. Error range: in a mid-rise quantizer the sample is replaced by the centre of its step, so the error qq lies between −Δ/2-\Delta/2 and +Δ/2+\Delta/2.
  2. Error pdf: for a busy signal with many levels, qq is assumed uniformly distributed, fQ(q)=1/Δf_Q(q) = 1/\Delta for ∣q∣≤Δ/2|q| \le \Delta/2.
  3. Quantization noise power (mean square error):
Nq=q2‾=∫−Δ/2Δ/2q21Δ dq=1Δ[q33]−Δ/2Δ/2=Δ212=(2mp/L)212=mp23L2\begin{aligned} N_q = \overline{q^2} &= \int_{-\Delta/2}^{\Delta/2} q^2 \frac{1}{\Delta}\,dq = \frac{1}{\Delta}\left[\frac{q^3}{3}\right]_{-\Delta/2}^{\Delta/2} \\ &= \frac{\Delta^2}{12} = \frac{(2m_p/L)^2}{12} = \frac{m_p^2}{3L^2} \end{aligned}
  1. SQNR: with signal power S=m2(t)‾S = \overline{m^2(t)},
SQNR=SNq=3L2 m2(t)‾mp2\text{SQNR} = \frac{S}{N_q} = 3L^2\,\frac{\overline{m^2(t)}}{m_p^2}
  1. Sinusoidal message m(t)=mpcos⁡ωmtm(t) = m_p\cos\omega_m t (full load): S=mp2/2S = m_p^2/2, so
SQNR=mp2/2mp2/(3L2)=32L2=1.5×22nSQNRdB=10log⁡101.5+20nlog⁡102≈1.76+6.02n dB\begin{aligned} \text{SQNR} &= \frac{m_p^2/2}{m_p^2/(3L^2)} = \frac{3}{2}L^2 = 1.5 \times 2^{2n} \\ \text{SQNR}_{dB} &= 10\log_{10}1.5 + 20n\log_{10}2 \approx 1.76 + 6.02n\ \text{dB} \end{aligned}

Key results

  • SQNR rises as L2L^2, i.e. by about 6 dB for each extra bit.
  • For a signal whose power equals mp2m_p^2 (e.g. a square-like signal) the result is 3L23L^2, i.e. 4.77+6.02n4.77 + 6.02n dB.
  • Example: 8-bit PCM with a full-scale sine gives 1.76+48.16≈49.91.76 + 48.16 \approx 49.9 dB.
  • Weak signals give a much lower SQNR because NqN_q is fixed while SS 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 WW Hz (no components above WW) is completely described by, and can be exactly recovered from, its samples taken uniformly at a rate

fs≥2Wf_s \ge 2W

The minimum rate fs=2Wf_s = 2W is the Nyquist rate and Ts=1/(2W)T_s = 1/(2W) is the Nyquist interval.

Explanation: ideal sampling multiplies g(t)g(t) by an impulse train δTs(t)\delta_{T_s}(t). In the frequency domain this repeats the spectrum every fsf_s:

Gδ(f)=fs∑n=−∞∞G(f−nfs)G_\delta(f) = f_s\sum_{n=-\infty}^{\infty} G(f - nf_s)

If fs≥2Wf_s \ge 2W the copies do not overlap, so a low-pass filter of cut-off W≤fc≤fs−WW \le f_c \le f_s - W recovers G(f)G(f) exactly. If fs<2Wf_s < 2W the copies overlap (aliasing) and recovery is impossible.

Flat-top sampling

In flat-top sampling each sample is held constant for a pulse width τ\tau (sample-and-hold), giving a PAM wave with flat tops. It is modelled as ideal sampling followed by convolution with a rectangular pulse h(t)h(t) of width τ\tau:

s(t)=∑ng(nTs) h(t−nTs)=[g(t) δTs(t)]∗h(t)s(t) = \sum_n g(nT_s)\,h(t - nT_s) = \big[g(t)\,\delta_{T_s}(t)\big] * h(t)

Taking the Fourier transform (convolution becomes multiplication):

S(f)=[fs∑nG(f−nfs)]H(f)H(f)=τ sinc(fτ) e−jπfτ\begin{aligned} S(f) &= \Big[f_s\sum_n G(f - nf_s)\Big] H(f) \\ H(f) &= \tau\,\text{sinc}(f\tau)\,e^{-j\pi f\tau} \end{aligned}
 g(t)--(x)-->ideal samples-->[h(t): hold tau]-->s(t)
        |
   impulse train

Meaning of the result

  • The spectrum is still repeated every fsf_s, but each copy is multiplied by H(f)H(f), a sinc shape.
  • So the high frequencies of the message are attenuated: this amplitude distortion is the aperture effect.
  • Distortion is small when τ≪Ts\tau \ll T_s.
  • At the receiver it is corrected with an equalizer of response 1/H(f)1/H(f) (in the band ∣f∣≤W|f| \le W) 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 τ\tau 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: d[k]=m[k]−m^[k]d[k] = m[k] - \hat m[k]; quantized: dq[k]=d[k]+q[k]d_q[k] = d[k] + q[k].
  • Predictor input: mq[k]=m^[k]+dq[k]=m[k]+q[k]m_q[k] = \hat m[k] + d_q[k] = m[k] + q[k], so the receiver, using the same predictor, rebuilds m[k]m[k] with only the quantization error q[k]q[k].
  • SNR improvement over PCM is the prediction gain Gp=m2‾/d2‾G_p = \overline{m^2}/\overline{d^2}; typically 4–11 dB for speech, saving 1–2 bits per sample.

DPCM vs Delta Modulation

PointDPCMDM
Bits per sampleSeveral (e.g. 3–6)1
Quantizer levelsMany2 (±Δ\pm\Delta)
PredictorLinear predictor (higher order)Simple delay (1st order, integrator)
Sampling rateNear NyquistMuch higher than Nyquist
Slope overloadRareMain problem
Granular noiseSmallLarger for fixed Δ\Delta
ComplexityHigherVery 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 =32×64=2.048= 32 \times 64 = 2.048 Mbps.

Higher levels combine 4 lower streams each (plus justification bits):

LevelChannelsBit rate
E1302.048 Mbps
E2 (4 × E1)1208.448 Mbps
E3 (4 × E2)48034.368 Mbps
E4 (4 × E3)1920139.264 Mbps
E5 (4 × E4)7680564.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 g(nTs)g(nT_s) is held constant for a pulse width τ\tau (sample-and-hold). The PAM wave is

s(t)=∑ng(nTs) h(t−nTs),S(f)=fsH(f)∑nG(f−nfs)s(t) = \sum_n g(nT_s)\,h(t - nT_s), \qquad S(f) = f_s H(f)\sum_n G(f - nf_s)

where h(t)h(t) is a rectangular pulse of width τ\tau and H(f)=τ sinc(fτ) e−jπfτH(f) = \tau\,\text{sinc}(f\tau)\,e^{-j\pi f\tau}. The spectrum copies are shaped by H(f)H(f), so high message frequencies are slightly attenuated (aperture effect), corrected by an equalizer 1/H(f)1/H(f) at the receiver.

Advantages of flat-top over natural sampling

PointNatural samplingFlat-top sampling
Pulse topFollows the signalConstant (flat)
CircuitAnalog switch/multiplierSimple sample-and-hold
Quantization/ADCHard (value changes during pulse)Easy (value constant)
NoiseTop varies, harder to detect amplitudeFixed amplitude, easier detection and less noise interference
DistortionNo aperture distortionSmall 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

x(t)=sin⁡(800πt)πt+10cos⁡(2000t)x(t) = \frac{\sin(800\pi t)}{\pi t} + 10\cos(2000t)
  • First term: sin⁡(2πWt)/(πt)\sin(2\pi Wt)/(\pi t) is an ideal low-pass (sinc) signal with flat spectrum up to WW. Here 2πW=800π2\pi W = 800\pi, so W1=400W_1 = 400 Hz.
  • Second term: ω=2000\omega = 2000 rad/s, so f2=2000/(2π)=318.31f_2 = 2000/(2\pi) = 318.31 Hz (the argument has no π\pi).
  • Highest frequency: fmax=400f_{max} = 400 Hz.
fNyquist=2fmax=2×400=800 HzTNyquist=1800=1.25 ms\begin{aligned} f_{Nyquist} &= 2f_{max} = 2 \times 400 = 800\ \text{Hz} \\ T_{Nyquist} &= \frac{1}{800} = 1.25\ \text{ms} \end{aligned}

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 (μ=255\mu = 255, North America/Japan) and A-law (A=87.6A = 87.6, Europe/India/Nepal).

Given

fm=5f_m = 5 kHz, fs=200f_s = 200 kHz, Amax=1A_{max} = 1, Ts=1/fsT_s = 1/f_s.

a) Minimum step size to avoid slope overload

The staircase can rise at most Δ/Ts=Δfs\Delta/T_s = \Delta f_s. For m(t)=Asin⁡2πfmtm(t) = A\sin 2\pi f_m t the maximum slope is 2πfmA2\pi f_m A. No slope overload requires

Δfs≥2πfmAmaxΔmin=2πfmAmaxfs=2π×5000×1200 000=0.157 V\begin{aligned} \Delta f_s &\ge 2\pi f_m A_{max} \\ \Delta_{min} &= \frac{2\pi f_m A_{max}}{f_s} = \frac{2\pi \times 5000 \times 1}{200\,000} = 0.157\ \text{V} \end{aligned}

b) SQNR for a sinusoidal signal

  • Signal power at the limit of slope overload: S=A2/2S = A^2/2 with A=Δfs/(2πfm)A = \Delta f_s/(2\pi f_m), so S=Δ2fs28π2fm2S = \dfrac{\Delta^2 f_s^2}{8\pi^2 f_m^2}.
  • Granular noise is uniform in (−Δ,Δ)(-\Delta, \Delta): power Δ2/3\Delta^2/3, spread evenly over 00 to fsf_s; the output LPF (bandwidth fM=fmf_M = f_m) passes the fraction fM/fsf_M/f_s: Nq=Δ23fMfsN_q = \dfrac{\Delta^2}{3}\dfrac{f_M}{f_s}.
SQNR=38π2 fs3fm2fM=38π2(fsfm)3=0.0380×(2005)3=0.0380×64 000=2431.7SQNRdB=10log⁡102431.7=33.86 dB\begin{aligned} \text{SQNR} &= \frac{3}{8\pi^2}\,\frac{f_s^3}{f_m^2 f_M} = \frac{3}{8\pi^2}\left(\frac{f_s}{f_m}\right)^3 \\ &= 0.0380 \times \left(\frac{200}{5}\right)^3 = 0.0380 \times 64\,000 = 2431.7 \\ \text{SQNR}_{dB} &= 10\log_{10}2431.7 = 33.86\ \text{dB} \end{aligned}

c) Minimum transmission bandwidth

DM sends one bit per sample, so Rb=fs=200R_b = f_s = 200 kbps. The minimum (Nyquist) bandwidth for binary data is Rb/2R_b/2:

BT,min=Rb2=2002=100 kHzB_{T,min} = \frac{R_b}{2} = \frac{200}{2} = 100\ \text{kHz}

Answer: Δmin=0.157\Delta_{min} = 0.157 V; SQNR = 2431.7 (33.86 dB); BT=100B_T = 100 kHz (if rectangular pulses with BT=RbB_T = R_b 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.
FeaturePAMPWMPPM
Varied parameterAmplitudeWidthPosition
Noise immunityLowBetterBest
Transmit powerVariesVariesConstant
Sync neededNoNoYes
BandwidthLeastMoreMore
  • 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 g(t)g(t) band-limited to WW Hz can be exactly reconstructed from its uniformly spaced samples if the sampling rate satisfies fs≥2Wf_s \ge 2W. The minimum rate 2W2W is the Nyquist rate and 1/(2W)1/(2W) 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 c(t)c(t) of width τ\tau and period TsT_s. During each pulse the sample follows the shape of the signal:

s(t)=g(t) c(t)s(t) = g(t)\,c(t)
g(t) ----->(x)-----> s(t)  (tops follow g(t))
            ^
  c(t): |‾|  |‾|  |‾|  width tau, period Ts

Derivation

  1. Expand the pulse train in a Fourier series (fs=1/Tsf_s = 1/T_s):
c(t)=∑n=−∞∞Cnej2πnfst,Cn=τTs sinc(nfsτ)c(t) = \sum_{n=-\infty}^{\infty} C_n e^{j2\pi n f_s t}, \qquad C_n = \frac{\tau}{T_s}\,\text{sinc}(nf_s\tau)
  1. Multiply by g(t)g(t):
s(t)=∑nCn g(t) ej2πnfsts(t) = \sum_{n} C_n\, g(t)\, e^{j2\pi n f_s t}
  1. By the frequency-shift property, g(t)ej2πnfst↔G(f−nfs)g(t)e^{j2\pi nf_st} \leftrightarrow G(f - nf_s), so
S(f)=τTs∑n=−∞∞sinc(nfsτ) G(f−nfs)S(f) = \frac{\tau}{T_s}\sum_{n=-\infty}^{\infty}\text{sinc}(nf_s\tau)\,G(f - nf_s)

Interpretation

  • The spectrum is the message spectrum G(f)G(f) repeated at multiples of fsf_s.
  • Each copy keeps the exact shape of G(f)G(f); only its height is scaled by the constant CnC_n. Hence there is no aperture distortion (unlike flat-top sampling).
  • The n=0n = 0 copy is (τ/Ts)G(f)(\tau/T_s)G(f), so a low-pass filter with cut-off between WW and fs−Wf_s - W recovers g(t)g(t) (scaled by τ/Ts\tau/T_s), provided fs≥2Wf_s \ge 2W.
  • The envelope of the copy heights follows sinc(fτ)\text{sinc}(f\tau), which falls as nn 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 TsT_s (sampling rate fs=1/Tsf_s = 1/T_s). It is the first step of analog-to-digital conversion.

Natural sampling

The signal is multiplied by a train of rectangular pulses of width τ\tau; during each pulse the top follows the signal.

s(t)=g(t)c(t),S(f)=τTs∑nsinc(nfsτ) G(f−nfs)s(t) = g(t)c(t), \qquad S(f) = \frac{\tau}{T_s}\sum_n \text{sinc}(nf_s\tau)\,G(f - nf_s)

Every spectral copy has the exact shape of G(f)G(f), so a LPF recovers g(t)g(t) without distortion.

Flat-top sampling

The instantaneous sample value is held constant for width τ\tau (sample-and-hold):

s(t)=∑ng(nTs)h(t−nTs),S(f)=fsH(f)∑nG(f−nfs)s(t) = \sum_n g(nT_s)h(t - nT_s), \qquad S(f) = f_s H(f)\sum_n G(f - nf_s)

with H(f)=τ sinc(fτ)e−jπfτH(f) = \tau\,\text{sinc}(f\tau)e^{-j\pi f\tau}. The copies are multiplied by H(f)H(f), causing aperture effect (high-frequency loss), corrected by an equalizer 1/H(f)1/H(f).

 Signal      .-~~~-.
           .'       '.
 Natural  |‾\ /‾\ /‾‾\|   tops follow curve
 Flat-top |‾| |‾| |‾‾|    tops flat (held)
          Ts  2Ts 3Ts
NaturalFlat-top
Tops follow signalTops constant
No aperture distortionAperture effect, needs equalizer
Hard to quantizeEasy to quantize (used in PCM)

Nyquist rate and interval of m(t)=sin⁡2(400πt)m(t) = \sin^2(400\pi t)

Using sin⁡2θ=12(1−cos⁡2θ)\sin^2\theta = \tfrac{1}{2}(1 - \cos 2\theta):

m(t)=12−12cos⁡(800πt)m(t) = \frac{1}{2} - \frac{1}{2}\cos(800\pi t)

It has a dc term and a single tone at f=800π/(2π)=400f = 800\pi/(2\pi) = 400 Hz, so fmax=400f_{max} = 400 Hz.

fN=2fmax=800 HzTN=1800=1.25 ms\begin{aligned} f_N &= 2f_{max} = 800\ \text{Hz} \\ T_N &= \frac{1}{800} = 1.25\ \text{ms} \end{aligned}

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 (fs<2Wf_s < 2W), or when the signal is not strictly band-limited. A high-frequency component ff then appears falsely as a low frequency ∣f−nfs∣|f - nf_s| and the original signal cannot be recovered. Remedies: anti-aliasing low-pass filter before the sampler, and sampling a little above 2W2W (guard band).

Aperture effect

In flat-top sampling each sample is held for a width τ\tau; the spectrum is multiplied by H(f)=τ sinc(fτ)H(f) = \tau\,\text{sinc}(f\tau). This attenuates higher message frequencies, a distortion called the aperture effect. It is reduced by keeping τ≪Ts\tau \ll T_s and corrected by an equalizer with response 1/H(f)1/H(f).

Types of sampling

1. Ideal (impulse) sampling

gδ(t)=∑ng(nTs)δ(t−nTs),Gδ(f)=fs∑nG(f−nfs)g_\delta(t) = \sum_n g(nT_s)\delta(t - nT_s), \qquad G_\delta(f) = f_s\sum_n G(f - nf_s)

Samples are zero-width impulses. Theoretical only, since impulses cannot be generated.

2. Natural sampling

s(t)=g(t)c(t),S(f)=τTs∑nsinc(nfsτ)G(f−nfs)s(t) = g(t)c(t), \qquad S(f) = \frac{\tau}{T_s}\sum_n \text{sinc}(nf_s\tau)G(f - nf_s)

Pulses of width τ\tau whose tops follow the signal; done by an analog switch (chopper). No aperture distortion.

3. Flat-top sampling

s(t)=∑ng(nTs)h(t−nTs),S(f)=fsH(f)∑nG(f−nfs)s(t) = \sum_n g(nT_s)h(t - nT_s), \qquad S(f) = f_sH(f)\sum_n G(f - nf_s)

Pulses of width τ\tau 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
TypePulseSpectrum copiesPractical?
IdealImpulseExact G(f)G(f), equal heightNo
NaturalWidth τ\tau, curved topExact G(f)G(f), sinc-scaled heightYes
Flat-topWidth τ\tau, flat topG(f)H(f)G(f)H(f), distortedYes (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 (μ=255\mu = 255) and A-law (A=87.6A = 87.6).

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

  1. Prediction error: d[k]=m[k]−m^[k]d[k] = m[k] - \hat m[k], where m^[k]\hat m[k] is predicted from past reconstructed samples.
  2. Quantized error: dq[k]=d[k]+q[k]d_q[k] = d[k] + q[k], with q[k]q[k] the quantization error.
  3. Predictor input:
mq[k]=m^[k]+dq[k]=m^[k]+d[k]+q[k]=m[k]+q[k]\begin{aligned} m_q[k] &= \hat m[k] + d_q[k] = \hat m[k] + d[k] + q[k] \\ &= m[k] + q[k] \end{aligned}

So the reconstructed sample differs from the true one only by the quantization error of d[k]d[k]; errors do not accumulate. 4. The receiver has the same predictor, adds dq[k]d_q[k] to its prediction and gets mq[k]m_q[k], then low-pass filters it. 5. SNR gain: since d[k]d[k] is quantized instead of m[k]m[k],

SNRDPCM=m2‾d2‾⋅d2‾q2‾=Gp×SNRq\text{SNR}_{DPCM} = \frac{\overline{m^2}}{\overline{d^2}}\cdot\frac{\overline{d^2}}{\overline{q^2}} = G_p \times \text{SNR}_q

where Gp=m2‾/d2‾G_p = \overline{m^2}/\overline{d^2} 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: W=4.5W = 4.5 MHz, L=1024L = 1024, sampling 20% above Nyquist rate.

  1. Bits per sample:
n=log⁡2L=log⁡21024=10 bitsn = \log_2 L = \log_2 1024 = 10\ \text{bits}
  1. Nyquist rate and actual sampling rate:
fN=2W=2×4.5=9 MHzfs=1.2×9=10.8 MHz\begin{aligned} f_N &= 2W = 2 \times 4.5 = 9\ \text{MHz} \\ f_s &= 1.2 \times 9 = 10.8\ \text{MHz} \end{aligned}
  1. Bit rate:
Rb=nfs=10×10.8×106=108×106 bpsR_b = n f_s = 10 \times 10.8 \times 10^6 = 108 \times 10^6\ \text{bps}

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 Δ\Delta.

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

e[k]=m[k]−mq[k−1]eq[k]=Δ sgn(e[k])=±Δmq[k]=mq[k−1]+eq[k]=∑i=0keq[i]\begin{aligned} e[k] &= m[k] - m_q[k-1] \\ e_q[k] &= \Delta\,\text{sgn}(e[k]) = \pm\Delta \\ m_q[k] &= m_q[k-1] + e_q[k] = \sum_{i=0}^{k} e_q[i] \end{aligned}

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 Δfs\Delta f_s the staircase cannot follow. For m(t)=Asin⁡2πfmtm(t) = A\sin 2\pi f_m t we need
Δfs≥2πfmA  ⇒  Amax=Δfs2πfm\Delta f_s \ge 2\pi f_m A \;\Rightarrow\; A_{max} = \frac{\Delta f_s}{2\pi f_m}
  • Granular noise: for a flat signal the staircase hunts ±Δ\pm\Delta; error is uniform in (−Δ,Δ)(-\Delta, \Delta) with power Δ2/3\Delta^2/3. After the LPF of bandwidth fMf_M:
Nq=Δ23fMfs,SQNRmax=38π2fs3fm2fMN_q = \frac{\Delta^2}{3}\frac{f_M}{f_s}, \qquad \text{SQNR}_{max} = \frac{3}{8\pi^2}\frac{f_s^3}{f_m^2 f_M}

So SQNR rises 9 dB for every doubling of fsf_s.

PCM vs DM

PointPCMDM
Bits/samplenn (e.g. 8)1
Sampling rateNear NyquistMuch higher
ErrorsQuantization noiseSlope overload + granular
SQNR improves by6 dB per bit9 dB per doubling of fsf_s
BandwidthnWnW (higher)Lower for same quality only at low SQNR
ComplexityADC, framing neededVery 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 g(t)g(t), band-limited to WW, is multiplied by an impulse train of period TsT_s:

gδ(t)=g(t)∑nδ(t−nTs)=∑ng(nTs) δ(t−nTs)g_\delta(t) = g(t)\sum_n \delta(t - nT_s) = \sum_n g(nT_s)\,\delta(t - nT_s)

The impulse train has the Fourier series δTs(t)=fs∑nej2πnfst\delta_{T_s}(t) = f_s\sum_n e^{j2\pi nf_st}, so

Gδ(f)=fs∑n=−∞∞G(f−nfs)G_\delta(f) = f_s\sum_{n=-\infty}^{\infty} G(f - nf_s)

The spectrum is G(f)G(f) repeated every fsf_s (scaled by fsf_s).

 G(f)        /\
        ____/  \____
           -W   W
 Gd(f) /\    /\    /\
  ____/  \__/  \__/  \___   (fs > 2W)
     -fs    0     fs
          |<-LPF->|

Reconstruction

  • If fs≥2Wf_s \ge 2W, the copies do not overlap. An ideal LPF of gain TsT_s and cut-off BB (W≤B≤fs−WW \le B \le f_s - W) passes only the n=0n = 0 copy, giving back G(f)G(f).
  • In the time domain, the LPF impulse response is h(t)=2BTs sinc(2πBt)h(t) = 2BT_s\,\text{sinc}(2\pi Bt). With fs=2Wf_s = 2W and B=WB = W, h(t)=sinc(2πWt)h(t) = \text{sinc}(2\pi Wt), and
g(t)=∑ng(nTs) sinc(2πW(t−nTs))g(t) = \sum_n g(nT_s)\,\text{sinc}\big(2\pi W(t - nT_s)\big)

This is the interpolation formula: each sample is replaced by a sinc pulse, and the sum is exactly g(t)g(t).

  • If fs<2Wf_s < 2W, copies overlap (aliasing) and g(t)g(t) cannot be recovered.
  • In practice a guard band (fs>2Wf_s > 2W) is used since ideal LPFs do not exist.

Nyquist rate of 12πcos⁡(400πt)cos⁡(1000πt)\tfrac{1}{2\pi}\cos(400\pi t)\cos(1000\pi t)

(The constant in front only scales amplitude, so it does not affect the answer.)

Using cos⁡Acos⁡B=12[cos⁡(A−B)+cos⁡(A+B)]\cos A\cos B = \tfrac{1}{2}[\cos(A - B) + \cos(A + B)]:

12πcos⁡(400πt)cos⁡(1000πt)=14π[cos⁡(600πt)+cos⁡(1400πt)]\frac{1}{2\pi}\cos(400\pi t)\cos(1000\pi t) = \frac{1}{4\pi}\big[\cos(600\pi t) + \cos(1400\pi t)\big]

Frequencies: 300300 Hz and 700700 Hz, so fmax=700f_{max} = 700 Hz.

fN=2×700=1400 HzTN=11400=0.714 ms\begin{aligned} f_N &= 2 \times 700 = 1400\ \text{Hz} \\ T_N &= \frac{1}{1400} = 0.714\ \text{ms} \end{aligned}

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

PointUniformNon-uniform
Step sizeEqual everywhereSmall near zero, large at high amplitude
Quantization noiseSame Δ2/12\Delta^2/12 for all levelsSmall for weak, larger for strong signals
SQNRFalls for weak signalsNearly constant over range
ImplementationSimple ADCCompressor + uniform ADC + expander
Suited toSignals with uniform pdfSpeech, 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 ∝\propto 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 x=m/mpx = m/m_p normalised input (∣x∣≤1|x| \le 1):

µ-law (North America, Japan; μ=255\mu = 255):

y=sgn(x) ln⁡(1+μ∣x∣)ln⁡(1+μ)y = \text{sgn}(x)\,\frac{\ln(1 + \mu|x|)}{\ln(1 + \mu)}

A-law (Europe, ITU-T E1 systems; A=87.6A = 87.6):

y={sgn(x)A∣x∣1+ln⁡A,0≤∣x∣≤1Asgn(x)1+ln⁡(A∣x∣)1+ln⁡A,1A≤∣x∣≤1y = \begin{cases} \text{sgn}(x)\dfrac{A|x|}{1 + \ln A}, & 0 \le |x| \le \dfrac{1}{A} \\[2mm] \text{sgn}(x)\dfrac{1 + \ln(A|x|)}{1 + \ln A}, & \dfrac{1}{A} \le |x| \le 1 \end{cases}
  • μ=0\mu = 0 or A=1A = 1 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 nn bits per sample, the quantizer has L=2nL = 2^n levels. We find SQNR in terms of nn.

  1. Step size for a message in the range ±mp\pm m_p:
Δ=2mpL=2mp2n\Delta = \frac{2m_p}{L} = \frac{2m_p}{2^n}
  1. Quantization noise: the error qq is uniformly distributed in (−Δ/2,Δ/2)(-\Delta/2, \Delta/2):
Nq=∫−Δ/2Δ/2q21Δ dq=Δ212=mp23L2N_q = \int_{-\Delta/2}^{\Delta/2} q^2\frac{1}{\Delta}\,dq = \frac{\Delta^2}{12} = \frac{m_p^2}{3L^2}
  1. Signal power: take a full-load sinusoid m(t)=mpcos⁡ωmtm(t) = m_p\cos\omega_mt, so S=mp2/2S = m_p^2/2.
  2. SQNR:
SQNR=SNq=mp2/2mp2/(3L2)=32L2=32 22nSQNRdB=10log⁡1032+10log⁡1022n=1.76+20nlog⁡102=1.76+6.02n dB\begin{aligned} \text{SQNR} &= \frac{S}{N_q} = \frac{m_p^2/2}{m_p^2/(3L^2)} = \frac{3}{2}L^2 = \frac{3}{2}\,2^{2n} \\ \text{SQNR}_{dB} &= 10\log_{10}\frac{3}{2} + 10\log_{10}2^{2n} \\ &= 1.76 + 20n\log_{10}2 \\ &= 1.76 + 6.02n\ \text{dB} \end{aligned}
  1. Effect of one extra bit: going from nn to n+1n + 1 bits,
SQNRdB(n+1)−SQNRdB(n)=6.02(n+1)−6.02n=6.02≈6 dB\text{SQNR}_{dB}(n + 1) - \text{SQNR}_{dB}(n) = 6.02(n + 1) - 6.02n = 6.02 \approx 6\ \text{dB}

In ratio terms, LL doubles, Δ\Delta halves, and Nq=Δ2/12N_q = \Delta^2/12 falls by a factor of 4, i.e. 10log⁡104=6.0210\log_{10}4 = 6.02 dB.

For a general signal, SQNR=3L2 m2‾/mp2\text{SQNR} = 3L^2\,\overline{m^2}/m_p^2, i.e. SQNRdB=α+6.02n\text{SQNR}_{dB} = \alpha + 6.02n, where α\alpha 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 Rb=nfsR_b = nf_s and transmission bandwidth BT≈nWB_T \approx nW in proportion, so PCM trades bandwidth for SNR exponentially: SQNR ∝22BT/W\propto 2^{2B_T/W}.

Example: 7 bits give 1.76+42.1=43.91.76 + 42.1 = 43.9 dB; 8 bits give 49.949.9 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 WW Hz is completely described by its sample values taken at uniform intervals of Ts≤1/(2W)T_s \le 1/(2W) seconds, i.e. at a rate fs≥2Wf_s \ge 2W.

At the receiver: such a signal can be completely recovered from its samples taken at the rate of 2W2W samples per second (or more) by passing them through an ideal low-pass filter of bandwidth WW.

The rate 2W2W is the Nyquist rate. Proof sketch: ideal sampling gives Gδ(f)=fs∑nG(f−nfs)G_\delta(f) = f_s\sum_n G(f - nf_s); the copies separate when fs≥2Wf_s \ge 2W, so a LPF extracts G(f)G(f).

Aliasing

When fs<2Wf_s < 2W, or the signal is not strictly band-limited, the spectral copies overlap. High-frequency components fold back and appear as false low frequencies ∣f−fs∣|f - f_s|. 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

  1. Use an anti-aliasing (pre-alias) low-pass filter before the sampler to strictly band-limit the signal to WW.
  2. Sample slightly above the Nyquist rate (fs>2Wf_s > 2W) 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 τ\tau. The sampled spectrum becomes fsH(f)∑nG(f−nfs)f_sH(f)\sum_n G(f - nf_s) with H(f)=τ sinc(fτ)e−jπfτH(f) = \tau\,\text{sinc}(f\tau)e^{-j\pi f\tau}. Because ∣H(f)∣|H(f)| falls with frequency, high-frequency parts of the message are attenuated and slightly delayed: this amplitude distortion is the aperture effect.

Remedies

  1. Keep the pulse width small, τ≪Ts\tau \ll T_s (duty cycle τ/Ts≤0.1\tau/T_s \le 0.1 makes the loss under about 0.5%).
  2. Use an equalizer after the reconstruction LPF with response
Heq(f)=1H(f)=1τ sinc(fτ) for ∣f∣≤WH_{eq}(f) = \frac{1}{H(f)} = \frac{1}{\tau\,\text{sinc}(f\tau)}\ \text{for}\ |f| \le W

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 fLf_L to fHf_H with bandwidth B=fH−fLB = f_H - f_L, it is not necessary to sample at 2fH2f_H. The signal can be recovered from samples taken at a rate as low as about 2B2B, i.e. below the Nyquist rate of its highest frequency; this is called sub-sampling (or under-sampling). The allowed rates are

2fHk≤fs≤2fLk−1,k=1,2,…,⌊fHB⌋\frac{2f_H}{k} \le f_s \le \frac{2f_L}{k - 1}, \qquad k = 1, 2, \ldots, \left\lfloor \frac{f_H}{B} \right\rfloor

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 τ\tau, so the spectrum is multiplied by H(f)=τ sinc(fτ)H(f) = \tau\,\text{sinc}(f\tau). This attenuates the higher frequencies of the message, an amplitude distortion called the aperture effect. It is reduced by making τ≪Ts\tau \ll T_s and corrected by an equalizer with response 1/H(f)1/H(f) 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: 32×8×8000=2.04832 \times 8 \times 8000 = 2.048 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:

LevelInputsVoice channelsRate (Mbps)
E130 voice302.048
E24 × E11208.448
E34 × E248034.368
E44 × E31920139.264

Numerical

Given: W=4.2W = 4.2 MHz, L=512L = 512, sampling at the Nyquist rate.

i) Code word length

n=log⁡2512=9 bitsn = \log_2 512 = 9\ \text{bits}

ii) Transmission bandwidth (minimum, Nyquist)

fs=2W=8.4 MHzBT=Rb2=nfs2=nW=9×4.2=37.8 MHz\begin{aligned} f_s &= 2W = 8.4\ \text{MHz} \\ B_T &= \frac{R_b}{2} = \frac{nf_s}{2} = nW = 9 \times 4.2 = 37.8\ \text{MHz} \end{aligned}

iii) Bit rate

Rb=nfs=9×8.4×106=75.6 MbpsR_b = nf_s = 9 \times 8.4 \times 10^6 = 75.6\ \text{Mbps}

iv) SQNR (full-load sinusoid)

SQNR=1.5L2=1.5×5122=393 216SQNRdB=1.76+6.02×9=55.95 dB\begin{aligned} \text{SQNR} &= 1.5L^2 = 1.5 \times 512^2 = 393\,216 \\ \text{SQNR}_{dB} &= 1.76 + 6.02 \times 9 = 55.95\ \text{dB} \end{aligned}

(Using the form 3L23L^2 for a signal with power mp2m_p^2: 786 432786\,432, i.e. 58.96 dB.)

Answer: n=9n = 9 bits; BT=37.8B_T = 37.8 MHz; Rb=75.6R_b = 75.6 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 Δ2/12\Delta^2/12 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]<-------------------------+
  1. Normalise the input: x=m/mpx = m/m_p, so ∣x∣≤1|x| \le 1.
  2. Compress using the µ-law:
y=sgn(x) ln⁡(1+μ∣x∣)ln⁡(1+μ),μ=255y = \text{sgn}(x)\,\frac{\ln(1 + \mu|x|)}{\ln(1 + \mu)}, \qquad \mu = 255

For small xx, y≈μx/ln⁡(1+μ)y \approx \mu x/\ln(1 + \mu) (large gain); for large xx the curve is logarithmic (small gain). 3. Uniformly quantize yy into L=2nL = 2^n levels and encode into nn bits (8 bits in telephony). 4. At the receiver decode and expand with the inverse law:

∣x∣=(1+μ)∣y∣−1μ|x| = \frac{(1 + \mu)^{|y|} - 1}{\mu}
  1. The combined effect: equal steps in yy correspond to small steps in xx near zero and large steps near ±1\pm 1.

For μ≫1\mu \gg 1, SQNR ≈3L2[ln⁡(1+μ)]2\approx \dfrac{3L^2}{[\ln(1 + \mu)]^2}, almost independent of signal level; with μ=255\mu = 255, n=8n = 8 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 (A=87.6A = 87.6, 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 g(t)g(t) with no frequency components above WW Hz is uniquely determined by its samples taken at uniform intervals Ts≤1/(2W)T_s \le 1/(2W), and can be recovered from them exactly by an ideal low-pass filter.

Proof

Step 1: spectrum of the sampled signal. Ideal sampling:

gδ(t)=g(t) δTs(t)=∑ng(nTs)δ(t−nTs)g_\delta(t) = g(t)\,\delta_{T_s}(t) = \sum_n g(nT_s)\delta(t - nT_s)

The periodic impulse train has Fourier series δTs(t)=1Ts∑nej2πnfst\delta_{T_s}(t) = \dfrac{1}{T_s}\sum_n e^{j2\pi nf_st}. Hence

gδ(t)=fs∑ng(t)ej2πnfst  ⟺  Gδ(f)=fs∑n=−∞∞G(f−nfs)g_\delta(t) = f_s\sum_n g(t)e^{j2\pi nf_st} \;\Longleftrightarrow\; G_\delta(f) = f_s\sum_{n=-\infty}^{\infty}G(f - nf_s)

The spectrum is G(f)G(f) repeated at every multiple of fsf_s.

Step 2: no overlap. Each copy occupies nfs−Wnf_s - W to nfs+Wnf_s + W. Copies n=0n = 0 and n=1n = 1 do not overlap if W≤fs−WW \le f_s - W, i.e. fs≥2Wf_s \ge 2W.

Step 3: recovery. Pass gδ(t)g_\delta(t) through an ideal LPF H(f)=Ts rect(f/2W)H(f) = T_s\,\text{rect}(f/2W). Only the n=0n = 0 term survives: Gδ(f)H(f)=G(f)G_\delta(f)H(f) = G(f). In the time domain, with fs=2Wf_s = 2W, h(t)=sinc(2πWt)h(t) = \text{sinc}(2\pi Wt) and

g(t)=∑ng(nTs) h(t−nTs)=∑ng ⁣(n2W)sinc(2πWt−nπ)g(t) = \sum_n g(nT_s)\,h(t - nT_s) = \sum_n g\!\left(\frac{n}{2W}\right)\text{sinc}(2\pi Wt - n\pi)

Thus g(t)g(t) is fully recovered from its samples, proving the theorem.

 Gd(f):  /\      /\      /\
    ____/  \____/  \____/  \____
       -fs      0      fs
            |<-LPF->|   (needs fs >= 2W)

Aliasing effect

When fs<2Wf_s < 2W the spectral copies overlap; components above fs/2f_s/2 fold back and appear as false low frequencies. The signal cannot be recovered. Prevented by an anti-aliasing LPF and sampling above 2W2W.

Aperture effect

In flat-top sampling of pulse width τ\tau, the spectrum is multiplied by τ sinc(fτ)\tau\,\text{sinc}(f\tau), attenuating high message frequencies. This distortion is the aperture effect; it is reduced by small τ\tau and corrected by an equalizer 1/H(f)1/H(f).

  • 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

  1. Anti-aliasing LPF limits the message to WW Hz.
  2. Sampling at fs≥2Wf_s \ge 2W (flat-top, sample-and-hold), e.g. speech 3.4 kHz at 8 kHz.
  3. Quantization rounds each sample to one of LL levels. For uniform steps:
Δ=2mpL,Nq=Δ212\Delta = \frac{2m_p}{L}, \qquad N_q = \frac{\Delta^2}{12}

Non-uniform (µ/A-law) quantization is used for speech. 4. Encoding maps each level to an nn-bit code word, n=log⁡2Ln = \log_2 L. Bit rate and minimum bandwidth:

Rb=nfs,BT=Rb2=nW (at fs=2W)R_b = nf_s, \qquad B_T = \frac{R_b}{2} = nW\ (\text{at } f_s = 2W)

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

  1. Regeneration of clean pulses.
  2. Decoding: each code word is converted back to a quantized PAM sample.
  3. Reconstruction LPF (cut-off WW) recovers the analog signal, with only quantization noise.

Performance

SQNR=1.5L2  ⇒  SQNRdB=1.76+6.02n dB\text{SQNR} = 1.5L^2 \;\Rightarrow\; \text{SQNR}_{dB} = 1.76 + 6.02n\ \text{dB}

(full-load sinusoid). Each extra bit adds 6 dB but increases bandwidth.

Example: telephony with fs=8f_s = 8 kHz, n=8n = 8: Rb=64R_b = 64 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: n=7n = 7 bits/sample, Rb=50×106R_b = 50 \times 10^6 bps, uniform quantizer.

For satisfactory operation the sampling rate must be at least the Nyquist rate, fs≥2Wf_s \ge 2W.

  1. Bit rate relation:
Rb=nfs  ⇒  fs=Rbn=50×1067=7.143 MHzR_b = nf_s \;\Rightarrow\; f_s = \frac{R_b}{n} = \frac{50 \times 10^6}{7} = 7.143\ \text{MHz}
  1. Maximum message bandwidth (sampling exactly at Nyquist rate):
Wmax=fs2=Rb2n=50×10614=3.571 MHzW_{max} = \frac{f_s}{2} = \frac{R_b}{2n} = \frac{50 \times 10^6}{14} = 3.571\ \text{MHz}

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 τ\tau, which is the same as passing ideal samples through a rectangular pulse filter H(f)=τ sinc(fτ)e−jπfτH(f) = \tau\,\text{sinc}(f\tau)e^{-j\pi f\tau}. The sampled spectrum fsH(f)∑nG(f−nfs)f_sH(f)\sum_n G(f - nf_s) 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 τ≪Ts\tau \ll T_s and corrected by an equalizer with response 1/H(f)1/H(f).

Aliasing effect

If the sampling rate is below the Nyquist rate (fs<2Wf_s < 2W), or the signal is not band-limited, the shifted copies of the spectrum overlap. Components above fs/2f_s/2 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 2W2W.

Numerical

g(t)=10cos⁡(20πt)cos⁡(200πt)=5cos⁡(180πt)+5cos⁡(220πt)g(t) = 10\cos(20\pi t)\cos(200\pi t) = 5\cos(180\pi t) + 5\cos(220\pi t)

So g(t)g(t) has two tones: 90 Hz and 110 Hz, each of amplitude 5. Highest frequency W=110W = 110 Hz.

(i) Spectrum of the sampled signal (fs=250f_s = 250 Hz)

G(f)=2.5[δ(f±90)+δ(f±110)]Gδ(f)=fs∑nG(f−nfs)=625∑n[δ(f−250n±90)+δ(f−250n±110)]\begin{aligned} G(f) &= 2.5\big[\delta(f \pm 90) + \delta(f \pm 110)\big] \\ G_\delta(f) &= f_s\sum_n G(f - nf_s) = 625\sum_n\big[\delta(f - 250n \pm 90) + \delta(f - 250n \pm 110)\big] \end{aligned}

Each line has weight 250×2.5=625250 \times 2.5 = 625. Positive-frequency lines:

nnLines at 250n±90250n \pm 90, 250n±110250n \pm 110 (Hz)
090, 110
1140, 160, 340, 360
2390, 410, 590, 610
3640, 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 fs=250>2W=220f_s = 250 > 2W = 220.

(ii) Reconstruction filter cut-off An ideal LPF must pass 110 Hz and reject 140 Hz:

110 Hz<fc<140 Hz110\ \text{Hz} < f_c < 140\ \text{Hz}

A convenient choice is the midpoint fc=fs/2=125f_c = f_s/2 = 125 Hz.

(iii) Nyquist rate

fN=2W=2×110=220 Hzf_N = 2W = 2 \times 110 = 220\ \text{Hz}

Answer: lines at 250n±90250n \pm 90 and 250n±110250n \pm 110 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

PointUniformNon-uniform
Step sizeConstant Δ\Delta over the whole rangeSmall near zero, larger at high amplitudes
Noise powerΔ2/12\Delta^2/12, same at all levelsVaries; small for weak signals
SQNRProportional to signal power; poor for weak signalsNearly constant over wide range
RealisationUniform ADCCompressor + uniform ADC + expander (companding)
LawsLinearµ-law (μ=255\mu = 255), A-law (A=87.6A = 87.6)
Bits for toll-quality speechAbout 12–138
Used inInstrumentation, video, audio with uniform pdfTelephony (speech)

Non-uniform quantization suits speech because small amplitudes are much more likely and the dynamic range is large.

Numerical

Given: fmax=W=4f_{max} = W = 4 kHz, L=16L = 16 levels.

a) Bits per sample

n=log⁡2L=log⁡216=4 bitsn = \log_2 L = \log_2 16 = 4\ \text{bits}

b) Minimum sampling rate and bit rate

fs,min=2W=2×4=8 kHzRb=nfs=4×8000=32 kbps\begin{aligned} f_{s,min} &= 2W = 2 \times 4 = 8\ \text{kHz} \\ R_b &= nf_s = 4 \times 8000 = 32\ \text{kbps} \end{aligned}

Answer: (a) 4 bits/sample; (b) fs=8f_s = 8 kHz (8000 samples/s), Rb=32R_b = 32 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 fLf_L to fHf_H (bandwidth B=fH−fLB = f_H - f_L) can be sampled at a rate much lower than 2fH2f_H, roughly 2B2B, without loss of information. The valid rates are

2fHk≤fs≤2fLk−1,1≤k≤⌊fHB⌋\frac{2f_H}{k} \le f_s \le \frac{2f_L}{k - 1}, \qquad 1 \le k \le \left\lfloor\frac{f_H}{B}\right\rfloor

Here aliasing is used on purpose: the band is shifted down to baseband without overlap. Used in IF sampling receivers.

Numerical: x(t)=sinc(5πt)x(t) = \text{sinc}(5\pi t), fs=10f_s = 10 Hz

Using sinc(θ)=sin⁡θ/θ\text{sinc}(\theta) = \sin\theta/\theta:

x(t)=sin⁡5πt5πt  ⟺  X(f)=15 rect ⁣(f5)x(t) = \frac{\sin 5\pi t}{5\pi t} \;\Longleftrightarrow\; X(f) = \frac{1}{5}\,\text{rect}\!\left(\frac{f}{5}\right)

so X(f)=0.2X(f) = 0.2 for ∣f∣<2.5|f| < 2.5 Hz and zero elsewhere. Bandwidth W=2.5W = 2.5 Hz, Nyquist rate =5= 5 Hz.

i) Sampled signal (Ts=0.1T_s = 0.1 s): x(nTs)=sin⁡(nπ/2)nπ/2x(nT_s) = \dfrac{\sin(n\pi/2)}{n\pi/2}

nn0±1±2±3±4±5
x(n/10)x(n/10)10.6370−0.21200.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

Xs(f)=fs∑nX(f−nfs)=2∑nrect ⁣(f−10n5)X_s(f) = f_s\sum_n X(f - nf_s) = 2\sum_n \text{rect}\!\left(\frac{f - 10n}{5}\right)

Rectangles of height 10×0.2=210 \times 0.2 = 2 and width 5 Hz centred at 0,±10,±20,±300, \pm 10, \pm 20, \pm 30 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 ∣f∣<30|f| < 30: ∣f∣<2.5|f| < 2.5, 7.57.5–12.512.5, 17.517.5–22.522.5, 27.527.5–3030 Hz (and mirrored).

iii) Recovery Yes. fs=10f_s = 10 Hz is greater than the Nyquist rate 2W=52W = 5 Hz, so the copies are separated by 5 Hz gaps (2.5 to 7.5 Hz). An ideal LPF with gain 1/101/10 and cut-off anywhere between 2.5 and 7.5 Hz (e.g. 5 Hz) recovers x(t)x(t) 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]<-------------+
  1. Compressor applies a logarithmic gain: weak signals amplified more than strong ones. µ-law: y=sgn(x)ln⁡(1+μ∣x∣)ln⁡(1+μ)y = \text{sgn}(x)\dfrac{\ln(1 + \mu|x|)}{\ln(1 + \mu)}, μ=255\mu = 255; or A-law with A=87.6A = 87.6.
  2. Uniform quantizer then acts on the compressed signal; equal steps in yy are small steps in xx near zero.
  3. 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: W=4W = 4 kHz, range ±2.4\pm 2.4 V (mp=2.4m_p = 2.4 V), Rb=64R_b = 64 kbps. Assume sampling at the Nyquist rate and a full-scale sinusoidal signal.

Bits per sample

fs=2W=8 kHzn=Rbfs=64 0008000=8 bits,L=28=256\begin{aligned} f_s &= 2W = 8\ \text{kHz} \\ n &= \frac{R_b}{f_s} = \frac{64\,000}{8000} = 8\ \text{bits}, \quad L = 2^8 = 256 \end{aligned}

Quantization noise power

Δ=2mpL=4.8256=0.01875 VNq=Δ212=(0.01875)212=2.93×10−5 V2\begin{aligned} \Delta &= \frac{2m_p}{L} = \frac{4.8}{256} = 0.01875\ \text{V} \\ N_q &= \frac{\Delta^2}{12} = \frac{(0.01875)^2}{12} = 2.93 \times 10^{-5}\ \text{V}^2 \end{aligned}

SQNR

S=mp22=2.422=2.88 V2SQNR=2.882.93×10−5=98 304SQNRdB=10log⁡1098 304=49.93 dB\begin{aligned} S &= \frac{m_p^2}{2} = \frac{2.4^2}{2} = 2.88\ \text{V}^2 \\ \text{SQNR} &= \frac{2.88}{2.93 \times 10^{-5}} = 98\,304 \\ \text{SQNR}_{dB} &= 10\log_{10}98\,304 = 49.93\ \text{dB} \end{aligned}

(Check: 1.76+6.02×8=49.921.76 + 6.02 \times 8 = 49.92 dB.)

Minimum bandwidth for TDM of 10 signals

Rb,total=10×64=640 kbpsBT,min=Rb,total2=320 kHz\begin{aligned} R_{b,total} &= 10 \times 64 = 640\ \text{kbps} \\ B_{T,min} &= \frac{R_{b,total}}{2} = 320\ \text{kHz} \end{aligned}

Answer: n=8n = 8 bits; Nq=2.93×10−5N_q = 2.93 \times 10^{-5} V² (normalised to 1 Ω); SQNR = 49.93 dB; BT=320B_T = 320 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: fm=3f_m = 3 kHz, fs=10f_s = 10 kHz, Amax=1A_{max} = 1. Assume output LPF bandwidth fM=fm=3f_M = f_m = 3 kHz.

i) Minimum step size to avoid slope overload

The staircase slope Δfs\Delta f_s must be at least the maximum signal slope 2πfmA2\pi f_mA:

Δmin=2πfmAmaxfs=2π×3000×110 000=1.885 V\begin{aligned} \Delta_{min} &= \frac{2\pi f_mA_{max}}{f_s} \\ &= \frac{2\pi \times 3000 \times 1}{10\,000} = 1.885\ \text{V} \end{aligned}

ii) SQNR for a sinusoidal signal

Signal power at maximum amplitude S=A2/2=Δ2fs28π2fm2S = A^2/2 = \dfrac{\Delta^2f_s^2}{8\pi^2f_m^2}; granular noise after the LPF Nq=Δ23fMfsN_q = \dfrac{\Delta^2}{3}\dfrac{f_M}{f_s}:

SQNR=38π2 fs3fm2fM=38π2(103)3=0.0380×37.04=1.407SQNRdB=10log⁡101.407=1.48 dB\begin{aligned} \text{SQNR} &= \frac{3}{8\pi^2}\,\frac{f_s^3}{f_m^2f_M} = \frac{3}{8\pi^2}\left(\frac{10}{3}\right)^3 \\ &= 0.0380 \times 37.04 = 1.407 \\ \text{SQNR}_{dB} &= 10\log_{10}1.407 = 1.48\ \text{dB} \end{aligned}

This very low value shows that fs=10f_s = 10 kHz is far too low for DM; DM needs fsf_s many times the Nyquist rate.

iii) Minimum transmission bandwidth

One bit per sample: Rb=fs=10R_b = f_s = 10 kbps.

BT,min=Rb2=5 kHzB_{T,min} = \frac{R_b}{2} = 5\ \text{kHz}

Answer: Δmin=1.885\Delta_{min} = 1.885 V; SQNR = 1.407 (1.48 dB); BT=5B_T = 5 kHz (10 kHz if BT=RbB_T = R_b 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 Δ\Delta 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 Δ\Delta avoids slope overload but gives large granular noise; a small Δ\Delta 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 Δmin\Delta_{min}.
  • The receiver uses the same logic on the received bits, so no extra side information is sent.
  • A common rule (Song algorithm): Δk=∣Δk−1∣(ek+12ek−1)\Delta_k = |\Delta_{k-1}|\left(e_k + \tfrac{1}{2}e_{k-1}\right); 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 g(t)g(t) band-limited to WW Hz is completely described by its instantaneous values taken at uniform intervals Ts≤12WT_s \le \dfrac{1}{2W}, and can be exactly reconstructed from them. The minimum rate fs=2Wf_s = 2W 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 g(t)g(t) by a periodic impulse train:

gδ(t)=g(t)∑nδ(t−nTs)=∑ng(nTs) δ(t−nTs)g_\delta(t) = g(t)\sum_n\delta(t - nT_s) = \sum_n g(nT_s)\,\delta(t - nT_s)

Reconstruction by an ideal LPF of bandwidth WW (with fs=2Wf_s = 2W, h(t)=sinc(2πWt)h(t) = \text{sinc}(2\pi Wt)) gives

g(t)=∑n=−∞∞g(nTs) sinc(2πW(t−nTs))g(t) = \sum_{n=-\infty}^{\infty} g(nT_s)\,\text{sinc}\big(2\pi W(t - nT_s)\big)

At t=kTst = kT_s only the kk-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 δTs(t)=fs∑nej2πnfst\delta_{T_s}(t) = f_s\sum_n e^{j2\pi nf_st}, so

Gδ(f)=fs∑n=−∞∞G(f−nfs)G_\delta(f) = f_s\sum_{n=-\infty}^{\infty}G(f - nf_s)
     /\        /\        /\
 ___/  \______/  \______/  \___ f
   -fs   -W  0  W     fs
  • Copies of G(f)G(f) sit at 0,±fs,±2fs,…0, \pm f_s, \pm 2f_s, \ldots
  • They do not overlap if fs−W≥Wf_s - W \ge W, i.e. fs≥2Wf_s \ge 2W.
  • An ideal LPF H(f)=TsH(f) = T_s for ∣f∣<W|f| < W then gives G(f)G(f) back.
  • If fs<2Wf_s < 2W the copies overlap and G(f)G(f) is lost.

Aliasing and aperture effect

  • Aliasing: overlap of spectral copies when fs<2Wf_s < 2W; high frequencies appear as false low frequencies. Prevented by an anti-aliasing filter and fs>2Wf_s > 2W.
  • Aperture effect: in flat-top sampling with pulse width τ\tau, the spectrum is multiplied by τ sinc(fτ)\tau\,\text{sinc}(f\tau), attenuating high frequencies. Corrected with an equalizer 1/H(f)1/H(f) or small τ\tau.
  • 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: x(t)=6cos⁡(5000πt)x(t) = 6\cos(5000\pi t), so A=6A = 6 V, fm=2500f_m = 2500 Hz. L=128L = 128. Nyquist rate fs=2fm=5f_s = 2f_m = 5 kHz.

a) SQNR of PCM

n=log⁡2128=7n = \log_2 128 = 7 bits. For a full-load sinusoid (mp=6m_p = 6 V):

Δ=2×6128=0.09375 V,Nq=Δ212SQNR=A2/2Δ2/12=1.5L2=1.5×1282=24 576SQNRdB=10log⁡1024 576=43.91 dB\begin{aligned} \Delta &= \frac{2 \times 6}{128} = 0.09375\ \text{V}, \quad N_q = \frac{\Delta^2}{12} \\ \text{SQNR} &= \frac{A^2/2}{\Delta^2/12} = 1.5L^2 = 1.5 \times 128^2 = 24\,576 \\ \text{SQNR}_{dB} &= 10\log_{10}24\,576 = 43.91\ \text{dB} \end{aligned}

b) Sampling frequency for DM with the same SQNR

For DM with a sinusoid at the slope-overload limit and output filter fM=fmf_M = f_m:

SQNRDM=38π2(fsfm)3\text{SQNR}_{DM} = \frac{3}{8\pi^2}\left(\frac{f_s}{f_m}\right)^3

Set equal to 24 576:

(fsfm)3=24 576×8π23=6.468×105fsfm=86.48fs=86.48×2500=216.2 kHz\begin{aligned} \left(\frac{f_s}{f_m}\right)^3 &= \frac{24\,576 \times 8\pi^2}{3} = 6.468 \times 10^5 \\ \frac{f_s}{f_m} &= 86.48 \\ f_s &= 86.48 \times 2500 = 216.2\ \text{kHz} \end{aligned}

c) SQNR degradation of DM at the Nyquist rate

With fs=5f_s = 5 kHz, fs/fm=2f_s/f_m = 2:

SQNRDM=38π2(2)3=3π2=0.304SQNRDM,dB=−5.17 dBDegradation=43.91−(−5.17)=49.08 dB\begin{aligned} \text{SQNR}_{DM} &= \frac{3}{8\pi^2}(2)^3 = \frac{3}{\pi^2} = 0.304 \\ \text{SQNR}_{DM,dB} &= -5.17\ \text{dB} \\ \text{Degradation} &= 43.91 - (-5.17) = 49.08\ \text{dB} \end{aligned}

Answer: (a) 43.91 dB; (b) fs≈216.2f_s \approx 216.2 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 g(t)g(t) be band-limited to WW Hz and sampled ideally at the Nyquist rate fs=2Wf_s = 2W (Ts=1/2WT_s = 1/2W).

1. Sampled signal and its spectrum

gδ(t)=∑ng(nTs) δ(t−nTs),Gδ(f)=fs∑nG(f−nfs)g_\delta(t) = \sum_n g(nT_s)\,\delta(t - nT_s), \qquad G_\delta(f) = f_s\sum_n G(f - nf_s)

With fs=2Wf_s = 2W the copies just touch without overlapping, so in ∣f∣<W|f| < W:

Gδ(f)=2W G(f)  ⇒  G(f)=12WGδ(f),∣f∣<WG_\delta(f) = 2W\,G(f) \;\Rightarrow\; G(f) = \frac{1}{2W}G_\delta(f), \quad |f| < W

2. Express G(f)G(f) through the samples. Taking the Fourier transform of gδ(t)g_\delta(t) directly:

Gδ(f)=∑ng ⁣(n2W)e−jπnf/WG_\delta(f) = \sum_n g\!\left(\frac{n}{2W}\right)e^{-j\pi nf/W}

so

G(f)=12W∑ng ⁣(n2W)e−jπnf/W,∣f∣<WG(f) = \frac{1}{2W}\sum_n g\!\left(\frac{n}{2W}\right)e^{-j\pi nf/W}, \quad |f| < W

G(f)G(f), and therefore g(t)g(t), is fixed by the samples alone.

3. Inverse transform (ideal LPF reconstruction)

g(t)=∫−WWG(f)ej2πftdf=∑ng ⁣(n2W)12W∫−WWej2πf(t−n/2W)df=∑ng ⁣(n2W)sin⁡(2πW(t−n/2W))2πW(t−n/2W)=∑ng ⁣(n2W)sinc(2πWt−nπ)\begin{aligned} g(t) &= \int_{-W}^{W}G(f)e^{j2\pi ft}df \\ &= \sum_n g\!\left(\frac{n}{2W}\right)\frac{1}{2W}\int_{-W}^{W}e^{j2\pi f(t - n/2W)}df \\ &= \sum_n g\!\left(\frac{n}{2W}\right)\frac{\sin\big(2\pi W(t - n/2W)\big)}{2\pi W(t - n/2W)} \\ &= \sum_n g\!\left(\frac{n}{2W}\right)\text{sinc}(2\pi Wt - n\pi) \end{aligned}

This is the interpolation formula. Each sample is multiplied by a sinc pulse centred at its own instant; at t=kTst = kT_s all other sincs are zero, so g(kTs)g(kT_s) is reproduced exactly, and between samples the sum fills in g(t)g(t). Physically this is the output of an ideal LPF (cut-off WW, gain TsT_s) 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 (fs<2Wf_s < 2W), or when it contains components above fs/2f_s/2. The shifted spectral copies overlap, so high-frequency components fold back and appear as false low frequencies ∣f−nfs∣|f - nf_s|. 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

  1. Anti-aliasing (pre-alias) filter: a low-pass filter before the sampler removes components above WW (and noise) so the signal is strictly band-limited.
  2. Sample above the Nyquist rate: use fs>2Wf_s > 2W 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).
  3. 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

  1. Signals are not strictly band-limited. Real signals (and noise) have some energy above WW, which would alias. An anti-aliasing LPF is used before the sampler.
  2. Non-ideal filters. Ideal brick-wall filters do not exist, so the sampling rate is chosen above 2W2W to leave a guard band for the filter's transition region (speech 3.4 kHz sampled at 8 kHz instead of 6.8 kHz).
  3. Finite pulse width (aperture effect). Practical samples are pulses of width τ\tau, not impulses. Flat-top sampling multiplies the spectrum by τ sinc(fτ)\tau\,\text{sinc}(f\tau), attenuating high frequencies; fixed by small τ/Ts\tau/T_s and an equalizer 1/H(f)1/H(f).
  4. Sample-and-hold limits. Acquisition time, droop of the hold capacitor and aperture jitter (uncertainty in sampling instant) cause errors, especially for fast signals.
  5. Clock stability. Jitter in fsf_s produces timing errors, so stable crystal clocks are used.
  6. Choice of rate. Higher fsf_s eases filtering but raises bit rate, storage and bandwidth; a compromise is chosen.
  7. 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 Y(t)=X1(t)X2(t)Y(t) = X_1(t)X_2(t)

Multiplication in time is convolution in frequency:

Y(f)=X1(f)∗X2(f)Y(f) = X_1(f) * X_2(f)

If X1X_1 occupies ∣f∣≤W1|f| \le W_1 and X2X_2 occupies ∣f∣≤W2|f| \le W_2, the convolution occupies ∣f∣≤W1+W2|f| \le W_1 + W_2. So the bandwidth of YY is W1+W2W_1 + W_2.

fs,min=2(W1+W2)Ts,max=12(W1+W2)\begin{aligned} f_{s,min} &= 2(W_1 + W_2) \\ T_{s,max} &= \frac{1}{2(W_1 + W_2)} \end{aligned}

Answer: maximum sampling interval =12(W1+W2)= \dfrac{1}{2(W_1 + W_2)} 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: W=4.8W = 4.8 MHz, L=512L = 512, sampling at the Nyquist rate.

i) Code word length

n=log⁡2512=9 bitsn = \log_2 512 = 9\ \text{bits}

ii) Transmission bandwidth (minimum, Nyquist)

fs=2W=9.6 MHzBT=nfs2=nW=9×4.8=43.2 MHz\begin{aligned} f_s &= 2W = 9.6\ \text{MHz} \\ B_T &= \frac{nf_s}{2} = nW = 9 \times 4.8 = 43.2\ \text{MHz} \end{aligned}

iii) Final bit rate

Rb=nfs=9×9.6×106=86.4 MbpsR_b = nf_s = 9 \times 9.6 \times 10^6 = 86.4\ \text{Mbps}

iv) Output SQNR (full-load sinusoid)

SQNR=1.5L2=1.5×5122=393 216SQNRdB=1.76+6.02×9=55.95 dB\begin{aligned} \text{SQNR} &= 1.5L^2 = 1.5 \times 512^2 = 393\,216 \\ \text{SQNR}_{dB} &= 1.76 + 6.02 \times 9 = 55.95\ \text{dB} \end{aligned}

(Using 3L23L^2: 58.96 dB.)

Answer: n=9n = 9 bits; BT=43.2B_T = 43.2 MHz; Rb=86.4R_b = 86.4 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 Δ\Delta is just large enough to avoid slope overload, so only granular noise remains.

1. Maximum signal amplitude (no slope overload) For m(t)=Acos⁡ωmtm(t) = A\cos\omega_mt the maximum slope is 2πfmA2\pi f_mA. The staircase can change by Δ\Delta per TsT_s, so we need

2πfmA≤Δfs  ⇒  Amax=Δfs2πfm2\pi f_mA \le \Delta f_s \;\Rightarrow\; A_{max} = \frac{\Delta f_s}{2\pi f_m}

2. Signal power

S=Amax22=Δ2fs28π2fm2S = \frac{A_{max}^2}{2} = \frac{\Delta^2f_s^2}{8\pi^2f_m^2}

3. Granular noise power Without slope overload the error e(t)=m(t)−mq(t)e(t) = m(t) - m_q(t) lies in (−Δ,+Δ)(-\Delta, +\Delta) and is assumed uniform with pdf 1/(2Δ)1/(2\Delta):

e2‾=∫−ΔΔe212Δ de=Δ23\overline{e^2} = \int_{-\Delta}^{\Delta}e^2\frac{1}{2\Delta}\,de = \frac{\Delta^2}{3}

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 fsf_s. The receiver LPF passes only 00 to fMf_M (message bandwidth), so

Nq=Δ23⋅fMfsN_q = \frac{\Delta^2}{3}\cdot\frac{f_M}{f_s}

5. SQNR

SQNR=SNq=Δ2fs28π2fm2⋅3fsΔ2fM=38π2 fs3fm2fM\begin{aligned} \text{SQNR} &= \frac{S}{N_q} = \frac{\Delta^2f_s^2}{8\pi^2f_m^2}\cdot\frac{3f_s}{\Delta^2f_M} \\ &= \frac{3}{8\pi^2}\,\frac{f_s^3}{f_m^2f_M} \end{aligned}

With fm=fM=Wf_m = f_M = W:

SQNR=38π2(fsW)3≈0.038(fsW)3\text{SQNR} = \frac{3}{8\pi^2}\left(\frac{f_s}{W}\right)^3 \approx 0.038\left(\frac{f_s}{W}\right)^3

Observations

  • SQNR is independent of Δ\Delta (when Δ\Delta is set at the overload limit).
  • SQNR ∝fs3\propto f_s^3: doubling fsf_s improves SQNR by 10log⁡108=910\log_{10}8 = 9 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: fs/W=32f_s/W = 32 gives 0.038×32 768≈12450.038 \times 32\,768 \approx 1245, 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 τ\tau. This is equivalent to passing ideal samples through a filter with impulse response h(t)=rect(t/τ)h(t) = \text{rect}(t/\tau):

S(f)=fsH(f)∑nG(f−nfs),H(f)=τ sinc(fτ)e−jπfτS(f) = f_sH(f)\sum_n G(f - nf_s), \qquad H(f) = \tau\,\text{sinc}(f\tau)e^{-j\pi f\tau}

Since ∣H(f)∣|H(f)| falls as ff rises, the higher message frequencies are attenuated (and delayed by τ/2\tau/2). This amplitude distortion is the aperture effect; the larger τ\tau, the worse it is.

Correction

  1. Equalizer: after the reconstruction LPF, use a filter with
Heq(f)=1H(f)=1τ sinc(fτ),∣f∣≤WH_{eq}(f) = \frac{1}{H(f)} = \frac{1}{\tau\,\text{sinc}(f\tau)}, \quad |f| \le W

which boosts high frequencies to cancel the sinc droop. 2. Small duty cycle: keep τ≪Ts\tau \ll T_s; for τ/Ts≤0.1\tau/T_s \le 0.1 the droop at the band edge is under about 0.5%, so equalization is often unnecessary.

Band-pass sampling of 80–115 kHz

fL=80f_L = 80 kHz, fH=115f_H = 115 kHz, B=fH−fL=35B = f_H - f_L = 35 kHz.

Band-pass sampling condition:

2fHk≤fs≤2fLk−1,kmax=⌊fHB⌋\frac{2f_H}{k} \le f_s \le \frac{2f_L}{k - 1}, \qquad k_{max} = \left\lfloor\frac{f_H}{B}\right\rfloor kmax=⌊11535⌋=⌊3.29⌋=3fs,min=2fHk=2×1153=76.67 kHzupper limit=2fLk−1=2×802=80 kHz\begin{aligned} k_{max} &= \left\lfloor\frac{115}{35}\right\rfloor = \lfloor 3.29 \rfloor = 3 \\ f_{s,min} &= \frac{2f_H}{k} = \frac{2 \times 115}{3} = 76.67\ \text{kHz} \\ \text{upper limit} &= \frac{2f_L}{k - 1} = \frac{2 \times 80}{2} = 80\ \text{kHz} \end{aligned}

So any fsf_s from 76.67 to 80 kHz works, far below the low-pass Nyquist rate 2fH=2302f_H = 230 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 ↗