Solving Diode Circuits: Load Lines, Iteration and Small-Signal Resistance
A diode in series with a resistor is the simplest nonlinear circuit, and already it has no closed-form solution: the resistor wants , the diode wants , and the answer is wherever both are true. Three tools find that point: a graph (the load line), a numerical iteration, and, once the point is known, a linear small-signal model that tells how the circuit responds to small changes. The same three tools carry over unchanged to transistor circuits, so they are worth learning well on the diode.
The load line
Reduce everything outside the diode to a Thevenin source behind (Thevenin and Norton Equivalents). KVL gives the load line, a straight line in the diode's - plane:
It meets the current axis at (diode shorted) and the voltage axis at (diode open). The operating point or Q-point is where it crosses the diode curve.
The graph makes the design trade-offs visible. Raise and the line moves up parallel to itself; raise and it gets flatter. Because the diode curve is so steep, the Q-point's voltage hardly moves while its current follows the line: a forward-biased diode behaves almost like a voltage source.
Iteration
Two numerical methods solve , with :
- Fixed-point iteration: guess (say ), compute , then a new , and repeat. It converges quickly when is much larger than the diode's own small-signal resistance, which is almost always.
- Newton's method: with . It converges quadratically, roughly doubling the number of correct digits each step. SPICE uses Newton's method (with safeguards) for every nonlinear circuit (Modified Nodal Analysis), and Numerical Methods covers the method itself.
Iterate on the current, not the voltage: an exponential with a wrong voltage guess can produce an absurd current, while the logarithm of a current is always tame.
The small-signal resistance
Once the Q-point is known, small changes around it see the slope of the diode curve. Differentiating the Shockley law,
At a diode with has ; at , . The diode becomes a current-controlled resistor: the bias current sets its small-signal resistance, which is how diode attenuators and the emitter resistance of a transistor work (BJT Small-Signal Models).
The small-signal model of the whole circuit replaces the diode by and every DC source by its AC part (a DC voltage source becomes a short). For a small ripple on the supply,
Worked example
Given: , , the DSIG diode (, , ), and of low-frequency ripple on .
Find: the Q-point, , and the ripple across the diode.
Solve: start the fixed-point iteration at :
Check: the Q-point sits on the load line: . The diode passes only 3.5 % of the ripple; it is a crude voltage regulator, the idea behind the Zener regulator.
In Python
import numpy as np
VS, R = 2.0, 220.0
IS, N, RS, VT = 2.52e-9, 1.752, 0.568, 0.02585
nVT = N * VT
def vd_of_i(i):
return nVT * np.log(i / IS + 1) + RS * i
# 1) fixed-point iteration: guess VD, get I from the resistor, update VD
v = 0.7
for k in range(1, 6):
i = (VS - v) / R
v = vd_of_i(i)
print(f"fixed point {k}: VD = {v:.6f} V, I = {i*1e3:.4f} mA")
# 2) Newton on f(I) = VS - R I - VD(I)
i = (VS - 0.7) / R
for k in range(1, 5):
f = VS - R * i - vd_of_i(i)
df = -R - nVT / (i + IS) - RS
i -= f / df
res = f"{abs(f):.1e} V" if abs(f) > 1e-9 else "< 1e-9 V"
print(f"Newton {k}: I = {i*1e3:.6f} mA, |f| before the step = {res}")
rd = nVT / i + RS
print(f"r_d = nVT/I + RS = {rd:.2f} Ohm")
print(f"100 mV ripple on VS gives {100*rd/(R+rd):.2f} mV on the diode")fixed point 1: VD = 0.667647 V, I = 5.9091 mA
fixed point 2: VD = 0.668844 V, I = 6.0562 mA
fixed point 3: VD = 0.668800 V, I = 6.0507 mA
fixed point 4: VD = 0.668801 V, I = 6.0509 mA
fixed point 5: VD = 0.668801 V, I = 6.0509 mA
Newton 1: I = 6.050847 mA, |f| before the step = 3.2e-02 V
Newton 2: I = 6.050903 mA, |f| before the step = 1.3e-05 V
Newton 3: I = 6.050903 mA, |f| before the step = < 1e-9 V
Newton 4: I = 6.050903 mA, |f| before the step = < 1e-9 V
r_d = nVT/I + RS = 8.05 Ohm
100 mV ripple on VS gives 3.53 mV on the diode
Both methods agree. The residual falls from to to below a nanovolt: quadratic convergence.
Cross-check with SPICE
The operating point, then a one-frequency AC analysis with of AC on the supply. SPICE linearises the diode at the Q-point exactly as above.
cat > ss.cir <<'EOF'
* diode bias point and small-signal response to 100 mV of supply ripple
.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 in 0 DC 2 AC 0.1
R1 in a 220
D1 a 0 DSIG
.control
op
print v(a) i(V1)
ac lin 1 100 100
print vm(a)
.endc
.end
EOF
ngspice -b ss.cir 2>&1 | grep -E '^(v|i)'v(a) = 6.691718e-01
i(v1) = -6.04922e-03
vm(a) = 3.533777e-03
SPICE's is higher (it uses ) and the ripple is the same .
Interactive: the linearised diode
The ee-netlist lab is linear, so here the diode is replaced by its tangent at the Q-point: a source in series with (the tangent line crosses the voltage axis at ). At it reproduces the Q-point exactly: , .
Move and compare with the real diode: at the tangent model gives and , while the Shockley solution is and ; at , against . A linear model is good near its Q-point and drifts away from it, which is exactly what "small signal" means.
Guided lab: find a Q-point and its small-signal resistance
Hand calculation. , , , ripple gain .
Simulation. Python, SPICE and the lab above.
What you would measure. Set a bench supply to (current limit ), wire and a 1N4148-class diode, and read and the resistor's voltage with a multimeter: expect within about of and within 2 %. To see , add a small AC signal: couple a function generator ( peak-to-peak, ) through into the anode node through a second resistor, and measure the AC at the anode with a scope (AC coupling, averaging on). The diode's few millivolts sit near the scope's noise floor, so average 64 or more sweeps; expect between about 6 and once you work back from the divider.
Hazards and safe setup. Low voltage, current-limited supply. Mind the electrolytic capacitor's polarity: its goes to the node with the higher DC voltage (the anode node).
Pitfalls
- Iterating on voltage with the exponential. with a guess of gives about for
DSIG; iterate on current with the logarithm instead. - Using for DC. describes changes around the Q-point; the DC drop is , not .
- Forgetting at high current. At , is 7 % of ; at it dominates.
Practice
- , , diode with , , no . Do two fixed-point steps from .
- What is of that diode at its Q-point?
- Two identical diodes in series replace the one diode in the worked example. Without solving, will the current rise or fall, and what happens to the small-signal ripple on the pair?
Answer
- , ; , .
- .
- The pair drops about twice as much, so less voltage is left for and the current falls (to ). Each diode's rises to about at the lower current, so the pair presents and the ripple across it grows to about , more than double.
Test yourself
The load line of a diode fed from through crosses the current axis at…
A diode with and negligible carries . Its small-signal resistance is about…
In the small-signal model of a diode circuit, a DC voltage source is replaced by…
- an open circuit
- a short circuit
- the diode's
- a current source
Why is Newton's method preferred by SPICE over simple fixed-point iteration?
- it needs no derivative
- it converges quadratically near the solution
- it never fails
- it works only for diodes