S1 · Lesson 24 · Diode lab
Saturation currents, I–V fits, series resistance, C–V profiles and switching, in Python
A diode's datasheet and its physics meet in a handful of measurements: the forward I–V curve gives the saturation current and ideality factor, its bend at high current gives the series resistance, the C–V curve gives the doping profile, and the reverse-recovery transient gives the stored charge. This lab writes the extraction tools and the forward models in Python, and checks each against synthetic data built from known parameters, the way a device-characterization engineer validates their scripts before trusting them on real wafers.
- The curve is a diode's forward current on a log scale: ideal exponential at low current, bending over at high current where the series resistance takes a growing share of the voltage.
- Raise the series resistance and the bend moves down to lower currents.
- Raise the ideality factor and the straight part's slope flattens: recombination in the depletion region (n near 2) dominates at low voltage.
Predict
A diode's n region is thinned from much longer than a hole diffusion length (34 µm) to 2 µm, with an ohmic contact at its end. How does its saturation current change?
With a contact at , the hole term becomes : the gradient is steeper because the holes are pulled out at the contact, times. Short-base diodes leak more but switch faster, since they store less charge.
Name it
The tools
- Saturation current: , the coth for a contact at (→ 1 for a long base).
- I–V fit: at moderate current, is a straight line: fit it by least squares.
- Series resistance: at high current, : a line through the origin.
- C–V profile: for a one-sided junction, at each bias.
- Reverse recovery: charge control gives a storage time .
Use = 0.02585 V, q = 1.602 × 10⁻¹⁹ C, ε = 1.036 × 10⁻¹² F/cm.
Check
Write j0(Na, Nd, Dn, Ln, Dp, Lp, Wn=None, ni=1e10): the saturation current density (A/cm²) of a junction, with the n side long if Wn is None, or ending at an ohmic contact at Wn otherwise ( factor on the hole term).
Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.
Check
Write fit_diode(V, I): fit by least squares to (V, I) data and return (, n).
Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.
Check
Write series_r(V, I, I0, n): with and n known from the low-current fit, find by least squares through the origin on , using high-current (V, I) points.
Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.
Check
Write cv_profile(V, C, A): from capacitances C (F) at reverse biases V (V) of a one-sided junction of area A (cm²), return the doping for each neighboring pair of points.
Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.
Check
Write storage_time(IF, IR, tau): the charge-control storage time , and stored_charge(IF, tau): .
Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.
Explain why
Why is the ideality factor fitted from moderate currents and the series resistance from high currents, rather than both from the whole curve at once?
At low and moderate currents almost all of the applied voltage appears across the junction, so the current follows the exponential law and its log is a straight line whose slope gives the ideality factor and whose intercept gives the saturation current. At high current the series resistance takes a growing share of the voltage, so the curve bends away from that line, and the size of the bend at each current gives the resistance once the junction part is known. Fitting the whole curve with one straight line would mix the two effects and distort both; fitting each in the region where it dominates separates them cleanly.