TExcelTAD
Home › Analog Electronics: Diodes, Transistors & Op-Amps › Solving Diode Circuits: Load Lines, Iteration and Small-Signal Resistance

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 I=(VS−VD)/RI = (V_S - V_D)/R, the diode wants I=ISeVD/(nVT)I = I_S e^{V_D/(nV_T)}, 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 VSV_S behind RR (Thevenin and Norton Equivalents). KVL gives the load line, a straight line in the diode's II-VV plane:

ID=VS−VDRI_D = \frac{V_S - V_D}{R}

It meets the current axis at VS/RV_S/R (diode shorted) and the voltage axis at VSV_S (diode open). The operating point or Q-point is where it crosses the diode curve.

00.51.01.52.0 VD (V) 0510 mA Q (0.669 V, 6.05 mA) diode (DSIG) load line, slope -1/R VS/R = 9.09 mA

The graph makes the design trade-offs visible. Raise VSV_S and the line moves up parallel to itself; raise RR 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 f(I)=VS−IR−VD(I)=0f(I) = V_S - IR - V_D(I) = 0, with VD(I)=nVTln⁡(I/IS+1)+IRSV_D(I) = nV_T \ln(I/I_S + 1) + IR_S:

  • Fixed-point iteration: guess VDV_D (say 0.7 V0.7\ \text{V}), compute I=(VS−VD)/RI = (V_S - V_D)/R, then a new VD=VD(I)V_D = V_D(I), and repeat. It converges quickly when RR is much larger than the diode's own small-signal resistance, which is almost always.
  • Newton's method: Ik+1=Ik−f(Ik)/f′(Ik)I_{k+1} = I_k - f(I_k)/f'(I_k) with f′(I)=−R−nVT/(I+IS)−RSf'(I) = -R - nV_T/(I + I_S) - R_S. 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,

rd=dVDdID∣Q=nVTID+IS+RS≈nVTID+RSr_d = \frac{dV_D}{dI_D}\bigg|_Q = \frac{nV_T}{I_D + I_S} + R_S \approx \frac{nV_T}{I_D} + R_S

At 1 mA1\ \text{mA} a diode with n=1n = 1 has rd=25.85 Ωr_d = 25.85\ \Omega; at 10 mA10\ \text{mA}, 2.6 Ω2.6\ \Omega. The diode becomes a current-controlled resistor: the bias current sets its small-signal resistance, which is how diode attenuators and the emitter resistance rer_e of a transistor work (BJT Small-Signal Models).

The small-signal model of the whole circuit replaces the diode by rdr_d and every DC source by its AC part (a DC voltage source becomes a short). For a small ripple vsv_s on the supply,

vd=vs⋅rdR+rdv_d = v_s \cdot \frac{r_d}{R + r_d}

Worked example

Given: VS=2 VV_S = 2\ \text{V}, R=220 ΩR = 220\ \Omega, the DSIG diode (IS=2.52 nAI_S = 2.52\ \text{nA}, n=1.752n = 1.752, RS=0.568 ΩR_S = 0.568\ \Omega), and 100 mV100\ \text{mV} of low-frequency ripple on VSV_S.

Find: the Q-point, rdr_d, and the ripple across the diode.

Solve: start the fixed-point iteration at 0.7 V0.7\ \text{V}:

I1=2−0.7220 A=5.909 mA,VD1=45.29 mV⋅ln⁡5.909 mA2.52 nA+3.4 mV=0.6676 VI2=2−0.6676220 A=6.056 mA,VD2=0.6688 V(converged to 0.1 mV)rd=45.29 mV6.051 mA+0.568 Ω=8.05 Ω,vd=100 mV⋅8.05228.05=3.53 mV\begin{aligned} I_1 &= \frac{2 - 0.7}{220}\ \text{A} = 5.909\ \text{mA}, & V_{D1} &= 45.29\ \text{mV} \cdot \ln\frac{5.909\ \text{mA}}{2.52\ \text{nA}} + 3.4\ \text{mV} = 0.6676\ \text{V} \\ I_2 &= \frac{2 - 0.6676}{220}\ \text{A} = 6.056\ \text{mA}, & V_{D2} &= 0.6688\ \text{V} \quad (\text{converged to } 0.1\ \text{mV}) \\ r_d &= \frac{45.29\ \text{mV}}{6.051\ \text{mA}} + 0.568\ \Omega = 8.05\ \Omega, & v_d &= 100\ \text{mV} \cdot \frac{8.05}{228.05} = 3.53\ \text{mV} \end{aligned}

Check: the Q-point sits on the load line: (2−0.6688)/220=6.051 mA(2 - 0.6688)/220 = 6.051\ \text{mA}. The diode passes only 3.5 % of the ripple; it is a crude voltage regulator, the idea behind the Zener regulator.

In Python

python · try it yourself
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 32 mV32\ \text{mV} to 13 μV13\ \mu\text{V} to below a nanovolt: quadratic convergence.

Cross-check with SPICE

The operating point, then a one-frequency AC analysis with 0.1 V0.1\ \text{V} of AC on the supply. SPICE linearises the diode at the Q-point exactly as above.

bash · try it yourself
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 VDV_D is 0.4 mV0.4\ \text{mV} higher (it uses T=300.15 KT = 300.15\ \text{K}) and the ripple is the same 3.53 mV3.53\ \text{mV}.

Interactive: the linearised diode

The ee-netlist lab is linear, so here the diode is replaced by its tangent at the Q-point: a 0.6201 V0.6201\ \text{V} source in series with rd=8.05 Ωr_d = 8.05\ \Omega (the tangent line crosses the voltage axis at 0.6688−8.05⋅0.006051=0.6201 V0.6688 - 8.05 \cdot 0.006051 = 0.6201\ \text{V}). At V1=2 VV_1 = 2\ \text{V} it reproduces the Q-point exactly: V(a)=0.669 VV(a) = 0.669\ \text{V}, I=6.05 mAI = 6.05\ \text{mA}.

node voltages (to ground 0)in2.000 Va668.8 mVk620.1 mVnetlistV1 in 0 2R1 in a 220RD a k 8.05VD k 0 0.6201element currents (node 1 to node 2 through it)V1in>0-6.05 mAR1in>a6.05 mARDa>k6.05 mAVDk>06.05 mA

Move V1V_1 and compare with the real diode: at 3 V3\ \text{V} the tangent model gives 0.704 V0.704\ \text{V} and 10.44 mA10.44\ \text{mA}, while the Shockley solution is 0.696 V0.696\ \text{V} and 10.47 mA10.47\ \text{mA}; at 1 V1\ \text{V}, 0.634 V0.634\ \text{V} against 0.611 V0.611\ \text{V}. 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. VD≈0.67 VV_D \approx 0.67\ \text{V}, ID≈6.05 mAI_D \approx 6.05\ \text{mA}, rd≈8 Ωr_d \approx 8\ \Omega, ripple gain 0.0350.035.

Simulation. Python, SPICE and the lab above.

What you would measure. Set a bench supply to 2.00 V2.00\ \text{V} (current limit 50 mA50\ \text{mA}), wire 220 Ω220\ \Omega and a 1N4148-class diode, and read VDV_D and the resistor's voltage with a multimeter: expect VDV_D within about ±20 mV\pm 20\ \text{mV} of 0.67 V0.67\ \text{V} and IDI_D within 2 %. To see rdr_d, add a small AC signal: couple a function generator (200 mV200\ \text{mV} peak-to-peak, 1 kHz1\ \text{kHz}) through 10 μF10\ \mu\text{F} into the anode node through a second 220 Ω220\ \Omega 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 rdr_d between about 6 and 10 Ω10\ \Omega 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. I=ISeV/(nVT)I = I_S e^{V/(nV_T)} with a guess of 1 V1\ \text{V} gives about 10 A10\ \text{A} for DSIG; iterate on current with the logarithm instead.
  • Using rdr_d for DC. rdr_d describes changes around the Q-point; the DC drop is VDV_D, not IDrdI_D r_d.
  • Forgetting RSR_S at high current. At 6 mA6\ \text{mA}, RSR_S is 7 % of rdr_d; at 50 mA50\ \text{mA} it dominates.

Practice

  1. VS=5 VV_S = 5\ \text{V}, R=1 kΩR = 1\ \text{k}\Omega, diode with n=1n = 1, IS=10 fAI_S = 10\ \text{fA}, no RSR_S. Do two fixed-point steps from 0.7 V0.7\ \text{V}.
  2. What is rdr_d of that diode at its Q-point?
  3. 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
  1. I1=4.3 mAI_1 = 4.3\ \text{mA}, V1=25.85 mV⋅ln⁡(4.3 mA/10 fA)=0.6924 VV_1 = 25.85\ \text{mV} \cdot \ln(4.3\ \text{mA}/10\ \text{fA}) = 0.6924\ \text{V}; I2=4.308 mAI_2 = 4.308\ \text{mA}, V2=0.6925 VV_2 = 0.6925\ \text{V}.
  2. rd=25.85 mV/4.308 mA=6.0 Ωr_d = 25.85\ \text{mV}/4.308\ \text{mA} = 6.0\ \Omega.
  3. The pair drops about twice as much, so less voltage is left for RR and the current falls (to 3.28 mA3.28\ \text{mA}). Each diode's rdr_d rises to about 14 Ω14\ \Omega at the lower current, so the pair presents 28.8 Ω28.8\ \Omega and the ripple across it grows to about 11.6 mV11.6\ \text{mV}, more than double.

Test yourself

The load line of a diode fed from VSV_S through RR crosses the current axis at…

  1. VSV_S
  2. VS/RV_S/R
  3. ISI_S
  4. 0.7/R0.7/R

A diode with n=1n = 1 and negligible RSR_S carries 2 mA2\ \text{mA}. Its small-signal resistance is about…

  1. 350 Ω350\ \Omega
  2. 51.7 Ω51.7\ \Omega
  3. 12.9 Ω12.9\ \Omega
  4. 0.35 Ω0.35\ \Omega

In the small-signal model of a diode circuit, a DC voltage source is replaced by…

  1. an open circuit
  2. a short circuit
  3. the diode's rdr_d
  4. a current source

Why is Newton's method preferred by SPICE over simple fixed-point iteration?

  1. it needs no derivative
  2. it converges quadratically near the solution
  3. it never fails
  4. it works only for diodes