Diode modelling
In electronics, diode modelling refers to the mathematical models used to approximate the actual behaviour of real diodes to enable calculations and circuit analysis.
≈ 10 min read
Names in other languages
No names in other languages are held for this entry yet.
Article bodies are English and are not machine-translated. A name in another language is not a translation of the article.
In electronics, diode modelling refers to the mathematical models used to approximate the actual behaviour of real diodes to enable calculations and circuit analysis. A diode's I-V curve is nonlinear.
A very accurate, but complicated, physical model composes the I-V curve from three exponentials with a slightly different steepness (i.e. ideality factor), which correspond to different recombination mechanisms in the device; at very large and very tiny currents the curve can be continued by linear segments (i.e. resistive behaviour). In a relatively good approximation a diode is modelled by the single-exponential Shockley diode law.
This nonlinearity still complicates calculations in circuits involving diodes so even simpler models are often used. This article discusses the modelling of p-n junction diodes, but the techniques may be generalized to other solid state diodes.
Shockley diode model
The Shockley diode equation relates the diode current I of a p-n junction diode to the diode voltage V_D . This relationship is the diode I-V characteristic: I = I_S\left(e^\frac{V_D}{nV_\text{T}} - 1\right) , where I_S is the saturation current or scale current of the diode (the magnitude of the current that flows for negative V_D in excess of a few V_\text{T} , typically 10 −12 A). The scale current is proportional to the cross-sectional area of the diode. Continuing with the symbols: V_\text{T} is the thermal voltage ( kT/q , about 26 mV at normal temperatures), and n is known as the diode ideality factor (for silicon diodes n is approximately 1 to 2).
When V_D\gg nV_\text{T} the formula can be simplified to: I \approx I_S \cdot e^\frac{V_D}{nV_\text{T}} . This expression is, however, only an approximation of a more complex I-V characteristic. Its applicability is particularly limited in case of ultra-shallow junctions, for which better analytical models exist.
Diode-resistor circuit example
To illustrate the complications in using this law, consider the problem of finding the voltage across the diode in Figure 1. Because the current flowing through the diode is the same as the current throughout the entire circuit, we can lay down another equation. By Kirchhoff's laws, the current flowing in the circuit is I = \frac{V_S - V_D}{R} .
These two equations determine the diode current and the diode voltage. To solve these two equations, we could substitute the current I from the second equation into the first equation, and then try to rearrange the resulting equation to get V_D in terms of V_S . A difficulty with this method is that the diode law is nonlinear.
Nonetheless, a formula expressing I directly in terms of V_S without involving V_D can be obtained using the Lambert W-function, which is the inverse function of f(w) = we^w , that is, w = W(f) . This solution is discussed next.
Explicit solution
An explicit expression for the diode current can be obtained in terms of the Lambert W-function (also called the Omega function). A guide to these manipulations follows. A new variable w is introduced as w = \frac{I_SR}{nV_\text{T}} \left(\frac {I}{I_S} + 1\right) .
Following the substitutions I/I_S = e^{V_D/nV_\text{T}} - 1 : w e^w = \frac{I_SR}{nV_\text{T}} e^\frac{V_D}{nV_\text{T}} e^{\frac{I_SR}{nV_\text{T}} \left(\frac{I}{I_S} + 1 \right)} and V_D = V_S - IR : w e^w = \frac{I_SR}{nV_\text{T}} e^\frac{V_S}{nV_\text{T}} e^{\frac{-IR}{nV_\text{T}}} e^{\frac{IR I_S}{nV_\text{T} I_S}} e^\frac{I_SR}{nV_\text{T}} rearrangement of the diode law in terms of w becomes: w e^w =\frac{I_SR}{nV_\text{T}} e^\frac{V_s + I_sR}{nV_\text{T}} , which using the Lambert W -function becomes w = W\left( \frac{I_SR}{nV_\text{T}} e^\frac{V_s + I_sR}{nV_\text{T}}\right) . The final explicit solution being I = \frac{n V_\text{T}}{R} W\left( \frac{I_SR}{nV_\text{T}} e^\frac{V_s + I_sR}{nV_\text{T}}\right) -I_S . With the approximations (valid for the most common values of the parameters) I_sR \ll V_S and I/I_S \gg 1 , this solution becomes I \approx \frac{n V_\text{T}}{R} W \left(\frac{I_S R}{n V_\text{T}} e^\frac{V_s}{n V_\text{T}}\right) .
Once the current is determined, the diode voltage can be found using either of the other equations. For large x, W(x) can be approximated by W(x) = \ln x - \ln\ln x + o(1) . For common physical parameters and resistances, \frac{I_S R}{n V_\text{T}} e^\frac{V_s}{n V_\text{T}} will be on the order of 10 40 . e^\frac{V_D}{nV_\text{T}} = \frac{I}{I_S} + 1 .
By taking natural logarithms of both sides the exponential is removed, and the equation becomes \frac{V_D}{nV_\text{T}} = \ln \left(\frac{I}{I_S} + 1\right) . For any I , this equation determines V_D . However, I also must satisfy the Kirchhoff's law equation, given above.
This expression is substituted for I to obtain \frac{V_D}{nV_\text{T}} = \ln \left(\frac {V_S - V_D}{R I_S} + 1\right) , or V_D = nV_\text{T} \ln \left(\frac{V_S - V_D}{R I_S} + 1\right) . The voltage of the source V_S is a known given value, but V_D is on both sides of the equation, which forces an iterative solution: a starting value for V_D is guessed and put into the right side of the equation.
Carrying out the various operations on the right side, we come up with a new value for V_D . This new value now is substituted on the right side, and so forth. If this iteration converges the values of V_D become closer and closer together as the process continues, and we can stop iteration when the accuracy is sufficient.
Once V_D is found, I can be found from the Kirchhoff's law equation. Sometimes an iterative procedure depends critically on the first guess. In this example, almost any first guess will do, say V_D = 600\,\text{mV} .
Sometimes an iterative procedure does not converge at all: in this problem an iteration based on the exponential function does not converge, and that is why the equations were rearranged to use a logarithm. Finding a convergent iterative formulation is an art, and every problem is different.
Piecewise linear model
In practice, the graphical method is complicated and impractical for complex circuits. Another method of modelling a diode is called piecewise linear (PWL) modelling. In mathematics, this means taking a function and breaking it down into several linear segments.
This method is used to approximate the diode characteristic curve as a series of linear segments. The real diode is modelled as 3 components in series: an ideal diode, a voltage source and a resistor. The figure shows a real diode I-V curve being approximated by a two-segment piecewise linear model.
Typically the sloped line segment would be chosen tangent to the diode curve at the Q-point. Then the slope of this line is given by the reciprocal of the small-signal resistance of the diode at the Q-point. &I = I_S \left( e^\frac{V_D}{n \cdot V_\text{T}} - 1 \right) \\ \Leftrightarrow {} &\ln \left( 1 + \frac{I}{I_S} \right) = \frac{V_D}{n \cdot V_\text{T}} \\ \Leftrightarrow {} &V_D = n \cdot V_\text{T} \ln\left(1+\frac{I}{I_S}\right) \approx n \cdot V_\text{T} \ln \left( \frac{I}{I_S} \right) \\ \Leftrightarrow {} &V_D \approx n \cdot V_\text{T} \cdot \ln{10} \cdot \log_{10}{\left( \frac{I}{I_S} \right)} \end{align} Using n = 1 and T = 25\,\text{°C} : V_D \approx 0.05916 \cdot \log_{10}{\left( \frac{I}{I_S} \right)} Typical values of the saturation current at room temperature are: I_S = 10^{-12} \text{A} for silicon diodes; I_S = 10^{-6} \text{A} for germanium diodes.
As the variation of V_D goes with the logarithm of the ratio \frac{I}{I_S} , its value varies very little for a big variation of the ratio. The use of base 10 logarithms makes it easier to think in orders of magnitude. For a current of 1.0 mA: V_D \approx 0.53\,\text{V} for silicon diodes (9 orders of magnitude); V_D \approx 0.18\,\text{V} for germanium diodes (3 orders of magnitude).
For a current of 100 mA: V_D \approx 0.65\,\text{V} for silicon diodes (11 orders of magnitude); V_D \approx 0.30\,\text{V} for germanium diodes (5 orders of magnitude). Values of 0.6 or 0.7 volts are commonly used for silicon diodes.
Diode with voltage source and current-limiting resistor
The last thing needed is a resistor to limit the current, as shown below: The I-V characteristic of the final circuit looks like this: The real diode now can be replaced with the combined ideal diode, voltage source and resistor and the circuit then is modelled using just linear elements. If the sloped-line segment is tangent to the real diode curve at the Q-point, this approximate circuit has the same small-signal circuit at the Q-point as the real diode.
Resistance
Using the Shockley equation, the small-signal diode resistance r_D of the diode can be derived about some operating point (Q-point) where the DC bias current is I_Q and the Q-point applied voltage is V_Q . To begin, the diode small-signal conductance g_D is found, that is, the change in current in the diode caused by a small change in voltage across the diode, divided by this voltage change, namely: g_D = \left.\frac{dI}{dV}\right|_Q = \frac{I_s}{n \cdot V_\text{T}} e^\frac{V_Q}{n \cdot V_\text{T}} \approx \frac{I_Q}{n \cdot V_\text{T}} . The latter approximation assumes that the bias current I_Q is large enough so that the factor of 1 in the parentheses of the Shockley diode equation can be ignored.
This approximation is accurate even at rather small voltages, because the thermal voltage V_\text{T} \approx 25\,\text{mV} at 300 K, so V_Q/V_\text{T} tends to be large, meaning that the exponential is very large. Noting that the small-signal resistance r_D is the reciprocal of the small-signal conductance just found, the diode resistance is independent of the ac current, but depends on the dc current, and is given as r_D = \frac{n \cdot V_\text{T}}{I_Q} .
Capacitance
The charge in the diode carrying current I_Q is known to be Q = I_Q\tau_F + Q_J , where \tau_F is the forward transit time of charge carriers: The first term in the charge is the charge in transit across the diode when the current I_Q flows. The second term is the charge stored in the junction itself when it is viewed as a simple capacitor; that is, as a pair of electrodes with opposite charges on them.
It is the charge stored on the diode by virtue of simply having a voltage across it, regardless of any current it conducts. In a similar fashion as before, the diode capacitance is the change in diode charge with diode voltage: C_D = \frac{dQ}{dV_Q} = \frac{dI_Q}{dV_Q} \tau_F + \frac{dQ_J}{dV_Q} \approx \frac{I_Q}{V_\text{T}} \tau_F + C_J , where C_J = \frac{dQ_J}{dV_Q} is the junction capacitance and the first term is called the diffusion capacitance, because it is related to the current diffusing through the junction.
See also
Bipolar junction transistor Semiconductor device modelling
Text derived from https://en.wikipedia.org/w/index.php?oldid=1372598875 under CC BY-SA 4.0; modifications have been made.