TExcelTAD
Home › Analog Electronics: Diodes, Transistors & Op-Amps › Diode Models: Ideal, Constant-Drop and Shockley

Diode Models: Ideal, Constant-Drop and Shockley

A diode datasheet gives a forward voltage of "0.72 V0.72\ \text{V} typical at 5 mA5\ \text{mA}". A rectifier calculation assumes "0.7 V0.7\ \text{V}". A bias circuit needs the drop to the nearest 10 mV10\ \text{mV}, and a temperature sensor uses its change of 2 mV2\ \text{mV} 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

00.20.40.60.81.0 VD (V) 01020 mA ideal 0.7 V drop Shockley + Rs (DSIG)
Model Forward Reverse Use it for
ideal short circuit, VD=0V_D = 0 open circuit which diodes conduct; rectifier shapes when the voltages are large
constant drop VD=VD0V_D = V_{D0} (0.7 V0.7\ \text{V} silicon, 0.30.3 Schottky, 1.81.8 to 3.23.2 LED) open bias points and rectifier outputs to about 0.1 V
piecewise linear VD=Vγ+IrDV_D = V_\gamma + I r_D open a diode carrying a known range of current; linear circuit tools
Shockley I=IS(eV/(nVT)−1)I = I_S(e^{V/(nV_T)} - 1) I≈−ISI \approx -I_S accurate DC, temperature, small-signal resistance
SPICE Shockley + RSR_S + capacitances + breakdown leakage, breakdown at BVBV 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

ID=IS(eVD/(nVT)−1)⟺VD=nVTln⁡(IDIS+1)I_D = I_S\left(e^{V_D/(nV_T)} - 1\right) \quad\Longleftrightarrow\quad V_D = nV_T \ln\left(\frac{I_D}{I_S} + 1\right)
  • ISI_S, the saturation current: picoamperes to nanoamperes for small silicon diodes, microamperes for Schottky diodes. It scales with junction area and with ni2n_i^2.
  • nn, the ideality (emission) factor, between 1 (pure diffusion current) and 2 (recombination in the depletion region dominates). Real diodes are fitted with values like 1.751.75.
  • VT=kT/q=25.85 mVV_T = kT/q = 25.85\ \text{mV} at 300 K300\ \text{K}.

Two consequences are worth memorising. Per decade of current the drop rises by nVTln⁡10=2.303 nVTnV_T \ln 10 = 2.303\,nV_T: 59.5 mV59.5\ \text{mV} for n=1n = 1, 104 mV104\ \text{mV} for n=1.752n = 1.752. And the voltage at fixed current falls with temperature by about

dVDdT≈−2 mV/K\frac{dV_D}{dT} \approx -2\ \text{mV/K}

because ISI_S grows faster with temperature (through ni2n_i^2) than VTV_T 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 IRSI R_S to the drop, so the curve bends from exponential towards a straight line. SPICE includes RSR_S; a hand model can too.

Worked example

Given: the course's small-signal diode model DSIG: IS=2.52 nAI_S = 2.52\ \text{nA}, n=1.752n = 1.752, RS=0.568 ΩR_S = 0.568\ \Omega, at 300 K300\ \text{K}.

Find: VDV_D at 1 mA1\ \text{mA} and 10 mA10\ \text{mA}, and a piecewise-linear model through those two points.

Solve:

VD(1 mA)=1.752⋅25.85 mV⋅ln⁡(1 mA2.52 nA+1)+1 mA⋅0.568 Ω=0.5844 VVD(10 mA)=45.29 mV⋅ln⁡(3.968×106)+5.7 mV=0.6938 VrD=0.6938−0.584410−1 VmA=12.15 Ω,Vγ=0.5844 V−1 mA⋅12.15 Ω=0.572 V\begin{aligned} V_D(1\ \text{mA}) &= 1.752 \cdot 25.85\ \text{mV} \cdot \ln\left(\frac{1\ \text{mA}}{2.52\ \text{nA}} + 1\right) + 1\ \text{mA} \cdot 0.568\ \Omega = 0.5844\ \text{V} \\ V_D(10\ \text{mA}) &= 45.29\ \text{mV} \cdot \ln(3.968 \times 10^{6}) + 5.7\ \text{mV} = 0.6938\ \text{V} \\ r_D &= \frac{0.6938 - 0.5844}{10 - 1}\ \frac{\text{V}}{\text{mA}} = 12.15\ \Omega, \qquad V_\gamma = 0.5844\ \text{V} - 1\ \text{mA} \cdot 12.15\ \Omega = 0.572\ \text{V} \end{aligned}

Check: the step from 1 to 10 mA is 109 mV109\ \text{mV}, a little more than 2.303 nVT=104 mV2.303\,nV_T = 104\ \text{mV} because RSR_S adds 5 mV5\ \text{mV}. The widely quoted "0.7 V" corresponds to about 10 mA10\ \text{mA} in this diode.

In Python

python · try it yourself
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 0.18 V0.18\ \text{V} wrong at 30 mA, because the real curve keeps bending. Fit a PWL model over the current range the circuit will actually use. At 100 mA100\ \text{mA} the series resistance adds 57 mV57\ \text{mV}, which is why the last decade step is 155 mV155\ \text{mV}.

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 1 mA1\ \text{mA} point at 00 and 75 ∘C75\,^\circ\text{C} (SPICE's default temperature is 27 ∘C=300.15 K27\,^\circ\text{C} = 300.15\ \text{K}).

bash · try it yourself
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 27 ∘C27\,^\circ\text{C} rows match Python to within 0.4 mV0.4\ \text{mV} (ngspice's VTV_T at 300.15 K300.15\ \text{K} is a hair larger, and the reverse-breakdown parameters add a few picoamperes). Over the 75 K75\ \text{K} span, VDV_D falls by 151 mV151\ \text{mV}: −2.02 mV/K-2.02\ \text{mV/K}, the rule of thumb.

Guided lab: measure an I-V curve and a temperature coefficient

Hand calculation. For a 1N4148-class diode expect roughly 0.38 V0.38\ \text{V} at 10 μA10\ \mu\text{A}, 0.58 V0.58\ \text{V} at 1 mA1\ \text{mA} and 0.69 V0.69\ \text{V} at 10 mA10\ \text{mA}, about 100 mV100\ \text{mV} per decade, and −2 mV/K-2\ \text{mV/K}.

Simulation. The Python table and the SPICE run.

What you would measure. Use a bench supply at 10 V10\ \text{V} (current limit 20 mA20\ \text{mA}) and series resistors of 1 MΩ1\ \text{M}\Omega, 100 kΩ100\ \text{k}\Omega, 10 kΩ10\ \text{k}\Omega and 1 kΩ1\ \text{k}\Omega to set currents near 10 μA10\ \mu\text{A}, 100 μA100\ \mu\text{A}, 1 mA1\ \text{mA} and 10 mA10\ \text{mA}. At each point read VDV_D and the voltage across the resistor with a 3123\frac{1}{2}-digit or better meter, and plot log⁡I\log I against VDV_D: a straight line whose slope gives nn. Beware the meter's own 10 MΩ10\ \text{M}\Omega input: across the diode at 10 μA10\ \mu\text{A} it is negligible, but across the 1 MΩ1\ \text{M}\Omega resistor it draws 10 % of the current, so measure the supply voltage and compute that current instead. Expect values within about ±20 mV\pm 20\ \text{mV} of the model (parts differ). For the temperature coefficient, hold the diode at 1 mA1\ \text{mA}, read VDV_D, then pinch it between your fingers (about +10 K+10\ \text{K}): the reading should drop by about 20 mV20\ \text{mV} within a minute.

Hazards and safe setup. 10 V10\ \text{V} from a current-limited supply. Never put the diode straight across the supply without a resistor; with the limit set to 20 mA20\ \text{mA} it survives, without a limit it would overheat in a moment.

Pitfalls

  • "0.7 V" at every current. In this diode it is 0.58 V0.58\ \text{V} at 1 mA1\ \text{mA} and 0.38 V0.38\ \text{V} at 10 μA10\ \mu\text{A}.
  • Ignoring RSR_S at high current. Above tens of milliamperes in a small diode the ohmic drop is a large part of the total.
  • Reading ISI_S as the reverse current. Real reverse leakage is often far larger than the fitted ISI_S, because of surface leakage and generation in the depletion region; take it from the datasheet's IRI_R curve.
  • Self-heating. At high currents the diode warms, its VDV_D falls and a slow measurement drifts. Pulse the current or wait for a steady reading.

Practice

  1. With n=1n = 1, how much does VDV_D change when the current is doubled?
  2. A diode drops 0.62 V0.62\ \text{V} at 2 mA2\ \text{mA} and 25 ∘C25\,^\circ\text{C}. Estimate its drop at the same current and 85 ∘C85\,^\circ\text{C}.
  3. In the PWL model above, what current does the model predict at VD=0.65 VV_D = 0.65\ \text{V}? Compare with Shockley.
Answer
  1. VTln⁡2=25.85 mV⋅0.693=17.9 mVV_T \ln 2 = 25.85\ \text{mV} \cdot 0.693 = 17.9\ \text{mV}.
  2. 0.62 V−60 K⋅2 mV/K=0.50 V0.62\ \text{V} - 60\ \text{K} \cdot 2\ \text{mV/K} = 0.50\ \text{V}.
  3. PWL: (0.65−0.572)/12.15 Ω=6.4 mA(0.65 - 0.572)/12.15\ \Omega = 6.4\ \text{mA}. Shockley (inverted numerically): 4.1 mA4.1\ \text{mA}. 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 (n=1.752n = 1.752), the forward voltage rises per decade of current by about…

  1. 26 mV26\ \text{mV}
  2. 60 mV60\ \text{mV}
  3. 104 mV104\ \text{mV}
  4. 700 mV700\ \text{mV}

At a fixed current, a silicon diode's forward voltage changes with temperature by about…

  1. +2 mV/K+2\ \text{mV/K}
  2. −2 mV/K-2\ \text{mV/K}
  3. −0.2 V/K-0.2\ \text{V/K}
  4. not at all

Which model is enough to decide which diodes conduct in a bridge rectifier fed with 12 V12\ \text{V} peak?

  1. only full SPICE
  2. the ideal or constant-drop model
  3. the Shockley model with RSR_S
  4. the junction capacitance model

A piecewise-linear model fitted between 1 and 10 mA is used at 30 mA. Its error is large because…

  1. VTV_T changes
  2. the real curve keeps bending (exponential), so the straight line overshoots
  3. the diode breaks down
  4. RSR_S is zero