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.
- 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.
- 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).
- The same argument for empty states in the valence band gives \(p = N_v\,e^{-(E_F-E_v)/kT}\).
- 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.
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:
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.
- In equilibrium with a potential \(\phi(x)\), electron concentration follows Boltzmann statistics: \(n(x) = n_0e^{q\phi(x)/kT}\).
- Differentiate: \(dn/dx = n\,(q/kT)\,d\phi/dx = -n\,(q/kT)E\).
- No net current flows in equilibrium: \(0 = qn\mu_nE + qD_n\left(-n\frac{q}{kT}E\right)\).
- 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.
- 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}\).
- 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}$$
- So $$V_{bi} = V_T\ln\frac{N_AN_D}{n_i^2}$$
\(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
- 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.
- 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\).
- 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.
- 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.
- 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}$$
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.
- 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\).
- 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}}$$
- 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.
- 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}$$
- 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}$$
- 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}$$
- 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)$$
- 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
- 60 mV per decade. Each tenfold increase in current adds \(V_T\ln10 = 59.6\) mV (for \(n=1\)). That is why "0.6–0.7 V" works as a rule of thumb across many decades of current.
- Small-signal resistance. At 1 mA, \(r_d = 25.9\ \Omega\); at 1 A, 26 mΩ (before series resistance, which then dominates).
- 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\)).
- Write \(\ln I_S = \text{const} + 3\ln T - E_g/kT\). Then \(V = V_T\ln I - V_T\ln I_S\).
- 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}$$
- 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:
| Mechanism | Voltage range | Physics | Temperature coefficient |
|---|---|---|---|
| Zener (tunnelling) | Below about 5 V | Very heavy doping makes W so thin that electrons tunnel directly from the valence band to the conduction band | Negative (the bandgap shrinks with T) |
| Avalanche (impact ionization) | Above about 6 V | Carriers gain enough energy between collisions to knock out new electron–hole pairs, which multiply | Positive (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.
- 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}$$
- In steady forward conduction \(dQ/dt = 0\), so \(Q_F = I_F\tau\).
- 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:
\(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:
- Lower forward voltage: about 0.3–0.45 V at rated current instead of 0.7–1 V.
- No stored minority charge: essentially no reverse recovery, only junction capacitance. Ideal for switching-converter freewheeling and fast clamps.
- Higher leakage, rising steeply with temperature, and lower practical reverse voltage. Thermal runaway is a real failure mode in hot, high-voltage Schottky applications.
Silicon-carbide Schottky diodes extend the same no-recovery advantage to 650–1700 V.
12Applications
- Rectification. A full-wave rectifier into a capacitor C with load current I recharges twice per mains cycle, so ripple is \(\Delta V \approx I/(2fC)\). 1 A on 4700 µF at 60 Hz gives about 1.8 V.
- Clamping and ESD protection. Steering diodes to the rails and TVS diodes divert surges; their junction capacitance and leakage are the costs.
- Reference and regulation. Zeners near 5.6 V; bandgap references built from junction voltages.
- Temperature sensing. \(V_\text{BE}\) or \(V_F\) at constant current, or the difference of two current densities (\(\Delta V = V_T\ln N\), proportional to absolute temperature).
- Light. In direct-bandgap materials, recombination emits a photon of energy \(\approx E_g\): \(\lambda\,[\text{nm}] \approx 1240/E_g[\text{eV}]\). An LED's forward voltage is close to its photon energy: about 2 V for red, 3 V for blue. Run backwards, a photodiode turns absorbed photons into current.
Summary
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.