S1 · Lesson 6 · Carrier lab
Neutrality, resistivity, Hall and Haynes–Shockley data, and diffusion profiles, in Python
The first four lessons gave formulas for carriers at rest and in motion. A device engineer uses them the other way around as often as forward: a wafer's resistivity is specified, so what doping is it? A Hall bar gives a voltage, so what are the density and mobility? A pulse arrives late and spread out, so what are μ and D, and do they obey Einstein? This lab writes those calculations as small Python tools and checks them against the numbers in the lessons.
- The curve is silicon's resistivity against donor density, from the mobility fit , on log axes.
- It's nearly a straight line with slope −1, bending where the mobility starts to fall at high doping.
- Lab task 2 inverts this curve: given a resistivity, find the doping by bisection.
Predict
A wafer is specified at 1 Ω·cm, n-type. Roughly what donor density is that?
with μ ≈ 1300 gives cm⁻³, which the lab's bisection confirms. Wafer vendors quote resistivity because it's what a four-point probe measures; the doping follows from curves like this one.
Name it
The tools
| Task | From | To |
|---|---|---|
| Neutrality | , , | n and p, exactly, including near-intrinsic wafers |
| Resistivity | doping | ρ, and back again by bisection |
| Hall | , I, B, thickness, ρ | carrier density and Hall mobility |
| Haynes–Shockley | distance, field, arrival time, time spread | μ, D, and the Einstein ratio D/μ |
| Diffusion | surface concentration or dose, D, t, background | junction depth |
Use C and cm⁻³ throughout.
Check
Write carriers(Nd, Na, ni=1e10): the exact equilibrium (n, p) from charge neutrality and . Solve the quadratic in a form that doesn't lose precision when one carrier is tiny.
Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.
Check
Write rho_n(N): the resistivity of n-type silicon from the mobility fit, and doping_for(rho): the donor density giving that resistivity, by bisection in log N between and .
Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.
Check
Write hall(VH, I, B, t_cm, rho): a Hall bar t cm thick carries current I (A) in field B (T) and shows Hall voltage VH (V); its resistivity is ρ (Ω·cm). Return (carrier density in cm⁻³, Hall mobility in cm²/(V·s)).
Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.
Check
Write haynes_shockley(d, E, t, sigma_t): a minority pulse drifts d cm in field E (V/cm), arriving after t s with a time spread (standard deviation) σ_t. Return (μ, D, D/μ), with , the spatial spread and .
Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.
Check
Write xj_erfc(Cs, NB, D, t): the junction depth (cm) of a constant-surface diffusion into a background , by bisection. Then xj_gauss(Q, NB, D, t): the depth for a drive-in of dose Q, .
Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.
Explain why
Why does a Haynes–Shockley measurement check the Einstein relation, and what would a ratio well above kT/q suggest?
The experiment watches one pulse of minority carriers. Its arrival time gives the drift velocity in a known field, hence the mobility, and the growth of its width gives the diffusion coefficient, so both quantities come from the same carriers under the same conditions. Einstein's relation says that in equilibrium D/μ equals kT/q, because the same random collisions limit both drift and diffusion. A measured ratio well above kT/q would point to extra spreading not caused by diffusion: carrier trapping and release, a nonuniform field, or a pulse that was too wide at the start.