Diode modelling

From Wikipedia, the free encyclopedia

In electronics, diode modeling refers to the mathematical models used to approximate the actual behavior of real diodes to enable calculations and circuit analysis. A diode's I-V curve is nonlinear (it is well described by the Shockley diode law). This nonlinearity complicates calculations in circuits involving diodes, so simpler models are often required.

This article discusses the modeling of p-n junction diodes, but the techniques may be generalized to other diodes.

Contents

[edit] Large-signal modeling

[edit] Shockley diode model

The Shockley diode equation relates the diode current I of a p-n junction diode to the diode voltage Vd. This relationship is the diode I-V characteristic:

I=I_S(e^{{V_D}\over{nV_T}}-1),

where IS is the saturation current or scale current of the diode (the magnitude of the current that flows for negative Vd in excess of a few VT, typically 10-12 A). The scale current is proportional to the diode area. Continuing with the symbols: VT is the thermal voltage, and n is known as the diode ideality factor (for silicon diodes n ≈ 1 - 2).

When Vd >> nVT the formula can be simplified to:

I \approx I_S \cdot e^{{V_D}\over{nV_T}}.

[edit] 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.

Figure 1: Diode circuit with resistive load.
Figure 1: Diode circuit with resistive load.

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, which boil down to simply Ohm's law in this case, the current flowing in the circuit is:

I= \begin{matrix} \frac{V_S-V_D}{R}\end{matrix}

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 Vd in terms of Vs. A difficulty with this method is that the diode law is nonlinear. Nonetheless, a formula expressing I directly in terms of Vs without involving Vd can be obtained using the Lambert W-function, which is the inverse function of f(w) = wew, that is, w = W(f). This solution is discussed next.

[edit] 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 = \begin{matrix} \frac{I_SR}{nV_T} \end{matrix} \left(\begin{matrix} \frac {I}{I_S} \end{matrix}+1\right ) .

Following the substitution VD = VSIR, rearrangement of the diode law in terms of w becomes:

w e^w =\begin{matrix}\frac{I_SR}{nV_T}\end{matrix} e^{(V_s+I_sR)/(nV_T)} ,

which using the Lambert W-function becomes:

w = W\left( \begin{matrix}\frac{I_SR}{nV_T}\end{matrix} e^{(V_s+I_sR)/(nV_T)}\right) .

With the approximations (valid for the most common values of the parameters) IsR << VS and I / IS >> 1, this solution becomes:

I \approx \begin{matrix}\frac{n V_T}{R}\end{matrix} W \left(\begin{matrix}\frac{I_s R}{n V_T}\end{matrix} e^{\frac {V_s}{n V_T}}\right).

Once the current is determined, the diode voltage can be found using either of the other equations.

[edit] Iterative solution

The diode voltage Vd can be found in terms of Vs for any particular set of values by an iterative method using a calculator or computer [1] The diode law is rearranged by dividing by IS, and adding '1'. The diode law becomes:

\begin{matrix}\frac {I}{I_S}\end{matrix}+1=e^{{V_D}\over{nV_T}}

By taking natural logarithms of both sides the exponential is removed, and the equation becomes

\begin{matrix}\frac{V_D}{nV_T}\end{matrix} = \ln \left(\begin{matrix}\frac {I}{I_S}\end{matrix}+1\right)

For any I, this equation determines Vd. However, I also must satisfy the Kirchhoff's law equation, given above. This expression is substituted for I to result in the equation below:

\begin{matrix}\frac{V_D}{nV_T}\end{matrix} = \ln \left(\begin{matrix}\frac {\frac{V_S-V_D}{R}}{I_S}\end{matrix}+1\right)

or

V_D = {nV_T} \ln \left(\begin{matrix}\frac {V_S-V_D}{R I_S}\end{matrix}+1\right)  .

The voltage of the source Vs is a known given value, but Vd is on both sides of the equation, which forces an iterative solution: a starting value for Vd 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 Vd. This new value now is substituted on the right side, and so forth. If this iteration converges the values of Vd become closer and closer together as the process continues, and we can stop iteration when the accuracy is sufficient. Once Vd 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 Vd = 600 mV. Sometimes an iterative procedure does not converge at all: in this problem an iteration based on the exponential function does not converge; that is why the equations were rearranged to use a logarithm. Finding a convergent iterative formulation is an art, and every problem is different.

[edit] Graphical solution

Graphical analysis is a simple way to derive a numerical solution to the transcendental equations describing the diode. As with most graphical methods, it has the advantage of easy visualization. By plotting the I-V curves, it is possible to obtain an approximate solution to any arbitrary degree of accuracy. This process is the graphical equivalent of the two previous approaches, which are more amenable to computer implementation.

This method plots the two current-voltage equations on a graph and the point of intersection of the two curves satisfies both equations, giving the value of the current flowing through the circuit and the voltage across the diode. The following figure illustrates such method.

Graphical determination of the operating point through the intersection of the diode characteristic with the resistive load line.
Graphical determination of the operating point through the intersection of the diode characteristic with the resistive load line.

[edit] Piecewise linear model

In practice, the graphical method is complicated and long and is impractical for complex circuits. Another method of modeling a diode is called piecewise linear (PWL) modelling. In mathematics, this means taking a function and breaking it down into several linear segments. The example below shows how a curve can be approximated by three linear segments, forming a three-segment PWL model:

A piecewise linear approximation of a curve.
A piecewise linear approximation of a curve.

The same method is used to approximate the diode characteristic curve into linear segments. This enables us to substitute the real diode for an ideal diode, a voltage source and a resistor. The figure below 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.

A piecewise linear approximation of the diode characteristic.
A piecewise linear approximation of the diode characteristic.

[edit] Mathematically idealized diode

Firstly, let us consider a mathematically idealized diode. In such an ideal diode, if the diode is reverse biased, the current flowing through it zero. This ideal diode starts conducting at 0 V and for any positive voltage an infinite current flows and the diode acts like a short circuit. The I-V characteristics of an ideal diode are shown below:

I-V characteristic of an ideal diode.
I-V characteristic of an ideal diode.

[edit] Ideal diode in series with voltage source

Now let us consider the case when we add a voltage source in series with the diode in the form shown below:

Ideal diode with a series voltage source.
Ideal diode with a series voltage source.

When forward biased, the ideal diode is simply a short circuit and when reverse biased, an open circuit. If the anode of the diode is connected to 0 V, the voltage at the cathode will be at Vt and so the potential at the cathode will be greater than the potential at the anode and the diode will be reverse biased. In order to get the diode to conduct, the voltage at the anode will need to be taken to Vt. This circuit approximates the cut-in voltage present in real diodes. The combined I-V characteristic of this circuit is shown below:

I-V characteristic of and ideal diode with a series voltage source.
I-V characteristic of and ideal diode with a series voltage source.

[edit] Diode with voltage source and current-limiting resistor

The last thing needed is a resistor to limit the current, as shown below:

Ideal diode with a series voltage source and resistor.
Ideal diode with a series voltage source and resistor.

The I-V characteristic of the final circuit looks like this:

I-V characteristic of and ideal diode with a series voltage source and resistor.
I-V characteristic of and ideal diode with a series voltage source and resistor.

The real diode now can be replaced with the combined ideal diode, voltage source and resistor and the circuit then is modeled 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.

[edit] Small-signal modeling

[edit] Resistance

Using the Shockley equation, the small-signal diode resistance rD of the diode can be derived about some operating point (Q-point) where the DC bias current is IQ and the Q-point applied voltage is VQ.[2] To begin, the diode small-signal conductance is found, gD, 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=\begin{matrix}\frac{dI}{dV}\end{matrix}\Big|_Q = \begin{matrix}\frac{I_0}{V_T} e^{V_Q/V_T}\end{matrix}  \approx \begin{matrix} \frac{I_Q}{V_T}\end{matrix}

The latter approximation assumes that the bias current IQ 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 VT ≈ 26 mV at 300K, so VQ/VT tends to be large, meaning that the exponential is very large.

Noting that the small-signal resistance rD 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=\begin{matrix}\frac {V_T}{I_Q}\end{matrix} .

[edit] Capacitance

The charge in the diode carrying current IQ is known to be

Q = IQτF + QJ

where τF is the forward transit time of charge carriers:[2] The first term in the charge is the charge in transit across the diode when the current IQ 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 = \begin{matrix}\frac{dQ}{dV_Q}\end{matrix}  =\begin{matrix}\frac{dI_Q}{dV_Q}\end{matrix}{{\tau}_F} + \begin{matrix}\frac {dQ_J}{dV_Q}\end{matrix} \approx \begin{matrix}\frac {I_Q}{V_T}\end{matrix} {\tau}_F+ C_J ,

where  C_J = \begin{matrix}\frac {dQ_J}{dV_Q}\end{matrix} is the junction capacitance and the first term is called the diffusion capacitance, because it is related to the current diffusing through the junction.

[edit] References

  1. ^ . A.S. Sedra and K.C. Smith (2004). Microelectronic Circuits, Fifth Edition, New York: Oxford, Example 3.4 p. 154. ISBN 0-19-514251-9. 
  2. ^ a b R.C. Jaeger and T.N. Blalock (2004). Microelectronic Circuit Design, second ed., McGraw-Hill. ISBN 0-07-232099-0. 

[edit] See also