---
title: Phase-locked loops
heading: Charge-pump PLLs, loop dynamics, and how noise passes through them
eyebrow: S2 · Lesson 45 · Phase-locked loops
xp: 50
---

::: hook
Every chip with a clock faster than its crystal has a phase-locked loop: a voltage-controlled oscillator running at N times a reference, held in step by comparing its divided-down phase with the reference's and nudging its control voltage. The same loop synthesizes radio channels, recovers clocks from data streams and generates the sampling clocks whose jitter lesson 40 worried about. A PLL is a feedback system with a twist: the VCO integrates frequency into phase, so the loop has an integrator built in, and with a charge pump it has two. The loop's natural frequency and damping decide how fast it locks, how much it overshoots, and which noise sources reach the output.
:::

::: play
- The closed-loop response of a charge-pump PLL with natural frequency 100 kHz, in dB against frequency. The solid curve is how reference phase noise reaches the output (a low-pass, times N); the dashed curve is how the VCO's own noise reaches it (a high-pass).
- Inside the loop bandwidth the output follows the reference; outside, it follows the free-running VCO. The crossover is where a designer balances the two noise sources.
- Lower the damping ζ: the low-pass response peaks above 0 dB near the natural frequency, amplifying reference noise there and ringing on frequency steps.
:::
:::

```sim plot
view: graph
x: f = 1000..10M Hz log
y: H = -60..10
slider: z = 0.3..2 = 0.707
plot: 10*log((1e10 + (2*z*1e5*f)^2)/((1e10 - f^2)^2 + (2*z*1e5*f)^2)) | samples: 600 | label: reference to output, dB (÷ N)
plot: 10*log(f^4/((1e10 - f^2)^2 + (2*z*1e5*f)^2)) | samples: 600 | dashed | color: ch2 | label: VCO noise to output, dB
marker: x = 100000 | label: natural frequency
```

::: predict
## A PLL multiplies a 10 MHz reference up to 2.4 GHz. Inside its loop bandwidth, how does the output's phase noise compare with the reference's?

- [ ] The same
- [ ] 24 dB worse
- [x] About 48 dB worse
- [ ] 240 dB worse

::: reveal
About 48 dB worse: inside the bandwidth the output phase tracks N times the reference phase, so phase noise power rises by $N^2$, or 20 log N = 20 log 240 = 47.6 dB. A frequency multiplied up carries its phase wobbles up too. That's why synthesizers need very clean references, and why designers choose the loop bandwidth to cross over where N × the reference's noise meets the VCO's.
:::
:::

::: nameit
## The blocks

- **Phase-frequency detector (PFD):** compares the reference with the divided VCO output, producing up and down pulses as wide as the phase difference.
- **Charge pump:** turns those pulses into current $\pm I_{cp}$: an average current $\frac{I_{cp}}{2\pi}\Delta\phi$.
- **Loop filter:** a capacitor C (an integrator) with a series resistor R for a stabilizing zero, plus a small ripple capacitor.
- **VCO:** frequency $\omega = \omega_0 + K_{VCO}v_c$; phase is frequency integrated.
- **Divider:** divides by N, so $f_\text{out} = Nf_\text{ref}$.

## Loop dynamics

The charge-pump PLL with a series-RC filter is a type-II, second-order loop with

$$\omega_n = \sqrt{\frac{I_{cp}K_{VCO}}{2\pi NC}}, \qquad \zeta = \frac{R}{2}\sqrt{\frac{I_{cp}K_{VCO}C}{2\pi N}}$$

($K_{VCO}$ in rad/s per volt). The closed loop from reference phase to output phase, divided by N, is

$$\frac{2\zeta\omega_ns + \omega_n^2}{s^2 + 2\zeta\omega_ns + \omega_n^2}$$

which peaks by about 2 dB at ζ = 0.707 (the zero adds the peak). Lock time to settle a frequency step is roughly $\frac{4}{\zeta\omega_n}$. The loop must stay well below the reference frequency (a common rule: $\omega_n$ under a tenth of $\omega_\text{ref}$), since the PFD is a sampled system.

## Noise

- Reference, PFD and charge-pump noise appear at the output low-pass filtered by the loop and multiplied by N (20 log N in dB).
- VCO noise appears high-pass filtered: the loop corrects slow VCO wander but not fast.
- Integrating the output phase noise over frequency gives the rms jitter, which in turn limits converter SNR (lesson 40) and radio performance.
:::

::: example
## A synthesizer has $f_\text{ref}$ = 10 MHz, N = 240, $I_{cp}$ = 100 µA, $K_{VCO}$ = 2π × 100 MHz/V and C = 100 pF. Find its output frequency, natural frequency, the R for ζ = 0.707, and its lock time.

::: solution
1. **Output frequency.**
   $$\begin{aligned} f_\text{out} &= 240 \times 10\ \text{MHz} \\ &= 2.4\ \text{GHz} \end{aligned}$$
2. **Natural frequency.**
   $$\begin{aligned} \omega_n &= \sqrt{\frac{10^{-4} \times 6.28 \times 10^8}{2\pi \times 240 \times 10^{-10}}} \\ &= 6.45 \times 10^5\ \text{rad/s} \end{aligned}$$
   or 103 kHz.
3. **Resistor for ζ = 0.707.**
   $$\begin{aligned} R &= \frac{2\zeta}{\sqrt{I_{cp}K_{VCO}C/2\pi N}} \\ &= 21.9\ \text{k}\Omega \end{aligned}$$
4. **Lock time.**
   $$\begin{aligned} t_\text{lock} &\approx \frac{4}{0.707 \times 6.45 \times 10^5}\ \text{s} \\ &= 8.8\ \text{µs} \end{aligned}$$
5. **Sampling.** The natural frequency is a hundredth of the reference, comfortably sampled.

**Answer:** the output is 2.4 GHz, $\omega_n$ = 6.45 × 10⁵ rad/s (103 kHz), R = 21.9 kΩ, and it locks in about 8.8 µs.
:::
:::

::: example
## The 10 MHz reference has a phase noise floor of −150 dBc/Hz. What does it become at 2.4 GHz inside the loop bandwidth, and how much does peaking at ζ = 0.5 add near the natural frequency?

::: solution
1. **Multiplied by N = 240.**
   $$\begin{aligned} L &= -150 + 20\log 240 \\ &= -150 + 47.6 \\ &= -102.4\ \text{dBc/Hz} \end{aligned}$$
2. **Peaking.** At ζ = 0.5 the closed-loop response peaks by 3.3 dB (against 2.1 dB at ζ = 0.707), so near 100 kHz offset the reference noise reaches about
   $$-102.4 + 3.3 \approx -99\ \text{dBc/Hz}$$
3. **Damping.** Heavier damping flattens the peak at the cost of a slower, wider transition.

**Answer:** −102.4 dBc/Hz inside the loop bandwidth, and peaking at ζ = 0.5 adds 3.3 dB, to about −99 dBc/Hz near the natural frequency.
:::
:::

::: example
## The synthesizer (10 MHz reference, N = 240) must step to the neighboring channel. What frequency step does one count of N give, and how does that set the loop bandwidth?

::: solution
1. **Step per count.** Each count of N moves the output by the reference frequency, 10 MHz.
2. **Closer channels.** Channels closer than that need a lower reference (and a narrower loop, below about a tenth of it).
3. **Fractional-N.** The other way is a fractional-N divider, which keeps a high reference and a wide loop while stepping in small fractions.

**Answer:** one count of N steps the output by 10 MHz; finer channels need a lower reference with a loop below about a tenth of it, or a fractional-N divider.
:::
:::

::: check
given: f = 10 | 25 | 100; N = 24 | 96 | 240
answer: f*N
unit: MHz
tolerance: 0.1%

## A PLL divides by N = {N} with a {f} MHz reference. What's its output frequency?

::: right
Right. $Nf_\text{ref}$ = {answer} MHz.
:::

::: misses
- [f/N] The divider is in the feedback path: the output runs N times faster.
- [any] Not yet. Locked means $f_\text{out}/N = f_\text{ref}$.
:::
:::

::: check
given: I = 50 | 200; K = 50 | 200; N = 50 | 400; C = 50 | 500
answer: sqrt(I*1e-6*2*pi*K*1e6/(2*pi*N*C*1e-12))/(2*pi)/1e3
unit: kHz
tolerance: 1%

## A charge-pump PLL has $I_{cp}$ = {I} µA, $K_{VCO}$ = 2π × {K} MHz/V, N = {N} and C = {C} pF. What's its natural frequency, in hertz?

::: right
Right. $\frac{1}{2\pi}\sqrt{\frac{I_{cp}K_{VCO}}{2\pi NC}}$ = {answer} kHz.
:::

::: misses
- [sqrt(I*1e-6*2*pi*K*1e6/(2*pi*N*C*1e-12))/1e3] That's in rad/s; divide by 2π for hertz.
- [any] Not yet. Use the natural-frequency formula with $K_{VCO}$ in rad/s/V.
:::
:::

::: check
given: R = 5 | 20 | 50; I = 50 | 200; K = 100 | 300; N = 100 | 300; C = 100 | 300
answer: R*1e3/2*sqrt(I*1e-6*2*pi*K*1e6*C*1e-12/(2*pi*N))
tolerance: 1%

## The same kind of PLL with R = {R} kΩ, $I_{cp}$ = {I} µA, $K_{VCO}$ = 2π × {K} MHz/V, N = {N}, C = {C} pF. What's its damping ratio?

::: right
Right. $\frac{R}{2}\sqrt{\frac{I_{cp}K_{VCO}C}{2\pi N}}$ = {answer}.
:::

::: misses
- [any] Not yet. The resistor's zero sets the damping.
:::
:::

::: check
given: N = 10 | 100 | 1000
answer: 20*log(N)
unit: dB
tolerance: 0.5%

## A PLL multiplies its reference by N = {N}. How much does in-band reference phase noise rise?

::: right
Right. 20 log N = {answer} dB.
:::

::: misses
- [10*log(N)] Phase scales by N, phase noise power by $N^2$: 20 log N.
- [any] Not yet. Output phase is N times the reference's.
:::
:::

::: check
given: z = 0.5 | 0.707 | 1; f = 10 | 100 | 500
answer: 4/(z*2*pi*f*1e3)*1e6
unit: µs
tolerance: 1%

## A PLL has ζ = {z} and a {f} kHz natural frequency. Roughly how long does it take to lock after a frequency step?

::: right
Right. $\frac{4}{\zeta\omega_n}$ = {answer} µs.
:::

::: misses
- [4/(z*f*1e3)*1e6] Use $\omega_n = 2\pi f_n$.
- [any] Not yet. The envelope decays as $e^{-\zeta\omega_nt}$.
:::
:::

::: check
given: z = 0.4 | 0.707; I = 100 | 200; K = 100 | 200; N = 100 | 200; C = 100 | 300
answer: 2*z/sqrt(I*1e-6*2*pi*K*1e6*C*1e-12/(2*pi*N))/1000
unit: kΩ
tolerance: 1%

## What loop-filter resistor gives ζ = {z} for $I_{cp}$ = {I} µA, $K_{VCO}$ = 2π × {K} MHz/V, N = {N}, C = {C} pF?

::: right
Right. $R = 2\zeta\Big/\sqrt{\frac{I_{cp}K_{VCO}C}{2\pi N}}$ = {answer} kΩ.
:::

::: misses
- [any] Not yet. Invert the damping formula.
:::
:::

::: check
kind: parts
given: f = 1 | 10 | 26; N = 100 | 240 | 925

## A synthesizer has a {f} MHz reference and divides by N = {N}.

::: part
answer: f*N
unit: MHz
tolerance: 0.5%

### What frequency does it make?

::: misses
- [any] $Nf_\text{ref}$.
:::
:::

::: part
answer: 20*log(N)
unit: dB
tolerance: 0.5%

### How much does reference phase noise rise inside the loop bandwidth?

::: misses
- [any] $20\log_{10}N$.
:::
:::
:::

::: check
kind: derivation
vars: I = 1e-6..1e-3, K = 1e7..1e10, N = 10..1000, C = 1e-12..1e-9

## A charge-pump PLL has pump current I, VCO gain K (rad/s/V), divider N and loop capacitor C.

::: step
answer: sqrt(I*K/(2*pi*N*C))

### What is its natural frequency (rad/s)?
:::

::: step
answer: sqrt(I*K/(2*pi*N*4*C))

### What if C is quadrupled?
:::

::: right
Right. The natural frequency scales as the square root of the loop's gain over its capacitance.
:::
:::

::: explain
## Why does a PLL pass reference noise at low offsets but VCO noise at high offsets?

::: model
At frequencies well inside the loop bandwidth, the loop has plenty of gain, so it forces the divided VCO phase to follow the reference phase closely: any slow wander in the VCO is detected and corrected, while any slow wander in the reference is faithfully copied, multiplied by N. At frequencies well above the loop bandwidth, the loop is too slow to respond. It can neither correct the VCO's fast fluctuations nor follow the reference's, so the output simply carries the VCO's own noise. The loop bandwidth is therefore a choice of which source to trust at each frequency, and it's set where N times the reference's noise crosses the VCO's.
:::
:::

::: practice

::: check
given: f = 19.2 | 40; N = 64 | 125
answer: f*N
unit: MHz
tolerance: 0.1%

## Output frequency: {f} MHz × N = {N}?

::: misses
- [any] $Nf_\text{ref}$.
:::
:::

::: check
given: N = 8 | 20 | 50 | 100 | 200 | 500 | 1000
answer: 20*log(N)
unit: dB
tolerance: 0.5%

## Reference noise rise for N = {N}?

::: misses
- [any] 20 log N.
:::
:::

::: check
given: z = 0.6 | 0.9; f = 50 | 300
answer: 4/(z*2*pi*f*1e3)*1e6
unit: µs
tolerance: 1%

## Lock time: ζ = {z}, $f_n$ = {f} kHz?

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