Diode Models: Ideal, Constant-Drop and Shockley
A diode datasheet gives a forward voltage of " typical at ". A rectifier calculation assumes "". A bias circuit needs the drop to the nearest , and a temperature sensor uses its change of per kelvin. These are four different questions, and each has a diode model that answers it with the least effort. This lesson builds the ladder of models from the ideal switch to the full SPICE diode, and shows where each one breaks.
The ladder of models
| Model | Forward | Reverse | Use it for |
|---|---|---|---|
| ideal | short circuit, | open circuit | which diodes conduct; rectifier shapes when the voltages are large |
| constant drop | ( silicon, Schottky, to LED) | open | bias points and rectifier outputs to about 0.1 V |
| piecewise linear | open | a diode carrying a known range of current; linear circuit tools | |
| Shockley | accurate DC, temperature, small-signal resistance | ||
| SPICE | Shockley + + capacitances + breakdown | leakage, breakdown at | switching, frequency response, verification |
With the ideal or constant-drop models, solve a circuit by guessing each diode's state: assume it conducts, solve, and check that its current is positive; assume it is off, solve, and check that its voltage is below the drop. A wrong guess always gives a contradiction (Solving Diode Circuits).
The Shockley equation
The PN junction lesson ended with
- , the saturation current: picoamperes to nanoamperes for small silicon diodes, microamperes for Schottky diodes. It scales with junction area and with .
- , the ideality (emission) factor, between 1 (pure diffusion current) and 2 (recombination in the depletion region dominates). Real diodes are fitted with values like .
- at .
Two consequences are worth memorising. Per decade of current the drop rises by : for , for . And the voltage at fixed current falls with temperature by about
because grows faster with temperature (through ) than does. A diode is therefore a cheap thermometer, and a bias circuit built on one drifts unless it is designed for it (Bias Stability).
At large currents the resistance of the bulk silicon and the leads adds to the drop, so the curve bends from exponential towards a straight line. SPICE includes ; a hand model can too.
Worked example
Given: the course's small-signal diode model DSIG: , , , at .
Find: at and , and a piecewise-linear model through those two points.
Solve:
Check: the step from 1 to 10 mA is , a little more than because adds . The widely quoted "0.7 V" corresponds to about in this diode.
In Python
import numpy as np
IS, N, RS, VT = 2.52e-9, 1.752, 0.568, 0.02585
def vd(i): # Shockley junction plus the series resistance
return N * VT * np.log(i / IS + 1) + RS * i
print(" I (A) VD (V) decade step (mV)")
prev = None
for i in [1e-5, 1e-4, 1e-3, 1e-2, 1e-1]:
v = vd(i)
step = "" if prev is None else f"{(v - prev)*1e3:8.1f}"
print(f"{i:8.0e} {v:8.4f} {step}")
prev = v
# piecewise-linear model fitted through the 1 mA and 10 mA points
v1, v2 = vd(1e-3), vd(1e-2)
rd = (v2 - v1) / 9e-3
vg = v1 - rd * 1e-3
print(f"PWL fit: V_gamma = {vg:.3f} V, r_D = {rd:.2f} Ohm")
print(f"PWL at 30 mA: {vg + rd*0.03:.3f} V, Shockley: {vd(0.03):.3f} V") I (A) VD (V) decade step (mV)
1e-05 0.3753
1e-04 0.4796 104.3
1e-03 0.5844 104.8
1e-02 0.6938 109.4
1e-01 0.8492 155.4
PWL fit: V_gamma = 0.572 V, r_D = 12.15 Ohm
PWL at 30 mA: 0.937 V, Shockley: 0.755 V
The last line is the warning about piecewise-linear models: fitted between 1 and 10 mA, the line is wrong at 30 mA, because the real curve keeps bending. Fit a PWL model over the current range the circuit will actually use. At the series resistance adds , which is why the last decade step is .
Cross-check with SPICE: forward voltage and temperature
The deck forces fixed currents through the diode with a current source and reads the voltage, then repeats the point at and (SPICE's default temperature is ).
cat > iv.cir <<'EOF'
* forward voltage of the DSIG diode at fixed currents and temperatures
.model DSIG D(Is=2.52n N=1.752 Rs=0.568 Cjo=4p M=0.4 Tt=20n BV=100 IBV=0.1u)
I1 0 a DC 1m
D1 a 0 DSIG
.control
foreach id 10u 100u 1m 10m 100m
alter I1 dc = $id
op
echo "27 C, I = $id A: VD = amp;v(a)"
end
alter I1 dc = 1m
foreach t 0 75
option temp = $t
op
echo "$t C, I = 1m A: VD = amp;v(a)"
end
.endc
.end
EOF
ngspice -b iv.cir 2>&1 | grep ' C, I'27 C, I = 10u A: VD = 0.375505
27 C, I = 100u A: VD = 0.479887
27 C, I = 1m A: VD = 0.584739
27 C, I = 10m A: VD = 0.694194
27 C, I = 100m A: VD = 0.849656
0 C, I = 1m A: VD = 0.638697
75 C, I = 1m A: VD = 0.487302
The rows match Python to within (ngspice's at is a hair larger, and the reverse-breakdown parameters add a few picoamperes). Over the span, falls by : , the rule of thumb.
Guided lab: measure an I-V curve and a temperature coefficient
Hand calculation. For a 1N4148-class diode expect roughly at , at and at , about per decade, and .
Simulation. The Python table and the SPICE run.
What you would measure. Use a bench supply at (current limit ) and series resistors of , , and to set currents near , , and . At each point read and the voltage across the resistor with a -digit or better meter, and plot against : a straight line whose slope gives . Beware the meter's own input: across the diode at it is negligible, but across the resistor it draws 10 % of the current, so measure the supply voltage and compute that current instead. Expect values within about of the model (parts differ). For the temperature coefficient, hold the diode at , read , then pinch it between your fingers (about ): the reading should drop by about within a minute.
Hazards and safe setup. from a current-limited supply. Never put the diode straight across the supply without a resistor; with the limit set to it survives, without a limit it would overheat in a moment.
Pitfalls
- "0.7 V" at every current. In this diode it is at and at .
- Ignoring at high current. Above tens of milliamperes in a small diode the ohmic drop is a large part of the total.
- Reading as the reverse current. Real reverse leakage is often far larger than the fitted , because of surface leakage and generation in the depletion region; take it from the datasheet's curve.
- Self-heating. At high currents the diode warms, its falls and a slow measurement drifts. Pulse the current or wait for a steady reading.
Practice
- With , how much does change when the current is doubled?
- A diode drops at and . Estimate its drop at the same current and .
- In the PWL model above, what current does the model predict at ? Compare with Shockley.
Answer
- .
- .
- PWL: . Shockley (inverted numerically): . Even inside its fitting range the straight line errs by about 50 % in current, because a few millivolts of voltage error mean a large current error on a steep curve; it is far better at predicting voltage from current than current from voltage.
Test yourself
For the DSIG diode (), the forward voltage rises per decade of current by about…
At a fixed current, a silicon diode's forward voltage changes with temperature by about…
- not at all
Which model is enough to decide which diodes conduct in a bridge rectifier fed with peak?
- only full SPICE
- the ideal or constant-drop model
- the Shockley model with
- the junction capacitance model
A piecewise-linear model fitted between 1 and 10 mA is used at 30 mA. Its error is large because…
- changes
- the real curve keeps bending (exponential), so the straight line overshoots
- the diode breaks down
- is zero