S8 · Lesson 6 · FM demodulation and the phase-locked loop
Discriminators and quadrature detectors, the phase-locked loop as a demodulator and tracking filter, first- and second-order loops, phase error, settling and noise bandwidth
Recovering an FM message means measuring how fast a carrier's phase is turning. A discriminator does it by converting frequency to amplitude; a phase-locked loop does it by building a local oscillator that chases the incoming carrier and reporting how hard it had to push. The PLL turned out to be far more than an FM detector: the same loop recovers carriers for coherent demodulation, extracts symbol timing, synthesizes frequencies and cleans up jittery clocks. This lesson analyzes it as a control system, which is what it is, and finds how fast it locks, how far it lags, and how much noise it lets through.
- The phase error of a PLL after a sudden step Δf in the input frequency, in units of : a second-order loop (solid) with natural frequency and damping ζ, and a first-order loop with gain (dashed).
- The first-order loop settles to a permanent phase error, . The second-order loop with an integrator drives the error back to zero after a transient.
- Lower damping gives a faster but ringing response; ζ ≈ 0.7 is the usual compromise. The peak error is .
Predict
A first-order PLL with loop gain 2π × 1000 rad/s locks to a carrier that then jumps 100 Hz. What happens to its phase error?
A first-order loop has no integrator, so to hold the VCO 100 Hz away from its rest frequency it needs a steady control voltage, which only a steady phase error provides: = 0.1 rad. A second-order loop with an integrating filter tracks frequency steps with zero steady error, which is why practical loops are second order.
Name it
Discriminators
Differentiating an FM signal gives , an AM signal whose envelope is proportional to the instantaneous frequency; an envelope detector then recovers m(t). The quadrature detector and the zero-crossing counter do the same job with simpler hardware. All of them respond to amplitude noise too, so they follow a limiter.
The phase-locked loop
A phase detector compares the input with a VCO, a loop filter F(s) smooths the result, and the filter's output steers the VCO. Linearized, with phase-detector gain and VCO gain (rad/s per volt), the closed loop is
and the VCO control voltage is proportional to the input's frequency deviation: in lock, it is the FM demodulator's output.
- First order (F = 1): , a frequency step Δω leaves a steady phase error Δω/K; noise bandwidth Hz.
- Second order, type 2 (proportional-plus-integral filter): . A frequency step leaves zero steady error, with transient , settling in about . Noise bandwidth:
A narrow loop rejects noise but tracks slowly and has a small pull-in range; a wide loop does the opposite.
Worked example
A second-order PLL has = 2π × 100 rad/s and ζ = 0.707. Find its noise bandwidth and its peak phase error for a 50 Hz frequency step.
Show the solution
- Noise bandwidth.
- Peak phase error.
- Settling. After the peak the error decays to zero within about
Answer the noise bandwidth is 333 Hz, and the peak phase error is 0.228 rad (13.1°), gone within about 9 ms.
Worked example
The first-order loop with K = 2π × 1000 rad/s: what's its noise bandwidth, and what frequency step makes it lose lock?
Show the solution
- Noise bandwidth.
- Hold-in range. With a sinusoidal phase detector, the steady error can't exceed 90° (sin θ = 1), so the largest step it can hold is
- Beyond that. The loop slips cycles and loses lock.
Answer the noise bandwidth is 1571 Hz, and a frequency step of more than 1000 Hz makes the loop lose lock.
Worked example
A second-order PLL has = 2π × 100 rad/s. Compare its noise bandwidth at ζ = 0.5, 0.707 and 1.
Show the solution
- The formula. With :
- ζ = 0.5.
- ζ = 0.707.
- ζ = 1.
- The usual choice. The noise bandwidth is smallest at ζ = 0.5, but ζ = 0.707 is the usual choice: only 0.26 dB more noise for a far better-damped response to frequency steps.
Answer 314 Hz at ζ = 0.5, 333 Hz at 0.707 and 393 Hz at 1.
Check
A first-order PLL with gain K = 2π × 500 rad/s sees a 100 Hz frequency step. What's its steady phase error?
Check
What's the noise bandwidth of a first-order PLL with K = 2π × 2000 rad/s?
Write units the way you normally would: 1.5 Hz, 1500 mHz and 0.0015 kHz are the same answer.
Check
A second-order PLL has = 2π × 100 rad/s and ζ = 0.5. What's its noise bandwidth?
Write units the way you normally would: 1.5 Hz, 1500 mHz and 0.0015 kHz are the same answer.
Check
A second-order PLL ( = 2π × 50 rad/s, ζ = 0.707) sees a 50 Hz frequency step. What's its peak phase error?
Check
About how long does that second-order loop ( = 2π × 100 rad/s, ζ = 0.5) take to settle?
Write units the way you normally would: 1.5 ms, 1500 µs and 0.0015 s are the same answer.
Check
A first-order PLL with a sinusoidal phase detector and K = 2π × 2000 rad/s: how far can the input frequency move before it loses lock?
Write units the way you normally would: 1.5 Hz, 1500 mHz and 0.0015 kHz are the same answer.
Check
A PLL FM demodulator has a VCO gain of 50 kHz per volt and a first-order loop gain K = 2π × 10 kHz; the input deviates by 5 kHz.
(a)
What peak control voltage does the VCO need?
Write units the way you normally would: 1.5 V, 1500 mV and 0.0015 kV are the same answer.
(b)
What peak phase error does the first-order loop show?
Check
A second-order PLL has natural frequency w (rad/s) and damping z; a first-order PLL has gain K.
Step 1
What is the second-order loop's noise bandwidth in hertz?
Type it the way you would write it, like 3sin(2πft) or 3*sin(2*pi*f*t). Angles can be in radians or carry a degree sign, like 45°.
Step 2
What is the first-order loop's?
Step 3
What is the smallest the second-order bandwidth can be (at z = 0.5)?
Explain why
Why does a PLL's control voltage reproduce an FM signal's message?
When a phase-locked loop is locked, its VCO runs at exactly the same frequency as the incoming signal, apart from a small, bounded phase error: if the VCO fell behind or ran ahead, the phase error would grow and the loop would push it back. A VCO's frequency is set by its control voltage, so to follow an input whose frequency is , the control voltage must vary in proportion to . The loop thus produces, at the VCO's input, exactly the voltage needed to imitate the incoming frequency, which is the message itself, scaled by the VCO's gain. The loop filter's bandwidth must be wide enough to pass the message and narrow enough to reject noise.
Practice
Keep practicing
10 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.