---
title: "Problem set 2: demodulation, noise, PCM and pulse shaping"
heading: "Problem set 2: phase-locked loops, analog noise performance, PCM and companding, line codes and raised-cosine pulses"
eyebrow: S8 · Problem set 2
type: problems
---

::: hook
These problems cover lessons 6 to 9: PLL phase error, noise bandwidth and settling, AM and FM output SNR, the FM threshold and pre-emphasis, PCM rates and bandwidth, uniform and μ-law quantization, delta modulation, line codes, the Nyquist criterion and raised-cosine bandwidth.
:::

::: pool
pick: 12

::: check
kind: parts
given: f = 30 | 150; K = 800 | 4000; z = 0.5 | 0.707; n = 60 | 400

## A first-order PLL with K = 2π × {K} rad/s; and a second-order loop with $\omega_n$ = 2π × {n} rad/s, ζ = {z}; a {f} Hz frequency step.

::: part
answer: f/K*360
unit: °
tolerance: 0.2

### First-order steady phase error?

::: misses
- [any] $360f/K$ degrees.
:::
:::

::: part
answer: f/n*exp(-z*acos(z)/sqrt(1 - z^2))*180/pi
unit: °
tolerance: 0.2

### Second-order peak phase error?

::: misses
- [any] $\frac{\Delta\omega}{\omega_n}e^{-\zeta\arccos\zeta/\sqrt{1 - \zeta^2}}$.
:::
:::

::: part
answer: 2*pi*n/2*(z + 1/(4*z))
unit: Hz
tolerance: 0.5%

### Second-order noise bandwidth?

::: misses
- [any] $\frac{\omega_n}{2}(\zeta + 1/4\zeta)$.
:::
:::
:::

::: check
kind: parts
given: K = 300 | 3000; n = 50 | 500; z = 0.6 | 0.9

## A first-order loop with K = 2π × {K} rad/s; a second-order loop with $\omega_n$ = 2π × {n}, ζ = {z}.

::: part
answer: K
unit: Hz
tolerance: 0.5%

### First-order hold-in range?

::: misses
- [any] Δf ≤ K/2π.
:::
:::

::: part
answer: 2*pi*K/4
unit: Hz
tolerance: 0.5%

### First-order noise bandwidth?

::: misses
- [any] K/4.
:::
:::

::: part
answer: 4/(z*2*pi*n)*1000
unit: ms
tolerance: 0.5%

### Second-order settling time?

::: misses
- [any] $4/(\zeta\omega_n)$.
:::
:::
:::

::: check
kind: parts
given: S = -90 | -70; N = -168 | -160; W = 4 | 15; m = 0.5 | 1; b = 3 | 6

## A receiver gets {S} dBm in noise of {N} dBm/Hz for a {W} kHz message.

::: part
answer: S - N - 10*log(W*1000)
unit: dB
tolerance: 0.05

### γ?

::: misses
- [any] $S_i/(N_0W)$.
:::
:::

::: part
answer: S - N - 10*log(W*1000) + 10*log(m^2/(2 + m^2))
unit: dB
tolerance: 0.05

### AM output SNR, μ = {m}?

::: misses
- [any] $\eta\gamma$.
:::
:::

::: part
answer: S - N - 10*log(W*1000) + 10*log(1.5*b^2)
unit: dB
tolerance: 0.05

### FM output SNR, β = {b} (above threshold)?

::: misses
- [any] $1.5\beta^2\gamma$.
:::
:::
:::

::: check
kind: parts
given: b = 2 | 5 | 9; t = 50 | 75; W = 10 | 15

## FM with β = {b}, a {W} kHz message and {t} µs pre-emphasis.

::: part
answer: 10*log(20*(b + 1))
unit: dB
tolerance: 0.05

### Threshold γ?

::: misses
- [any] $20(\beta + 1)$.
:::
:::

::: part
answer: 10*log((W*1000*2*pi*t*1e-6)^3/(3*(W*1000*2*pi*t*1e-6 - atan(W*1000*2*pi*t*1e-6))))
unit: dB
tolerance: 0.05

### Pre-emphasis improvement?

::: misses
- [any] $\frac{(W/f_1)^3}{3[W/f_1 - \arctan(W/f_1)]}$.
:::
:::
:::

::: check
kind: parts
given: n = 7 | 8 | 13; f = 8 | 16 | 32

## {n}-bit PCM at {f} kHz.

::: part
answer: n*f
unit: kb/s
tolerance: 0.5%

### Bit rate?

::: misses
- [any] $nf_s$.
:::
:::

::: part
answer: n*f/2
unit: kHz
tolerance: 0.5%

### Minimum binary bandwidth?

::: misses
- [any] $R_b/2$.
:::
:::

::: part
answer: 6.02*n + 1.76
unit: dB
tolerance: 0.05

### Full-scale sine SNR, uniform quantizer?

::: misses
- [any] 6.02n + 1.76.
:::
:::
:::

::: check
kind: parts
given: n = 8 | 12; u = 100 | 255; L = -10 | -30 | -50

## An n = {n}-bit quantizer, uniform or μ-law with μ = {u}; a sine at {L} dB re full scale.

::: part
answer: 6.02*n + 1.76 + L
unit: dB
tolerance: 0.05

### Uniform SNR?

::: misses
- [any] $6.02n + 1.76 + L$.
:::
:::

::: part
answer: 6.02*n + 4.77 - 20*log(ln(1 + u)) - 10*log(1 + (sqrt(2)*10^(-L/20)/u)^2 + sqrt(3)*sqrt(2)*10^(-L/20)/u)
unit: dB
tolerance: 0.05

### μ-law SNR?

::: misses
- [any] The companded SNR formula with $X_\text{max}/\sigma = \sqrt{2}\,10^{-L/20}$.
:::
:::
:::

::: check
kind: parts
given: S = 35 | 55 | 75; d = 0.03 | 0.15; s = 40 | 100; f = 0.8 | 3

## A uniform quantizer must reach {S} dB; separately, a delta modulator with step {d} V at {s} kHz.

::: part
answer: ceil((S - 1.76)/6.02 - 0.0001)
tolerance: 0

### Bits needed?

::: misses
- [any] Round up (SNR − 1.76)/6.02.
:::
:::

::: part
answer: d*s*1000/(2*pi*f*1000)
unit: V
tolerance: 0.5%

### Largest {f} kHz sine without slope overload?

::: misses
- [any] $\delta f_s/(2\pi f)$.
:::
:::
:::

::: check
kind: parts
given: R = 1.544 | 10 | 100

## A {R} Mb/s data stream.

::: part
answer: R
unit: MHz
tolerance: 0.5%

### First null as polar NRZ?

::: misses
- [any] $R_b$.
:::
:::

::: part
answer: 2*R
unit: MHz
tolerance: 0.5%

### First null as Manchester?

::: misses
- [any] $2R_b$.
:::
:::

::: part
answer: 0.4429*R
unit: MHz
tolerance: 0.5%

### Half-power bandwidth as NRZ?

::: misses
- [any] 0.443 $R_b$.
:::
:::
:::

::: check
kind: parts
given: R = 4 | 20 | 60; b = 0.15 | 0.35 | 0.6

## {R} Mbaud with raised-cosine pulses, rolloff {b}.

::: part
answer: (1 + b)*R/2
unit: MHz
tolerance: 0.5%

### Baseband bandwidth?

::: misses
- [any] $(1 + \beta)R_s/2$.
:::
:::

::: part
answer: (1 + b)*R
unit: MHz
tolerance: 0.5%

### Passband bandwidth?

::: misses
- [any] $(1 + \beta)R_s$.
:::
:::

::: part
answer: (1 - b)*R/2
unit: MHz
tolerance: 0.5%

### Where the flat part of the spectrum ends?

::: misses
- [any] $(1 - \beta)R_s/2$.
:::
:::
:::

::: check
kind: parts
given: B = 2 | 8 | 36; b = 0.2 | 0.5; a = 0.08 | 0.25

## A {B} MHz baseband channel with raised-cosine pulses (rolloff {b}); and a pulse whose neighboring samples are each {a}.

::: part
answer: 2*B/(1 + b)
unit: MHz
tolerance: 0.5%

### Highest symbol rate, Mbaud?

::: misses
- [any] $2B/(1 + \beta)$.
:::
:::

::: part
answer: 1 - 2*a
tolerance: 0.5%

### Worst-case eye opening?

::: misses
- [any] 1 − 2a.
:::
:::
:::

::: check
kind: parts
given: b = 0.25 | 0.4; f = 0.45 | 0.55 | 0.65

## A raised-cosine spectrum with rolloff {b}, 1 baud.

::: part
answer: 0.5*(1 + cos(pi/b*(f - (1 - b)/2)))
tolerance: 0.5%

### Relative level at {f} Hz?

::: misses
- [any] The half-cosine rolloff.
:::
:::

::: part
answer: 1/(1 + b)
tolerance: 0.5%

### Passband symbols per second per hertz?

::: misses
- [any] $1/(1 + \beta)$.
:::
:::
:::

::: check
kind: parts
given: b = 1 | 4 | 7; g = 20 | 40

## FM with β = {b} against AM at μ = 1, both above threshold, γ = {g} dB.

::: part
answer: g + 10*log(1.5*b^2)
unit: dB
tolerance: 0.05

### FM output SNR?

::: misses
- [any] $\gamma + 10\log(1.5\beta^2)$.
:::
:::

::: part
answer: 10*log(4.5*b^2)
unit: dB
tolerance: 0.05

### FM's advantage over AM?

::: misses
- [any] $4.5\beta^2$.
:::
:::
:::

::: check
kind: parts
given: P = -90 | -85 | -80; N = -174 | -170; d = 75 | 5; W = 15 | 3

## An FM receiver gets {P} dBm in noise of {N} dBm/Hz, for {d} kHz deviation and a {W} kHz message.

::: part
answer: 2*(d + W)
unit: kHz
tolerance: 0.5%

### What is the Carson bandwidth?

::: misses
- [any] $2(\Delta f + W)$.
:::
:::

::: part
answer: P - N - 10*log(2*(d + W)*1e3) - 10
unit: dB
tolerance: 1%

### How far above the 10 dB FM threshold is the carrier-to-noise ratio in that bandwidth (negative if below)?

::: misses
- [P - N - 10*log(2*(d + W)*1e3)] That's the carrier-to-noise ratio itself; subtract the 10 dB threshold.
- [any] CNR = P − N₀ − 10 log B_T, then subtract 10 dB.
:::
:::
:::

::: check
kind: parts
given: N = 24 | 30 | 32; n = 7 | 8; f = 4 | 8 | 16; b = 0 | 0.5 | 1

## A TDM system multiplexes {N} voice channels sampled at 8 kHz with {n}-bit PCM, adding {f} framing bit(s) per frame, and sends the stream as binary raised-cosine pulses with rolloff {b}.

::: part
answer: (N*n + f)*8
unit: kb/s
tolerance: 0.5%

### What is the line rate?

::: misses
- [N*n*8] Count the framing bits too.
- [any] (channels × bits + framing) × 8 kHz.
:::
:::

::: part
answer: (N*n + f)*8*(1 + b)/2
unit: kHz
tolerance: 0.5%

### What baseband bandwidth do the pulses need?

::: misses
- [any] $R(1 + \beta)/2$.
:::
:::
:::

::: check
kind: parts
given: n = 6 | 8 | 12; k = 3 | 4 | 5

## A uniform n = {n}-bit quantizer digitizes a Gaussian signal, with full scale set at {k} standard deviations.

::: part
answer: 6.02*n + 4.77 - 20*log(k)
unit: dB
tolerance: 0.5%

### What signal-to-quantization-noise ratio does it reach, ignoring clipping?

::: misses
- [6.02*n + 1.76] That's for a full-scale sine.
- [any] $6.02n + 4.77 - 20\log_{10}k$.
:::
:::

::: part
answer: 2*Q(k)
tolerance: 1%

### What fraction of samples clip?

::: misses
- [Q(k)] Both tails clip.
- [any] $2Q(k)$.
:::
:::
:::
:::
