TExcelTAD
Home › Analog Electronics: Diodes, Transistors & Op-Amps › The PN Junction: Depletion, Bias and Capacitance

The PN Junction: Depletion, Bias and Capacitance

Every diode, every bipolar transistor and the body of every MOSFET contains a PN junction: p-type and n-type silicon in one crystal. It conducts in one direction and blocks in the other, its capacitance changes with the reverse voltage (a radio tunes with that), and above some reverse voltage it suddenly breaks down (a Zener regulator relies on that). This lesson explains those behaviours with a few formulas, so the diode models of the next lessons stop being magic.

The junction in equilibrium

Put p-type silicon (holes, fixed negative acceptor ions) against n-type silicon (electrons, fixed positive donor ions). Near the boundary the electrons diffuse into the p side and the holes into the n side, where they recombine. What remains on each side is a thin layer of uncovered fixed ions: negative on the p side, positive on the n side. This depletion region has almost no free carriers, and its charge creates an electric field pointing from n to p that pushes carriers back. Equilibrium is reached when the field's drift exactly cancels the diffusion. The potential step across the region is the built-in potential

Vbi=VTln⁡(NANDni2)V_{bi} = V_T \ln\left(\frac{N_A N_D}{n_i^2}\right)

typically 0.60.6 to 0.9 V0.9\ \text{V} in silicon. You cannot measure VbiV_{bi} with a voltmeter: contact potentials at the metal leads cancel it exactly, so an unconnected diode reads 0 V0\ \text{V}.

p-type (NA) n-type (ND) --- +++ E depletion width W holes (rings), acceptor ions (-) electrons (dots), donor ions (+) anode (p) cathode (n)

Bias: forward and reverse

Reverse bias (positive voltage on the n side) adds to the built-in step, widens the depletion region and strengthens the barrier. Only the minority carriers that wander into the field are swept across, a tiny saturation current ISI_S (picoamperes to nanoamperes in small silicon diodes, proportional to ni2n_i^2 and therefore strongly temperature dependent).

Forward bias (positive on the p side) lowers the barrier by VV. The number of majority carriers able to cross grows like eV/VTe^{V/V_T}, because their energies follow the Boltzmann distribution. They arrive as minority carriers on the other side and diffuse away while recombining. The result is the ideal diode equation (Diode Models):

I=IS(eV/(nVT)−1)I = I_S\left(e^{V/(nV_T)} - 1\right)

with an ideality factor nn between 1 and 2. Each 60 mV60\ \text{mV} (for n=1n = 1) multiplies the current by ten.

Depletion width and junction capacitance

For an abrupt junction the depletion width grows with the square root of the total barrier voltage:

W=2εs(Vbi−V)q(1NA+1ND),Cj=εsAWW = \sqrt{\frac{2\varepsilon_s (V_{bi} - V)}{q}\left(\frac{1}{N_A} + \frac{1}{N_D}\right)}, \qquad C_j = \frac{\varepsilon_s A}{W}

where εs=11.7 ε0\varepsilon_s = 11.7\,\varepsilon_0 for silicon, AA is the junction area and VV is the applied voltage (negative in reverse). The uncovered charge on each side changes with VV, so the junction acts like a voltage-dependent capacitor. SPICE writes it as

Cj(V)=Cj0(1−V/Vj)mC_j(V) = \frac{C_{j0}}{\left(1 - V/V_j\right)^{m}}

with m=0.5m = 0.5 for an abrupt junction, about 0.330.33 for a graded one, and VjV_j near VbiV_{bi}. A varactor diode is a junction optimised for this effect and used to tune oscillators and filters with a DC voltage.

In forward bias a second, larger charge appears: the minority carriers stored outside the depletion region. Its diffusion capacitance Cd=τTI/(nVT)C_d = \tau_T I/(nV_T) grows in proportion to the current (τT\tau_T is the transit time, SPICE's Tt). Stored charge is why a silicon diode takes tens of nanoseconds to stop conducting when it is suddenly reversed, the reverse-recovery time, and why Schottky diodes, which store almost none, are faster (Zener and Schottky Diodes).

Breakdown

At a large enough reverse voltage the current rises abruptly. Two mechanisms:

  • Zener (tunnelling) breakdown in heavily doped junctions with very thin depletion regions: the field (about 106 V/cm10^6\ \text{V/cm}) pulls electrons straight through the gap. Below about 5 V5\ \text{V}; its breakdown voltage falls as temperature rises.
  • Avalanche breakdown in lighter doped junctions: carriers accelerated by the field knock out new electron-hole pairs, which do the same. Above about 6 V6\ \text{V}; its voltage rises with temperature.

Near 55 to 6 V6\ \text{V} both mechanisms share the work and the temperature coefficients nearly cancel, which is why 5.15.1 and 5.6 V5.6\ \text{V} "Zener" diodes have the smallest temperature coefficients (within about ±0.05 %/K\pm 0.05\ \%/\text{K} in Vishay's BZX55 data at 5 mA5\ \text{mA}, against −0.08-0.08 to −0.05 %/K-0.05\ \%/\text{K} at 3.3 V3.3\ \text{V} and up to +0.11 %/K+0.11\ \%/\text{K} at 12 V12\ \text{V}; the exact crossover shifts with the test current). Breakdown is not destructive by itself; overheating is.

Worked example

Given: an abrupt silicon junction with NA=1017 cm−3N_A = 10^{17}\ \text{cm}^{-3}, ND=1016 cm−3N_D = 10^{16}\ \text{cm}^{-3}, area A=100 μm×100 μm=10−4 cm2A = 100\ \mu\text{m} \times 100\ \mu\text{m} = 10^{-4}\ \text{cm}^2, ni=1.0×1010 cm−3n_i = 1.0 \times 10^{10}\ \text{cm}^{-3}, T=300 KT = 300\ \text{K}.

Find: VbiV_{bi}, and WW and CjC_j at 0 V0\ \text{V} and at −5 V-5\ \text{V}.

Solve:

Vbi=25.85 mV⋅ln⁡1017⋅10161020=25.85 mV⋅29.93=0.774 VW(0)=2⋅1.036×10−12 F/cm⋅0.774 V1.602×10−19 C⋅1.1×10−16 cm3=0.332 μmCj(0)=1.036×10−12 F/cm⋅10−4 cm20.332×10−4 cm=3.12 pFW(−5 V)=W(0)5.7740.774=0.906 μm,Cj=1.14 pF\begin{aligned} V_{bi} &= 25.85\ \text{mV} \cdot \ln\frac{10^{17} \cdot 10^{16}}{10^{20}} = 25.85\ \text{mV} \cdot 29.93 = 0.774\ \text{V} \\ W(0) &= \sqrt{\frac{2 \cdot 1.036 \times 10^{-12}\ \text{F/cm} \cdot 0.774\ \text{V}}{1.602 \times 10^{-19}\ \text{C}} \cdot 1.1 \times 10^{-16}\ \text{cm}^3} = 0.332\ \mu\text{m} \\ C_j(0) &= \frac{1.036 \times 10^{-12}\ \text{F/cm} \cdot 10^{-4}\ \text{cm}^2}{0.332 \times 10^{-4}\ \text{cm}} = 3.12\ \text{pF} \\ W(-5\ \text{V}) &= W(0)\sqrt{\frac{5.774}{0.774}} = 0.906\ \mu\text{m}, \qquad C_j = 1.14\ \text{pF} \end{aligned}

Check: WW lies almost entirely on the lightly doped n side (the depletion charge must balance, so the side with fewer dopants depletes further). Quadrupling the barrier voltage roughly halves CjC_j, as the square root predicts. A few picofarads is typical of a small-signal diode.

In Python

python · try it yourself
import numpy as np

q, VT, EPS = 1.602e-19, 0.02585, 11.7 * 8.854e-14   # C, V, F/cm (silicon)
NI, NA, ND = 1.0e10, 1e17, 1e16                      # cm^-3
A = 1e-4                                             # cm^2 (100 um x 100 um)

vbi = VT * np.log(NA * ND / NI**2)
print(f"built-in potential: {vbi:.3f} V")
print(" V (V)   W (um)  Cj (pF)")
for v in [0.5, 0.0, -1.0, -5.0, -10.0]:
    w = np.sqrt(2 * EPS * (vbi - v) / q * (1 / NA + 1 / ND))   # cm
    cj = EPS * A / w                                           # F
    print(f"{v:6.1f} {w*1e4:8.3f} {cj*1e12:8.2f}")
built-in potential: 0.774 V
 V (V)   W (um)  Cj (pF)
   0.5    0.197     5.25
   0.0    0.332     3.12
  -1.0    0.502     2.06
  -5.0    0.906     1.14
 -10.0    1.238     0.84

The +0.5 V+0.5\ \text{V} row is only indicative: under forward bias the diffusion capacitance soon dominates.

Cross-check with SPICE: a diode's capacitance

The course's small-signal diode model DSIG has Cjo=4p M=0.4 (and the default Vj=1). The deck reverse-biases it with a DC source, adds a 1 V1\ \text{V} AC test signal at 1 MHz1\ \text{MHz}, and turns the reactive current into a capacitance, C=Im⁡(I)/(2πfV)C = \operatorname{Im}(I)/(2\pi f V):

bash · try it yourself
cat > cj.cir <<'EOF'
* reverse-biased diode: measure its capacitance with a 1 MHz AC test signal
.model DSIG D(Is=2.52n N=1.752 Rs=0.568 Cjo=4p M=0.4 Tt=20n BV=100 IBV=0.1u)
V1 k 0 DC 0 AC 1
D1 0 k DSIG
.control
foreach vr 0 1 5 10
  alter V1 dc = $vr
  ac lin 1 1meg 1meg
  let c = imag(-i(V1)) / (2 * pi * 1e6)
  echo "VR = $vr V: C = 
amp;c" end .endc .end EOF ngspice -b cj.cir 2>&1 | grep '^VR'
VR = 0 V: C = 4.00111E-12
VR = 1 V: C = 3.03143E-12
VR = 5 V: C = 1.95344E-12
VR = 10 V: C = 1.53286E-12

The values match 4 pF/(1+VR/1 V)0.44\ \text{pF}/(1 + V_R/1\ \text{V})^{0.4}: 3.033.03, 1.951.95 and 1.53 pF1.53\ \text{pF}. The extra 0.001 pF0.001\ \text{pF} at 0 V0\ \text{V} is the tiny diffusion capacitance at zero current.

Interactive: a voltage-tuned resonator

A varactor in a parallel LC tank sets the resonant frequency f0=1/(2πLCj)f_0 = 1/(2\pi\sqrt{LC_j}). The lab is linear, so it cannot hold a diode: here the junction is replaced by a plain capacitor C1C_1, and you play the role of the bias voltage by moving its slider over the range the SPICE table found (1.51.5 to 4 pF4\ \text{pF}). With L=10 μHL = 10\ \mu\text{H}, C1=3.03 pFC_1 = 3.03\ \text{pF} (VR=1 VV_R = 1\ \text{V}) gives f0=28.9 MHzf_0 = 28.9\ \text{MHz} and 1.53 pF1.53\ \text{pF} (VR=10 VV_R = 10\ \text{V}) gives 40.7 MHz40.7\ \text{MHz}.

0.00.51.010M100Mf (Hz)|V| (V)|V(out)|phasors at f = 28.90 MHz (magnitude @ phase)V(in)1.00 V @ 0.0 degV(out)1.00 V @ 1.4 degI(V1)509 nA @ 91.4 degI(R1)509 nA @ -88.6 degI(L1)551 uA @ -88.6 degI(C1)550 uA @ 91.4 deg

At the default the output peaks near 1 V1\ \text{V} at 28.9 MHz28.9\ \text{MHz}, where the tank's impedance is highest. Lower C1C_1 and the peak moves up in frequency.

Guided lab: measure a junction's capacitance

Hand calculation. For a small-signal diode with Cj0≈4 pFC_{j0} \approx 4\ \text{pF}, expect Cj≈3 pFC_j \approx 3\ \text{pF} at 1 V1\ \text{V} and 1.5 pF1.5\ \text{pF} at 10 V10\ \text{V} reverse.

Simulation. The SPICE table and the tank lab above.

What you would measure. A few picofarads is too small for most multimeters, and so is a breadboard's own stray capacitance (a few pF), so use a larger varactor (a BB-series tuning diode, tens of pF) or a power rectifier's junction. Reverse-bias it from a current-limited bench supply through a 100 kΩ100\ \text{k}\Omega resistor, couple it with 10 nF10\ \text{nF} into an LC tank with a 10 μH10\ \mu\text{H} inductor driven by a function generator through 47 kΩ47\ \text{k}\Omega, and find the resonant peak on a scope as you change the supply from 11 to 20 V20\ \text{V}. Expect the frequency to rise smoothly, roughly as (1+VR/Vj)m/2(1 + V_R/V_j)^{m/2}; scope-probe capacitance (about 10 pF10\ \text{pF} with a 10x probe) adds to CjC_j, so subtract it or measure through a small coupling capacitor.

Hazards and safe setup. Up to 20 V20\ \text{V} DC from a current-limited supply; set the limit to 5 mA5\ \text{mA}. Observe the diode's polarity: forward-biasing it from the supply with only 100 kΩ100\ \text{k}\Omega is harmless but gives no tuning.

Pitfalls

  • Expecting to measure VbiV_{bi}. It is internal; contact potentials cancel it.
  • Treating CjC_j as constant. It changes by a factor of 2 to 3 over the reverse-voltage range, which distorts large signals in RF and sample-and-hold circuits.
  • Confusing breakdown with failure. Breakdown is reversible; the device fails only if V⋅IV \cdot I overheats it.

Practice

  1. A junction has Cj=10 pFC_j = 10\ \text{pF} at 0 V0\ \text{V}, Vj=0.8 VV_j = 0.8\ \text{V}, m=0.5m = 0.5. Find CjC_j at −7.2 V-7.2\ \text{V}.
  2. Why does a 3.3 V3.3\ \text{V} Zener's breakdown voltage fall as it warms, while a 12 V12\ \text{V} one rises?
  3. Why does the depletion region extend mostly into the lightly doped side?
Answer
  1. Cj=10 pF/1+7.2/0.8=10/10=3.16 pFC_j = 10\ \text{pF}/\sqrt{1 + 7.2/0.8} = 10/\sqrt{10} = 3.16\ \text{pF}.
  2. The 3.3 V3.3\ \text{V} part breaks down by tunnelling, which gets easier as the band gap shrinks with temperature; the 12 V12\ \text{V} part breaks down by avalanche, which gets harder because carriers lose more energy to lattice vibrations between collisions.
  3. The uncovered charge must be equal on both sides, qNAxp=qNDxnqN_A x_p = qN_D x_n; fewer dopants per unit volume need a wider layer.

Test yourself

Reverse bias makes the depletion region…

  1. narrower, with more capacitance
  2. wider, with less capacitance
  3. disappear
  4. unchanged

For NA=1017N_A = 10^{17}, ND=1016 cm−3N_D = 10^{16}\ \text{cm}^{-3} and ni=1010 cm−3n_i = 10^{10}\ \text{cm}^{-3} at 300 K, VbiV_{bi} is about…

  1. 0.26 V0.26\ \text{V}
  2. 0.77 V0.77\ \text{V}
  3. 1.12 V1.12\ \text{V}
  4. 5.1 V5.1\ \text{V}

Which capacitance dominates a forward-biased silicon diode carrying a few milliamperes?

  1. junction (depletion) capacitance
  2. diffusion capacitance from stored minority carriers
  3. lead inductance
  4. none

Diodes with the lowest breakdown-voltage temperature coefficient break down at about…

  1. 2 V2\ \text{V}
  2. about 55 to 6 V6\ \text{V}
  3. 30 V30\ \text{V}
  4. 100 V100\ \text{V}