---
title: Diode switching and small-signal behavior
heading: Stored charge, diffusion capacitance and reverse recovery
eyebrow: S1 · Lesson 14 · Diode switching and small-signal behavior
xp: 50
---

::: hook
A forward-biased diode holds a cloud of injected minority carriers. That stored charge makes the diode behave like a large capacitor to small signals, and it makes the diode keep conducting backwards for a while after you try to switch it off, because the charge has to come out before the junction can block. In a switching power supply, that reverse current flows through the transistor every cycle and can dominate the losses. Fast-recovery and Schottky diodes exist to shrink the stored charge, and this lesson shows how to estimate it.
:::

::: play
- A diode carrying $I_F$ is switched at t = 0 to a circuit that pulls a reverse current $I_R$. Time is in units of the minority-carrier lifetime τ. The solid curve is the current (÷ $I_F$); the dashed one, the stored charge (÷ $I_F\tau$), by charge control.
- The reverse current holds at $-I_R$ for the storage time while the charge drains, partly by the reverse current and partly by recombination. Then the junction recovers and the current tails off.
- Pull harder (larger $I_R/I_F$): the charge comes out faster and the storage time shrinks, at the cost of a bigger reverse current spike.
:::
:::

```sim plot
view: graph
x: t = -0.5..3
y: i = -3..1.6
slider: r = 0.2..5 = 1 log
slider: a = 0.02..0.5 = 0.1 log
plot: (1 - step(t)) - r*step(t)*(1 - step(t - ln(1 + 1/r))) - r*exp(-(t - ln(1 + 1/r))/a)*step(t - ln(1 + 1/r)) | samples: 1200 | label: diode current ÷ I_F (t in units of τ)
plot: (1 - step(t)) + step(t)*step(ln(1 + 1/r) - t)*((1 + r)*exp(-t) - r) | samples: 1200 | dashed | color: ch2 | label: stored charge ÷ I_Fτ
readout: storage time (charge control), in τ = ln(1 + 1/r)
readout: reverse current ÷ forward = r
```

::: predict
## A diode carrying 10 mA forward, with a minority-carrier lifetime of 1 µs, is suddenly switched to a circuit that pulls 10 mA in reverse. For how long does the diode conduct in reverse before it starts to block?

- [ ] Not at all: it blocks at once
- [ ] About 10 ns
- [x] A few tenths of a microsecond
- [ ] About 10 µs

::: reveal
Between 0.23 and 0.69 µs. The stored charge is $I_F\tau$ = 10 nC, and the reverse current plus recombination have to remove enough of it to bring the minority density at the junction edge down to zero. Charge control, which tracks only the total, gives $\tau\ln(1 + I_F/I_R)$ = 0.69 µs. The exact solution of the diffusion equation for a long diode gives 0.23 µs, because the edge empties before the deep charge does. Either way it's a fraction of τ, which is why rectifiers for 100 kHz converters need lifetimes far below a microsecond.
:::
:::

::: nameit
## Charge control

A diode's excess minority charge Q obeys a simple balance: current in, minus recombination,

$$\frac{dQ}{dt} = i - \frac{Q}{\tau_T}$$

In steady state $Q = I\tau_T$, where the **transit time** $\tau_T$ is the lifetime $\tau_p$ for a long diode and the diffusion time $\frac{W^2}{2D_p}$ for a short one. SPICE calls it TT.

## Small-signal model

Around a bias current I, the diode is a conductance in parallel with two capacitances:

$$g_d = \frac{I}{nV_T}, \qquad C_d = \tau_Tg_d, \qquad C_j = \frac{C_{j0}}{(1 - V/V_{bi})^M}$$

The **diffusion capacitance** $C_d$ is the stored charge's response to voltage, and it dominates in forward bias: at 1 mA with τ = 1 µs it's 39 nF, against picofarads of junction capacitance. Its corner frequency $\frac{g_d}{2\pi C_d} = \frac{1}{2\pi\tau_T}$ doesn't depend on the current. (Solving the diffusion equation at small signal for a long diode gives half the charge-control $C_d$ at low frequencies, because charge far from the junction lags; charge control is the standard estimate.)

## Turning off: reverse recovery

Switched from $I_F$ to a reverse current $I_R$, the diode first stays forward biased while the stored charge drains, carrying the full $I_R$ (the **storage phase**); when the minority density at the junction edge reaches zero, the junction starts to block and the current decays as the depletion capacitance charges (the **recovery phase**).

- Charge control: Q reaches zero at $t_s = \tau\ln\left(1 + \frac{I_F}{I_R}\right)$, an upper estimate.
- Exact, long diode: $\text{erf}\sqrt{t_s/\tau_p} = \frac{I_F}{I_F + I_R}$, so for $I_R = I_F$, $t_s = 0.23\tau_p$.

The charge pulled out in reverse, $Q_{rr}$, is what datasheets specify, along with the recovery time $t_{rr}$.

## Making diodes fast

- Kill the lifetime: gold or platinum doping, or electron irradiation, in "fast recovery" rectifiers (at some cost in leakage).
- Make the stored region short: a short diode's $\tau_T = W^2/2D$ can be nanoseconds.
- Store no minority charge at all: Schottky diodes (lesson 21).
- **Soft recovery**: a gentle current tail after the storage phase, which avoids the voltage spikes a snappy recovery causes in circuit inductance.
:::

::: example
## A long-base diode with τ = 1 µs carries 1 mA. Find its small-signal resistance, diffusion capacitance and corner frequency.

::: solution
1. **Small-signal resistance.**
   $$\begin{aligned} r_d &= \frac{V_T}{I} \\ &= 25.9\ \Omega \end{aligned}$$
2. **Diffusion capacitance.** By charge control,
   $$\begin{aligned} C_d &= \frac{\tau}{r_d} \\ &= \frac{10^{-6}}{25.85}\ \text{F} \\ &= 39\ \text{nF} \end{aligned}$$
3. **Corner frequency.**
   $$\begin{aligned} f_c &= \frac{1}{2\pi r_dC_d} \\ &= \frac{1}{2\pi\tau} \\ &= 159\ \text{kHz} \end{aligned}$$
   the same at any current. Above it, the forward-biased diode looks like a capacitor.
4. **A narrow-base diode.** With W = 2 µm and $D_p$ = 11.3 cm²/s,
   $$\begin{aligned} \tau_T &= \frac{W^2}{2D_p} \\ &= 1.8\ \text{ns} \end{aligned}$$
   instead, and the corner is near 90 MHz.

**Answer:** $r_d$ = 25.9 Ω and $C_d$ = 39 nF, and the corner frequency is 159 kHz.
:::
:::

::: example
## The same diode, carrying 10 mA, is switched to pull 5 mA in reverse. Estimate the storage time both ways and the stored charge.

::: solution
1. **Stored charge.**
   $$\begin{aligned} Q &= I_F\tau \\ &= 10\ \text{nC} \end{aligned}$$
2. **Charge-control estimate.**
   $$\begin{aligned} t_s &= \tau\ln(1 + 10/5) \\ &= 1.10\ \mu\text{s} \end{aligned}$$
3. **Exact long-diode result.** It needs
   $$\text{erf}\sqrt{t_s/\tau} = \frac{10}{15}$$
   so $\sqrt{t_s/\tau}$ = 0.684 and $t_s$ = 0.47 µs.
4. **Why they differ.** The difference is the charge still stored deep in the n region when the edge empties: it comes out during the recovery tail.

**Answer:** the stored charge is 10 nC; charge control gives a storage time of 1.10 µs, and the exact long-diode result is 0.47 µs.
:::
:::

::: example
## The diode carrying 10 mA with τ = 1 µs is replaced by a Schottky diode. How much stored charge must each one remove at turn-off?

::: solution
1. **The pn diode.** It stores minority carriers:
   $$\begin{aligned} Q &= I_F\tau \\ &= 10\ \text{mA} \times 1\ \mu\text{s} \\ &= 10\ \text{nC} \end{aligned}$$
2. **The Schottky diode.** It's a majority-carrier device and stores essentially none.
3. **What sets the Schottky's speed.** It switches in the time its junction capacitance takes to charge, which is why it dominates fast rectifiers.

**Answer:** the pn diode must remove 10 nC of minority carriers, and the Schottky diode essentially none.
:::
:::

::: check
given: I = 0.1 | 1 | 10; n = 1.3 | 1.8
answer: n*0.02585/(I*1e-3)
unit: Ω
tolerance: 1%

## A diode with ideality factor {n} carries {I} mA. What's its small-signal resistance?

::: right
Right. $r_d = \frac{nV_T}{I}$ = {answer} Ω.
:::

::: misses
- [0.02585/(I*1e-3)] Include the ideality factor.
- [any] Not yet. Differentiate $I = I_Se^{V/nV_T}$.
:::
:::

::: check
given: I = 0.5 | 2 | 10; t = 0.01 | 0.5 | 5
answer: t*1e-6*I*1e-3/0.02585*1e9
unit: nF
tolerance: 1%

## A diode with transit time {t} µs carries {I} mA. What's its diffusion capacitance, by charge control?

::: right
Right. $C_d = \tau_Tg_d$ = {answer} nF.
:::

::: misses
- [t*1e-6*0.02585/(I*1e-3)*1e9] Multiply by the conductance, not the resistance.
- [any] Not yet. $C_d = \tau_TI/V_T$.
:::
:::

::: check
given: W = 0.5 | 2 | 5; D = 3 | 11.3
answer: (W*1e-4)^2/(2*D)*1e9
unit: ns
tolerance: 1%

## A short diode's stored minority carriers cross {W} µm with D = {D} cm²/s. What's its transit time?

::: right
Right. $\tau_T = \frac{W^2}{2D}$ = {answer} ns.
:::

::: misses
- [(W*1e-4)^2/D*1e9] The linear profile's charge gives $W^2/2D$.
- [any] Not yet. Stored charge divided by current.
:::
:::

::: check
given: t = 0.1 | 1 | 20
answer: 1/(2*pi*t*1e-6)/1000
unit: kHz
tolerance: 1%

## Above what frequency does a forward-biased diode with $\tau_T$ = {t} µs look more capacitive than resistive?

::: right
Right. $\frac{1}{2\pi\tau_T}$ = {answer} kHz, at any bias current.
:::

::: misses
- [1/(t*1e-6)/1000] Divide by 2π.
- [any] Not yet. $r_dC_d = \tau_T$.
:::
:::

::: check
given: F = 5 | 10 | 20; R = 3 | 8; t = 0.2 | 3
answer: t*ln(1 + F/R)
unit: µs
tolerance: 1%

## A diode with τ = {t} µs is switched from {F} mA forward to {R} mA reverse. What storage time does charge control predict?

::: right
Right. $t_s = \tau\ln\left(1 + \frac{I_F}{I_R}\right)$ = {answer} µs.
:::

::: misses
- [t*ln(1 + R/F)] Upside down: a larger forward current stores more charge.
- [t*F/R] The charge also recombines while it drains: use the logarithm.
- [any] Not yet. Solve $dQ/dt = -I_R - Q/\tau$ from $Q = I_F\tau$.
:::
:::

::: check
given: s = 0.1 | 0.3 | 0.6
answer: 1/erf(sqrt(s)) - 1
tolerance: 1%

## A long diode's storage time is {s} times its lifetime. What ratio $I_R/I_F$ was it switched with?

::: right
Right. $\text{erf}\sqrt{t_s/\tau} = \frac{I_F}{I_F + I_R}$, so $I_R/I_F$ = {answer}.
:::

::: misses
- [erf(sqrt(s))] That's $\frac{I_F}{I_F + I_R}$; solve for the ratio.
- [any] Not yet. Use the exact long-diode result.
:::
:::

::: check
given: I = 1 | 5 | 30; t = 0.05 | 2
answer: I*t
unit: nC
tolerance: 1%

## A long diode with τ = {t} µs carries {I} mA. How much minority charge is stored in it?

::: right
Right. $Q = I\tau$ = {answer} nC.
:::

::: misses
- [any] Not yet. Every carrier lives τ on average.
:::
:::

::: check
kind: parts
given: I = 0.1 | 1 | 10; t = 0.01 | 0.1 | 1

## A long-base diode with τ = {t} µs carries {I} mA.

::: part
answer: 0.02585/(I/1000)
unit: Ω
tolerance: 0.5%

### What is its small-signal resistance?

::: misses
- [any] $V_T/I$.
:::
:::

::: part
answer: I/1000*t*1e-6/(2*0.02585)*1e12
unit: pF
tolerance: 0.5%

### What is its diffusion capacitance, $I\tau/2V_T$?

::: misses
- [any] $I\tau/(2V_T)$.
:::
:::

::: part
answer: I*t
unit: nC
tolerance: 0.5%

### How much charge does it store?

::: misses
- [any] $I\tau$.
:::
:::
:::

::: check
kind: derivation
vars: F = 1e-4..0.1, R = 1e-4..0.1, t = 1e-8..1e-5

## A diode carrying forward current F with lifetime t is switched to pull reverse current R. Using the charge-control estimate:

::: step
answer: F*t

### What charge is stored at first?
:::

::: step
answer: t*ln(1 + F/R)

### How long until the stored charge is gone?
:::

::: right
Right. A larger reverse current clears the charge faster, but never faster than a fraction of the lifetime.
:::
:::

::: explain
## Why does a diode keep conducting in reverse for a while after it's switched off?

::: model
A forward-biased junction has a large excess of minority carriers stored on its lightly doped side, which is what keeps the junction forward biased: the voltage across it is set by the minority density at the depletion edge through the law of the junction. When the external circuit reverses the current, those stored carriers are still there, so the junction stays forward biased and conducts the reverse current easily, the stored holes flowing back across the junction. Only when the reverse current and recombination have emptied the region next to the junction can the depletion region widen and block. The time that takes is set by how much charge was stored, the forward current times the lifetime, and how fast it's being removed.
:::
:::

::: practice

::: check
given: I = 0.2 | 4; t = 0.02 | 1
answer: t*1e-6*I*1e-3/0.02585*1e9
unit: nF
tolerance: 1%

## Diffusion capacitance: τ = {t} µs, {I} mA?

::: misses
- [any] $\tau I/V_T$.
:::
:::

::: check
given: F = 4 | 15; R = 3 | 8; t = 0.5 | 2
answer: t*ln(1 + F/R)
unit: µs
tolerance: 1%

## Charge-control storage time: {F} mA to −{R} mA, τ = {t} µs?

::: misses
- [any] $\tau\ln(1 + I_F/I_R)$.
:::
:::

::: check
given: W = 1 | 3; D = 5 | 11.3
answer: (W*1e-4)^2/(2*D)*1e9
unit: ns
tolerance: 1%

## Short-diode transit time: W = {W} µm, D = {D} cm²/s?

::: misses
- [any] $W^2/2D$.
:::
:::
:::
