EE Basics · step 7 · semiconductor devices

Diodes

The pn junction is the building block of every semiconductor device. This page starts from carrier statistics and derives everything a diode does: the built-in potential, the depletion region from Poisson's equation, the Shockley equation from diffusion, the −2 mV/K forward-voltage drift, junction capacitance, breakdown, reverse recovery, and why Schottky diodes behave differently.

Builds onPotential and Poisson's equation · CapacitorsLeads toBJTs · FETs

1Electrons, holes and the intrinsic concentration

In a crystal, allowed electron energies form bands. In a semiconductor the filled valence band and the empty conduction band are separated by a gap \(E_g\) (1.12 eV for silicon at 300 K). At room temperature a few electrons are thermally excited across the gap. Each leaves behind a hole, an empty state in the valence band that behaves as a mobile positive charge.

Derivation · carrier concentrations
  1. The probability that a state at energy \(E\) is occupied is the Fermi–Dirac function \(f(E) = 1/(1+e^{(E-E_F)/kT})\), where \(E_F\) is the Fermi level.
  2. When \(E_F\) is several \(kT\) below the conduction band edge \(E_c\), \(f\approx e^{-(E-E_F)/kT}\) (Boltzmann approximation). Integrating the density of states times \(f\) over the conduction band gives $$n = N_c\,e^{-(E_c-E_F)/kT}$$ where \(N_c\) is the effective density of states (\(2.8\times10^{19}\ \text{cm}^{-3}\) for Si).
  3. The same argument for empty states in the valence band gives \(p = N_v\,e^{-(E_F-E_v)/kT}\).
  4. Multiply them: \(E_F\) cancels. $$np = N_cN_v\,e^{-E_g/kT} \equiv n_i^2$$

In pure (intrinsic) silicon \(n = p = n_i \approx 1.0\times10^{10}\ \text{cm}^{-3}\) at 300 K, about one free carrier per \(5\times10^{12}\) atoms. Because \(n_i^2 \propto T^3e^{-E_g/kT}\), it roughly doubles every 8–10 K near room temperature. That single fact is behind diode leakage doubling with temperature and the negative temperature coefficient of forward voltage.

2Doping and the mass-action law

Replace a few silicon atoms with phosphorus (5 valence electrons) and each donates an electron: n-type. Boron (3 valence electrons) accepts an electron, creating a hole: p-type. At room temperature essentially all dopants are ionized.

$$\text{n-type: } n \approx N_D,\quad p = \frac{n_i^2}{N_D} \qquad\qquad \text{p-type: } p\approx N_A,\quad n = \frac{n_i^2}{N_A}$$

The product \(np = n_i^2\) holds in equilibrium whatever the doping (it came from step 4 above, which did not depend on \(E_F\)). Doping at \(N_D = 10^{16}\ \text{cm}^{-3}\) gives \(n = 10^{16}\) and \(p = 10^{20}/10^{16} = 10^4\ \text{cm}^{-3}\): majority carriers outnumber minority carriers by \(10^{12}\). The minority carriers are few, but as section 7 shows, they carry the diode current.

The Fermi level moves with doping: \(E_F - E_i = kT\ln(n/n_i)\), where \(E_i\) is the intrinsic level near mid-gap. For \(10^{16}\) donors, \(E_F\) sits \(0.0259\ln(10^6) = 0.36\) eV above mid-gap.

3Drift, diffusion and the Einstein relation

Carriers move for two reasons: an electric field pushes them (drift), and a concentration gradient spreads them out (diffusion, from random thermal motion). For electrons and holes:

$$J_n = qn\mu_nE + qD_n\frac{dn}{dx}, \qquad J_p = qp\mu_pE - qD_p\frac{dp}{dx}$$

Diffusion is Fick's law: carriers random-walk, so more of them move from crowded regions to sparse ones than the other way. The signs differ because holes are positive and electrons negative.

Derivation · Einstein relation \(D/\mu = kT/q\)
  1. In equilibrium with a potential \(\phi(x)\), electron concentration follows Boltzmann statistics: \(n(x) = n_0e^{q\phi(x)/kT}\).
  2. Differentiate: \(dn/dx = n\,(q/kT)\,d\phi/dx = -n\,(q/kT)E\).
  3. No net current flows in equilibrium: \(0 = qn\mu_nE + qD_n\left(-n\frac{q}{kT}E\right)\).
  4. So $$\frac{D_n}{\mu_n} = \frac{kT}{q} \equiv V_T \approx 25.9\ \text{mV at 300 K}$$

The thermal voltage \(V_T = kT/q\) appears in every equation that follows. It is the energy scale of thermal motion expressed as a voltage.

4The pn junction in equilibrium: built-in potential

Join p-type and n-type silicon. Holes diffuse from p into n, electrons from n into p, and they recombine near the boundary. That leaves behind uncovered ionized dopants: negative acceptors on the p side, positive donors on the n side. This depletion region has a field pointing from n to p that pushes carriers back. Equilibrium is reached when drift exactly cancels diffusion.

Derivation · \(V_{bi} = V_T\ln(N_AN_D/n_i^2)\)
  1. Zero net hole current: \(qp\mu_pE = qD_p\,dp/dx\). Using \(E = -d\phi/dx\) and the Einstein relation: \(-\dfrac{d\phi}{dx} = V_T\dfrac{1}{p}\dfrac{dp}{dx}\).
  2. Integrate across the junction from the p side (\(p = N_A\)) to the n side (\(p = n_i^2/N_D\)): $$\phi_n - \phi_p = V_T\ln\frac{p_p}{p_n} = V_T\ln\frac{N_A}{n_i^2/N_D}$$
  3. So $$V_{bi} = V_T\ln\frac{N_AN_D}{n_i^2}$$
Number

\(N_A = 10^{17}\), \(N_D = 10^{16}\ \text{cm}^{-3}\): \(V_{bi} = 0.0259\times\ln(10^{33}/10^{20}) = 0.0259\times29.9 \approx 0.77\) V. You cannot measure \(V_{bi}\) with a voltmeter: contact potentials at the metal connections cancel it exactly. It shows up indirectly as the barrier that sets the forward voltage.

5The depletion region from Poisson's equation

charge ρ −qNA+qND p siden side field E |E|max at the junction potential φ Vbi −xp0xn
Abrupt junction with heavier p doping (taller, narrower charge block). The two blocks have equal area: equal and opposite charge on each side; the field is triangular (integral of charge); the potential is parabolic (integral of field) and rises by Vbi. The depletion region extends further into the lightly doped side.
Derivation · depletion width
  1. Depletion approximation: no free carriers between \(-x_p\) and \(x_n\); charge density is \(-qN_A\) on the p side and \(+qN_D\) on the n side.
  2. Poisson's equation \(dE/dx = \rho/\varepsilon\). Integrate from the neutral p edge \((E=0)\): on the p side \(E(x) = -\frac{qN_A}{\varepsilon}(x+x_p)\). The field is linear and peaks at \(x=0\).
  3. The field must return to zero at \(x_n\), so the total charge is zero: \(N_Ax_p = N_Dx_n\). Charge balance means the region extends further into the lighter-doped side.
  4. The potential difference is the area under the triangle: \(V_{bi} - V = \tfrac12|E_\text{max}|W\), with \(W = x_p+x_n\), \(|E_\text{max}| = qN_Ax_p/\varepsilon\), and \(V\) the applied forward bias.
  5. Eliminate \(x_p, x_n\) using step 3: $$W = \sqrt{\frac{2\varepsilon\,(V_{bi}-V)}{q}\left(\frac{1}{N_A}+\frac{1}{N_D}\right)}, \qquad |E_\text{max}| = \frac{2(V_{bi}-V)}{W}$$
Number

Same doping as above, zero bias, \(\varepsilon_\text{Si} = 11.7\varepsilon_0\): \(W = \sqrt{2(1.04\times10^{-10})(0.77)(1.1\times10^{-22})/1.6\times10^{-19}} \approx 0.33\ \mu\)m, and \(|E_\text{max}| \approx 47\) kV/cm. Reverse bias widens W as \(\sqrt{V_{bi}+V_R}\) and raises the peak field, which eventually causes breakdown (section 9).

6Junction capacitance

The depletion region is a layer of fixed charge with conductive neutral regions on either side: a parallel-plate capacitor whose gap W depends on voltage.

Derivation
  1. Small-signal capacitance \(C_j = dQ/dV\). Changing V moves the depletion edges, uncovering or covering charge at distance W apart, so \(C_j = \varepsilon A/W\).
  2. Substitute W: $$C_j = \frac{C_{j0}}{\sqrt{1 - V/V_{bi}}}, \qquad C_{j0} = A\sqrt{\frac{q\varepsilon}{2V_{bi}}\cdot\frac{N_AN_D}{N_A+N_D}}$$
  3. Reverse bias (\(V<0\)) reduces \(C_j\). For non-abrupt junctions the exponent is a parameter \(m\) (1/3 for a linearly graded junction).

This is the basis of varactor diodes used for tuning, and it is the parasitic capacitance of every ESD diode, transistor junction and photodiode. A TVS diode with 1 pF of junction capacitance on a 5 Gb/s line is a real design constraint.

7The Shockley diode equation

Forward bias \(V\) lowers the barrier from \(V_{bi}\) to \(V_{bi}-V\). Majority carriers can now cross in exponentially larger numbers and arrive on the other side as minority carriers, where they diffuse away and recombine.

Derivation · \(I = I_S(e^{V/V_T}-1)\)
  1. Law of the junction. Across the depletion region, carriers stay close to Boltzmann equilibrium with the reduced barrier. The hole density at the n-side edge is therefore raised by a Boltzmann factor: $$p_n(x_n) = p_{n0}\,e^{V/V_T}, \qquad p_{n0} = \frac{n_i^2}{N_D}$$
  2. Minority diffusion with recombination. In the neutral n region there is negligible field, so excess holes \(\Delta p\) only diffuse and recombine with lifetime \(\tau_p\). Continuity in steady state: $$D_p\frac{d^2\Delta p}{dx^2} = \frac{\Delta p}{\tau_p}$$
  3. With \(L_p = \sqrt{D_p\tau_p}\) (the diffusion length, typically tens of µm) and the boundary condition from step 1, the solution decaying into a long n region is $$\Delta p(x) = p_{n0}\left(e^{V/V_T}-1\right)e^{-(x-x_n)/L_p}$$
  4. Current at the edge is pure diffusion: $$J_p = -qD_p\frac{d\Delta p}{dx}\Big|_{x_n} = \frac{qD_pp_{n0}}{L_p}\left(e^{V/V_T}-1\right)$$
  5. Electrons injected into the p side contribute the mirror-image term. Neglect recombination inside the thin depletion region and add the two: $$I = I_S\left(e^{V/V_T}-1\right), \qquad I_S = qAn_i^2\left(\frac{D_p}{L_pN_D} + \frac{D_n}{L_nN_A}\right)$$

The saturation current \(I_S\) is tiny (femtoamps to picoamps for small silicon diodes) because it is proportional to \(n_i^2\). It is dominated by the lightly doped side, which receives most of the injected minority carriers. In real diodes, recombination in the depletion region adds a component that goes as \(e^{V/2V_T}\); both are folded into an ideality factor \(n\) between 1 and 2: \(I = I_S(e^{V/nV_T}-1)\).

8Forward behaviour and temperature

$$V = nV_T\ln\!\left(\frac{I}{I_S}+1\right), \qquad r_d = \frac{dV}{dI} = \frac{nV_T}{I}$$
Derivation · forward voltage falls about 2 mV/K
  1. At constant current, \(V = V_T\ln(I/I_S)\), and \(I_S \propto n_i^2 \propto T^{3}e^{-E_g/kT}\) (ignoring the weaker temperature dependence of \(D\) and \(L\)).
  2. Write \(\ln I_S = \text{const} + 3\ln T - E_g/kT\). Then \(V = V_T\ln I - V_T\ln I_S\).
  3. Differentiate with respect to T. The first term gives \(\frac kq\ln(I/I_S) = V/T\); the second needs \(\frac{d\ln I_S}{dT} = \frac3T + \frac{E_g}{kT^2}\): $$\frac{dV}{dT} = \frac VT - V_T\left(\frac3T + \frac{E_g}{kT^2}\right) = \frac{V - E_g/q - 3V_T}{T}$$
  4. For \(V = 0.65\) V at 300 K: \((0.65 - 1.12 - 0.078)/300 \approx -1.8\) mV/K.

The negative coefficient makes diode junctions useful temperature sensors, and it is half of a bandgap reference (the other half is a positive-coefficient \(V_T\ln N\) term from two junctions at different current densities; their sum extrapolates to about \(E_g/q \approx 1.2\) V). It also means parallel diodes or BJTs can thermally run away: the hotter one drops less voltage, takes more current, and heats further.

9Reverse bias and breakdown

Under reverse bias the current approaches \(-I_S\), plus thermal generation of carriers inside the depletion region (proportional to \(n_iW\)). Both grow rapidly with temperature: leakage roughly doubles every 10 K.

When the peak field reaches a few hundred kV/cm, the junction breaks down by one of two mechanisms:

MechanismVoltage rangePhysicsTemperature coefficient
Zener (tunnelling)Below about 5 VVery heavy doping makes W so thin that electrons tunnel directly from the valence band to the conduction bandNegative (the bandgap shrinks with T)
Avalanche (impact ionization)Above about 6 VCarriers gain enough energy between collisions to knock out new electron–hole pairs, which multiplyPositive (more phonon scattering, so more field is needed)

The two coefficients cancel near 5.6 V, which is why 5.6 V Zeners have the best stability. Breakdown is not destructive in itself; it becomes destructive when the power \(V_\text{BR}\cdot I\) overheats the junction. TVS diodes are avalanche diodes built with large junction area to survive surge energy.

10Stored charge and reverse recovery

A forward-biased pn diode is full of injected minority carriers. They must be removed before the diode can block.

Derivation · charge-control model
  1. Let \(Q\) be the stored excess minority charge. It is replenished by the diode current and lost by recombination with lifetime \(\tau\): $$\frac{dQ}{dt} = i - \frac{Q}{\tau}$$
  2. In steady forward conduction \(dQ/dt = 0\), so \(Q_F = I_F\tau\).
  3. If the circuit suddenly reverses the current to \(-I_R\), the charge is pulled out. The diode keeps conducting in reverse (the junction stays forward-biased) for a storage time of roughly $$t_s \approx \tau\ln\!\left(1+\frac{I_F}{I_R}\right)$$ then the current tails off as the junction recovers.

With \(\tau = 1\ \mu\)s and \(I_F = 10\) A, about 10 µC must be removed. In a hard-switched converter this recovery current flows through the opposing switch at full voltage: extra loss, ringing and EMI. Fast-recovery diodes shorten \(\tau\) with lifetime-killing impurities. Also note the separate diffusion capacitance, \(C_d = dQ/dV = \tau I/V_T\), which dominates over junction capacitance under forward bias.

11Schottky diodes

A metal–semiconductor contact with the right work functions forms a barrier \(\phi_B\) to electrons in an n-type semiconductor. Current is carried by majority electrons emitted over the barrier (thermionic emission), not by injected minority carriers:

$$I = I_S\left(e^{V/nV_T}-1\right), \qquad I_S = AA^*T^2e^{-q\phi_B/kT}$$

\(A^*\) is the Richardson constant (about 110 A/cm²K² for n-Si). Because \(\phi_B\) is 0.5–0.8 eV, smaller than what a pn junction presents, \(I_S\) is many orders of magnitude larger. Consequences:

Silicon-carbide Schottky diodes extend the same no-recovery advantage to 650–1700 V.

12Applications

Summary

Mass action\(np = n_i^2\); Si \(n_i\approx10^{10}\ \text{cm}^{-3}\)
Einstein\(D/\mu = V_T = kT/q\) ≈ 25.9 mV
Built-in\(V_{bi} = V_T\ln(N_AN_D/n_i^2)\)
Depletion\(W = \sqrt{\tfrac{2\varepsilon(V_{bi}-V)}{q}(\tfrac1{N_A}+\tfrac1{N_D})}\)
Shockley\(I = I_S(e^{V/nV_T}-1)\), \(I_S\propto n_i^2\)
Small signal\(r_d = nV_T/I\); 60 mV/decade
Temperature\(dV/dT\approx(V-E_g/q-3V_T)/T\approx-2\) mV/K
Stored charge\(Q = I_F\tau\); Schottky has none

13Check yourself

Why does the lightly doped side of a junction dominate both the depletion width and the saturation current?

Charge balance \(N_Ax_p = N_Dx_n\) forces the depletion region deeper into the lighter side. And \(I_S\) contains \(n_i^2/N\): the lighter side has more minority carriers in equilibrium, so it receives most of the injection.

A diode drops 0.62 V at 1 mA. Roughly what does it drop at 100 mA (ignore series resistance)?

Two decades at about 60 mV each: 0.74 V. Real diodes add \(I\cdot R_s\) on top, which often dominates at high current.

A circuit uses a diode as a 0 °C to 100 °C thermometer. How much does its forward voltage change?

About −\(2\ \text{mV}/\text{K}\times 100\ \text{K}\approx -200\ \text{mV}\), slightly nonlinear. Using the difference of two current densities gives a linear, PTAT signal instead.

Why does a Schottky diode have almost no reverse recovery?

Its current is carried by majority carriers crossing a metal–semiconductor barrier. No minority carriers are injected and stored, so there is nothing to sweep out when it turns off; only the junction capacitance must be charged.

Why does reverse bias reduce junction capacitance?

Reverse bias widens the depletion region as \(\sqrt{V_{bi}+V_R}\). The "plates" (the neutral regions) move apart, so \(C_j = \varepsilon A/W\) falls.