---
title: Varactor, PIN and step-recovery diodes
heading: Diodes designed to be capacitors, resistors and pulse generators at radio frequencies
eyebrow: S1 · Lesson 15 · Varactor, PIN and step-recovery diodes
xp: 50
---

::: hook
Lesson 8 treated a junction's capacitance as a parasite and lesson 14 treated its stored charge as a nuisance that slows switching. RF engineers turn both into tools. A **varactor** is a junction designed so its depletion capacitance changes strongly with reverse bias: every voltage-controlled oscillator in a phone tunes with one. A **PIN diode** puts a thick intrinsic layer between p and n so that, at high frequency, its stored charge makes it a resistor controlled by DC current, the basis of RF switches and attenuators. And a **step-recovery diode** stores charge and then stops conducting in picoseconds, turning a sine into a comb of harmonics.
:::

::: play
- The capacitance of a varactor against reverse bias, $C = C_0/(1 + V_R/\phi)^m$, with $C_0$ = 10 pF and $\phi$ = 0.7 V. The grading exponent $m$ is ½ for an abrupt junction, ⅓ for a linearly graded one, and larger for a "hyperabrupt" profile.
- The readout is the resulting frequency tuning ratio of an LC oscillator, $\sqrt{C_{max}/C_{min}}$, between 0 and 10 V of reverse bias.
:::

```sim plot
view: graph
x: V = 0..10
y: C = 0..10
slider: m = 0.33..2 step 0.01 = 0.5
plot: 10/(1 + V/0.7)^m | label: C in pF
readout: tuning ratio from 0 to 10 V = sqrt((1 + 10/0.7)^m)
readout: capacitance at 10 V, pF = 10/(1 + 10/0.7)^m
```

::: predict
## An abrupt-junction varactor ($m$ = ½) tunes an LC oscillator between 0 V and 8 V of reverse bias, with $\phi$ = 0.7 V. By about what factor does the oscillator's frequency change?

- [ ] 3.5
- [x] 1.9
- [ ] 12
- [ ] 1.2

::: reveal
The capacitance falls by $\sqrt{1 + 8/0.7}$ = 3.53, and an LC frequency goes as $1/\sqrt C$, so the frequency rises by $\sqrt{3.53}$ = 1.88. A hyperabrupt varactor with $m$ near 1.5 would give a much wider range from the same voltage, which is why VCOs use them.
:::
:::

::: nameit
## Varactors

The depletion capacitance of a junction under reverse bias $V_R$ is

$$C(V_R) = \frac{C_0}{(1 + V_R/\phi)^m}$$

with $m$ = ½ for a step junction, ⅓ for a linearly graded one, and $m > 1$ for a **hyperabrupt** profile, whose doping falls away from the junction so that the depletion edge moves fast with voltage. A hyperabrupt diode with $m$ = 2 gives $f \propto 1/\sqrt C \propto (1 + V_R/\phi)$, a nearly linear tuning curve. The varactor's quality factor is limited by its series resistance $R_s$: $Q = 1/(\omega R_sC)$.

## PIN diodes

A PIN diode has a lightly doped intrinsic region of width $W$ between its p and n sides. Under forward bias, the intrinsic region floods with stored charge $Q = I\tau$, where τ is the carrier lifetime. At frequencies well above $1/(2\pi\tau)$, the carriers can't follow the RF swing, so the diode doesn't rectify; it behaves as a resistor set by the stored charge:

$$R_{RF} \approx \frac{W^2}{(\mu_n + \mu_p)I\tau}$$

Ohms at tens of milliamps of bias, kilohms at microamps. Under reverse bias the intrinsic region is depleted and the diode is a small, nearly constant capacitance. PIN diodes therefore make RF switches, attenuators and limiters, controlled by DC current, handling far more power than their size suggests because the RF voltage can't reach the junction in a single cycle.

## Step-recovery diodes

A step-recovery diode is built so its stored charge sits close to the junction. When the bias reverses, it conducts in reverse until that charge is gone, then stops abruptly, in tens of picoseconds. The sudden current step, driven from an inductor, produces a sharp voltage pulse rich in harmonics: a comb generator, used as a frequency multiplier and in sampling oscilloscopes.
:::

::: example
## An abrupt varactor has $C_0$ = 10 pF and $\phi$ = 0.7 V. Find its capacitance at 8 V of reverse bias, and the resulting frequency range of an oscillator with a 100 nH inductor tuned between 0 and 8 V.

::: solution
1. **Capacitance at 8 V.**
   $$\begin{aligned} C(8) &= \frac{10}{\sqrt{1 + 8/0.7}} \\ &= \frac{10}{3.53} \\ &= 2.84\ \text{pF} \end{aligned}$$
2. **Frequency range.** The oscillator runs at $1/(2\pi\sqrt{LC})$:
   $$\begin{aligned} f(10\ \text{pF}) &= 159\ \text{MHz} \\ f(2.84\ \text{pF}) &= 299\ \text{MHz} \end{aligned}$$
   a ratio of 1.88.
3. **Stray capacitance.** In a real VCO, fixed stray capacitance in parallel reduces the range, so designers keep strays small and choose varactors with a large capacitance ratio.

**Answer:** 2.84 pF at 8 V, so the oscillator tunes from 159 MHz to 299 MHz, a ratio of 1.88.
:::
:::

::: example
## A silicon PIN diode has a 100 µm intrinsic region, $\mu_n + \mu_p$ = 1830 cm²/(V·s) and a 2 µs lifetime. What RF resistance does it present at 10 mA of bias, and above what frequency does that model hold?

::: solution
1. **RF resistance.**
   $$\begin{aligned} R_{RF} &= \frac{(0.01)^2}{1830 \times 0.01 \times 2 \times 10^{-6}}\ \Omega \\ &= 2.7\ \Omega \end{aligned}$$
2. **Where the model holds.** The model needs the RF period to be much shorter than the lifetime:
   $$\begin{aligned} f &\gg \frac{1}{2\pi\tau} \\ &= 80\ \text{kHz} \end{aligned}$$
3. **In practice.** Above a few megahertz it's an excellent current-controlled resistor; at audio frequencies the same diode would simply rectify.

**Answer:** about 2.7 Ω, at frequencies well above 80 kHz.
:::
:::

::: example
## A varactor has $C$ = 2 pF and $R_s$ = 0.5 Ω. What is its Q at 1 GHz and at 5 GHz?

::: solution
1. **Q at 1 GHz.**
   $$\begin{aligned} Q &= \frac{1}{\omega R_sC} \\ &= \frac{1}{2\pi \times 10^9 \times 0.5 \times 2 \times 10^{-12}} \\ &= 159 \end{aligned}$$
2. **Q at 5 GHz.** Q falls as $1/\omega$, so at 5 GHz it's 32.
3. **What limits the oscillator.** A tuned circuit can't have a higher Q than its varactor, so at microwave frequencies the varactor's series resistance limits the oscillator's phase noise.

**Answer:** Q is 159 at 1 GHz and 32 at 5 GHz.
:::
:::

::: check
given: C0 = 5 | 10 | 33; V = 2 | 5 | 10; m = 0.33 | 0.5 | 1.5
answer: C0/(1 + V/0.7)^m
unit: pF
tolerance: 0.5%

## A varactor has $C_0$ = {C0} pF, $\phi$ = 0.7 V and grading exponent {m}. What is its capacitance at {V} V of reverse bias?

::: right
Right. $C_0/(1 + V_R/\phi)^m$ = {answer}.
:::

::: misses
- [C0/(1 + V/0.7)] Raise the factor to the power {m}.
- [C0/(V/0.7)^m] It's $1 + V_R/\phi$: at zero bias the capacitance is $C_0$.
- [any] Not yet. $C = C_0/(1 + V_R/\phi)^m$.
:::
:::

::: check
given: r = 2 | 4 | 9 | 16
answer: sqrt(r)
tolerance: 0.5%

## A varactor's capacitance changes by a factor of {r} across its bias range. If it alone tunes an LC oscillator, by what factor does the frequency change?

::: right
Right. $f \propto 1/\sqrt C$, so the ratio is $\sqrt{\given{r}}$ = {answer}.
:::

::: misses
- [r] Frequency goes as the inverse square root of capacitance.
- [any] Not yet. $\sqrt{C_{max}/C_{min}}$.
:::
:::

::: check
kind: parts
given: W = 50 | 100 | 200; t = 0.5 | 2 | 5; I = 1 | 10 | 50

## A silicon PIN diode ($\mu_n + \mu_p$ = 1830 cm²/(V·s)) has a {W} µm intrinsic region and a {t} µs lifetime, biased at {I} mA.

::: part
answer: (W*1e-4)^2/(1830*I*1e-3*t*1e-6)
unit: Ω
tolerance: 0.5%

### What RF resistance does it present?

::: misses
- [(W*1e-4)/(1830*I*1e-3*t*1e-6)] The width enters squared.
- [any] Not yet. $R = W^2/((\mu_n + \mu_p)I\tau)$, in cm units.
:::
:::

::: part
answer: 1/(2*pi*t*1e-6)/1e3
unit: kHz
tolerance: 0.5%

### Well above what frequency does that model hold?

::: misses
- [1/(t*1e-6)/1e3] Divide by $2\pi$.
- [any] Not yet. $1/(2\pi\tau)$.
:::
:::

::: right
Right. Long lifetimes make good RF resistors but slow switches: PIN designs balance the two.
:::
:::

::: check
given: C = 0.5 | 2 | 10; R = 0.2 | 0.5 | 2; f = 0.5 | 2 | 10
answer: 1/(2*pi*f*1e9*R*C*1e-12)
tolerance: 0.5%

## A varactor of {C} pF has {R} Ω of series resistance. What is its Q at {f} GHz?

::: right
Right. $1/(\omega R_sC)$ = {answer}.
:::

::: misses
- [2*pi*f*1e9*R*C*1e-12] Q is the inverse.
- [1/(f*1e9*R*C*1e-12)] Use $\omega = 2\pi f$.
- [any] Not yet. $Q = 1/(\omega R_sC)$.
:::
:::

::: check
kind: parts
given: L = 50 | 100 | 200; C1 = 5 | 10; C2 = 1.5 | 2.5

## A VCO uses a {L} nH inductor with a varactor that tunes from {C1} pF down to {C2} pF.

::: part
answer: 1/(2*pi*sqrt(L*1e-9*C1*1e-12))/1e6
unit: MHz
tolerance: 0.5%

### What is its lowest frequency?

::: misses
- [1/(2*pi*sqrt(L*1e-9*C2*1e-12))/1e6] The largest capacitance gives the lowest frequency.
- [any] Not yet. $1/(2\pi\sqrt{LC_{max}})$.
:::
:::

::: part
answer: 1/(2*pi*sqrt(L*1e-9*C2*1e-12))/1e6
unit: MHz
tolerance: 0.5%

### And its highest?

::: misses
- [1/(2*pi*sqrt(L*1e-9*C1*1e-12))/1e6] The smallest capacitance gives the highest frequency.
- [any] Not yet. $1/(2\pi\sqrt{LC_{min}})$.
:::
:::

::: right
Right. The tuning range depends only on the capacitance ratio, not on the inductor.
:::
:::

::: check
kind: choice

## Why can a PIN diode switch tens of watts of RF without rectifying it, even though it's a diode?

- [x] Above about $1/(2\pi\tau)$, the stored charge can't change within an RF cycle, so the diode acts as a fixed resistance set by its DC bias
- [ ] Its intrinsic layer has no junction
- [ ] It's always reverse-biased in operation
- [ ] Its forward voltage is zero

::: right
Right. The RF swing is too fast to sweep the stored charge out, so the diode's conductance is set by the DC bias current, not the instantaneous RF voltage.
:::

::: misses
- [2] It has junctions at both ends of the intrinsic layer.
- [3] It's forward-biased in its "on" state, which is when it carries the RF.
- [4] Its forward voltage is like any silicon diode's; the point is that the RF is too fast to modulate it.
:::
:::

::: check
kind: derivation
vars: C0 = 1..50, phi = 0.5..1, V = 0..20

## For a hyperabrupt varactor with $m$ = 2, find how an LC oscillator's frequency depends on bias.

::: step
answer: C0/(1 + V/phi)^2

### What is the capacitance at reverse bias $V$?
:::

::: step
answer: (1 + V/phi)/sqrt(C0)

### Up to the constant $1/(2\pi\sqrt L)$, what is $1/\sqrt C$?
:::

::: right
Right. With $m$ = 2, $f \propto 1 + V_R/\phi$: linear tuning, which is why hyperabrupt varactors are prized for VCOs.
:::
:::

::: check
kind: python
given: m = 0.5 | 1 | 2; Cs = 0 | 1 | 3

## Model a VCO tuning curve. A varactor ($C_0$ = 10 pF, φ = 0.7 V, exponent `m` = {m}) is in parallel with `Cs` = {Cs} pF of fixed stray capacitance and a 100 nH inductor. Write `f_osc(V)` in MHz. Set `ratio`, the frequency at 10 V divided by that at 0 V, and `linearity`, the largest deviation of `f_osc` from the straight line through its endpoints over 101 evenly spaced voltages from 0 to 10 V, as a fraction of the frequency span.

```python starter
import math
def f_osc(V):
    return 1 / (2 * math.pi * math.sqrt(100e-9 * 10e-12)) / 1e6
ratio = 1.0
linearity = 0.0
```

```python solution
import math
def f_osc(V):
    C = (10 / (1 + V / 0.7) ** m + Cs) * 1e-12
    return 1 / (2 * math.pi * math.sqrt(100e-9 * C)) / 1e6
ratio = f_osc(10) / f_osc(0)
f0, f1 = f_osc(0), f_osc(10)
vs = [10 * i / 100 for i in range(101)]
linearity = max(abs(f_osc(v) - (f0 + (f1 - f0) * v / 10)) for v in vs) / (f1 - f0)
```

```python tests
import math
f = lambda V: 1 / (2 * math.pi * math.sqrt(100e-9 * (10 / (1 + V / 0.7) ** m + Cs) * 1e-12)) / 1e6
assert abs(f_osc(3) - f(3)) < 1e-9, "f_osc must include the stray capacitance in parallel."
assert abs(ratio - f(10) / f(0)) < 1e-12, "ratio is f(10 V)/f(0 V)."
vs = [10 * i / 100 for i in range(101)]
lin = max(abs(f(v) - (f(0) + (f(10) - f(0)) * v / 10)) for v in vs) / (f(10) - f(0))
assert abs(linearity - lin) < 1e-12, f"linearity should be {lin:.5f}."
```

::: right
Right. Stray capacitance compresses the tuning range, and only $m$ near 2 gives a straight tuning line, which simplifies the PLL that controls the VCO.
:::
:::

::: explain
## A PIN diode and a regular PN signal diode of the same area are both used to switch a 1 GHz signal. Explain why the PIN diode passes the signal with low distortion while the PN diode would distort it badly.

::: model
A PN signal diode has a thin junction and a short lifetime, so its charge, and with it its conductance, follows the instantaneous voltage even at 1 GHz: it conducts on one half of the RF cycle and blocks on the other, rectifying and distorting the signal. A PIN diode stores a large charge, the bias current times a lifetime of microseconds, spread through a wide intrinsic region. A 1 GHz cycle lasts a nanosecond, far too short for the RF current to add or remove a meaningful fraction of that charge, so the diode's resistance stays fixed at the value the DC bias sets, about $W^2/((\mu_n + \mu_p)I\tau)$. To the RF it's a linear resistor, which is what a switch or attenuator needs.
:::
:::

::: practice

::: check
given: C0 = 8 | 20; V = 1 | 4; m = 0.5 | 0.33
answer: C0/(1 + V/0.7)^m
unit: pF
tolerance: 0.5%

## What is a varactor's capacitance with $C_0$ = {C0} pF, $m$ = {m}, φ = 0.7 V at {V} V reverse bias?

::: misses
- [C0/(1 + V/0.7)] Include the exponent.
- [any] $C_0/(1 + V_R/\phi)^m$.
:::
:::

::: check
given: W = 30 | 150; t = 1 | 3; I = 5 | 20
answer: (W*1e-4)^2/(1830*I*1e-3*t*1e-6)
unit: Ω
tolerance: 0.5%

## What RF resistance does a PIN diode with a {W} µm I-region and {t} µs lifetime show at {I} mA ($\mu_n + \mu_p$ = 1830 cm²/(V·s))?

::: misses
- [(W*1e-4)/(1830*I*1e-3*t*1e-6)] Square the width.
- [any] $W^2/((\mu_n + \mu_p)I\tau)$.
:::
:::
:::
