# p–n diode

This article provides a more detailed explanation of p–n diode behavior than that found in the articles p–n junction or diode.

A p–n diode is a type of semiconductor diode based upon the p–n junction. The diode conducts current in only one direction, and it is made by joining a p-type semiconducting layer to an n-type semiconducting layer. Semiconductor diodes have multiple uses including rectification of alternating current to direct current, detection of radio signals, emitting light and detecting light.

## Structure

The figure shows two of the many possible structures used for p–n semiconductor diodes, both adapted to increase the voltage the devices can withstand in reverse bias. The top structure uses a mesa to avoid a sharp curvature of the p+-region next to the adjoining n-layer. The bottom structure uses a lightly doped p-guard-ring at the edge of the sharp corner of the p+-layer to spread the voltage out over a larger distance and reduce the electric field. (Superscripts like n+ or n refer to heavier or lighter impurity doping levels.)

Mesa diode structure (top) and planar diode structure with guard-ring (bottom).

## Electrical behavior

Nonideal p–n diode current-voltage characteristics.

The ideal diode has zero resistance for the forward bias polarity, and infinite resistance (conducts zero current) for the reverse voltage polarity; if connected in an alternating current circuit, the semiconductor diode acts as an electrical rectifier.

The semiconductor diode is not ideal. As shown in the figure, the diode does not conduct appreciably until a nonzero knee voltage (also called the turn-on voltage or the cut-in voltage) is reached. Above this voltage the slope of the current-voltage curve is not infinite (on-resistance is not zero). In the reverse direction the diode conducts a nonzero leakage current (exaggerated by a smaller scale in the figure) and at a sufficiently large reverse voltage below the breakdown voltage the current increases very rapidly with more negative reverse voltages.

As shown in the figure, the on and off resistances are the reciprocal slopes of the current-voltage characteristic at a selected bias point:

${\displaystyle r_{D}=\left.{\frac {\Delta v_{D}}{\Delta i_{D}}}\right|_{v_{D}=V_{BIAS}}\ ,}$

where rD is the resistance and ΔiD is the current change corresponding to the diode voltage change ΔvD at the bias vD=VBIAS.

## Operation

An abrupt p–n diode made by doping silicon.

Here, the operation of the abrupt p–n diode is considered. By "abrupt" is meant that the p- and n-type doping exhibit a step function discontinuity at the plane where they encounter each other. The objective is to explain the various bias regimes in the figure displaying current-voltage characteristics. Operation is described using band-bending diagrams that show how the lowest conduction band energy and the highest valence band energy vary with position inside the diode under various bias conditions. For additional discussion, see the articles Semiconductor and Band diagram.

### Zero bias

Band-bending diagram for p–n diode at zero applied voltage. The depletion region is shaded.

The figure shows a band bending diagram for a p–n diode; that is, the band edges for the conduction band (upper line) and the valence band (lower line) are shown as a function of position on both sides of the junction between the p-type material (left side) and the n-type material (right side). When a p-type and an n-type region of the same semiconductor are brought together and the two diode contacts are short-circuited, the Fermi half-occupancy level (dashed horizontal straight line) is situated at a constant level. This level ensures that in the field-free bulk on both sides of the junction the hole and electron occupancies are correct. (So, for example, it is not necessary for an electron to leave the n-side and travel to the p-side through the short circuit to adjust the occupancies.)

However, a flat Fermi level requires the bands on the p-type side to move higher than the corresponding bands on the n-type side, forming a step or barrier in the band edges, labeled φB. This step forces the electron density on the p-side to be a Boltzmann factor exp(−φB/Vth) smaller than on the n-side, corresponding to the lower electron density in p-region. The symbol Vth denotes the thermal voltage, defined as Vth = kBT/q. At T = 290 kelvins (room temperature), the thermal voltage is approximately 25 mV. Similarly, hole density on the n-side is a Boltzmann factor smaller than on the p-side. This reciprocal reduction in minority carrier density across the junction forces the pn-product of carrier densities to be

${\displaystyle pn=p_{B}n_{B}\,e^{-\varphi _{\mathrm {B} }/V_{\mathrm {th} }}}$

at any position within the diode at equilibrium.[1] Where pB and nB are the bulk majority carrier densities on the p-side and the n-side, respectively.

As a result of this step in band edges, a depletion region near the junction becomes depleted of both holes and electrons, forming an insulating region with almost no mobile charges. There are, however, fixed, immobile charges due to dopant ions. The near absence of mobile charge in the depletion layer means that the mobile charges present are insufficient to balance the immobile charge contributed by the dopant ions: a negative charge on the p-type side due to acceptor dopant and as a positive charge on the n-type side due to donor dopant. Because of this charge there is an electric field in this region, as determined by Poisson's equation. The width of the depletion region adjusts so the negative acceptor charge on the p-side exactly balances the positive donor charge on the n-side, so there is no electric field outside the depletion region on either side.

In this band configuration no voltage is applied and no current flows through the diode. To force current through the diode a forward bias must be applied, as described next.

### Forward bias

Band-bending diagram for p–n diode in forward bias. Diffusion drives carriers across the junction.
Quasi-Fermi levels and carrier densities in forward biased p–n- diode. The figure assumes recombination is confined to the regions where majority carrier concentration is near the bulk values, which is not accurate when recombination-generation centers in the field region play a role.

In forward bias, positive terminal of the battery is connected to the p- type material and negative terminal is connected to the n- type material so that holes are injected into the p-type material and electrons into the n-type material. The electrons in the n-type material are called majority carriers on that side, but electrons that make it to the p-type side are called minority carriers. The same descriptors apply to holes: they are majority carriers on the p-type side, and minority carriers on the n-type side.

A forward bias separates the two bulk half-occupancy levels by the amount of the applied voltage, which lowers the separation of the p-type bulk band edges to be closer in energy to those of the n-type. As shown in the diagram, the step in band edges is reduced by the applied voltage to φB−vD. (The band bending diagram is made in units of volts, so no electron charge appears to convert vD to energy.)

Under forward bias, a diffusion current flows (that is a current driven by a concentration gradient) of holes from the p-side into the n-side, and of electrons in the opposite direction from the n-side to the p-side. The gradient driving this transfer is set up as follows: in the bulk distant from the interface, minority carriers have a very low concentration compared to majority carriers, for example, electron density on the p-side (where they are minority carriers) is a factor exp(−φB/Vth) lower than on the n-side (where they are majority carriers). On the other hand, near the interface, application of voltage vD reduces the step in band edges and increases minority carrier densities by a Boltzmann factor exp(vD/Vth) above the bulk values. Within the junction, the pn-product is increased above the equilibrium value to:[1]

${\displaystyle pn=\left(p_{B}n_{B}\ e^{-\varphi _{B}/V_{th}}\right)\ e^{v_{D}/V_{th}}\ .}$

The gradient driving the diffusion is then the difference between the large excess minority carrier densities at the barrier and the low densities in the bulk, and that gradient drives diffusion of minority carriers from the interface into the bulk. The injected minority carriers are reduced in number as they travel into the bulk by recombination mechanisms that drive the excess concentrations toward the bulk values.

Recombination can occur by direct encounter with a majority carrier, annihilating both carriers, or through a recombination-generation center, a defect that alternately traps holes and electrons, assisting recombination. The minority carriers have a limited lifetime, and this lifetime in turn limits how far they can diffuse from the majority carrier side into the minority carrier side, the so-called diffusion length. In the LED recombination of electrons and holes is accompanied by emission of light of a wavelength related to the energy gap between valence and conduction bands, so the diode converts a portion of the forward current into light.

Under forward bias, the half-occupancy lines for holes and electrons cannot remain flat throughout the device as they are when in equilibrium, but become quasi-Fermi levels that vary with position. As shown in the figure, the electron quasi-Fermi level shifts with position, from the half-occupancy equilibrium Fermi level in the n-bulk, to the half-occupancy equilibrium level for holes deep in the p-bulk. The hole quasi-Fermi level does the reverse. The two quasi-Fermi levels do not coincide except deep in the bulk materials.

The figure shows the majority carrier densities drop from the majority carrier density levels nB, pB in their respective bulk materials, to a level a factor exp(−(φB−vD)/Vth) smaller at the top of the barrier, which is reduced from the equilibrium value φB by the amount of the forward diode bias vD. Because this barrier is located in the oppositely doped material, the injected carriers at the barrier position are now minority carriers. As recombination takes hold, the minority carrier densities drop with depth to their equilibrium values for bulk minority carriers, a factor exp(−φB/Vth) smaller than their bulk densities nB, pB as majority carriers before injection. At this point the quasi-Fermi levels rejoin the bulk Fermi level positions.

The reduced step in band edges also means that under forward bias the depletion region narrows as holes are pushed into it from the p-side and electrons from the n-side.

In the simple p–n diode the forward current increases exponentially with forward bias voltage due to the exponential increase in carrier densities, so there is always some current at even very small values of applied voltage. However, if one is interested in some particular current level, it will require a "knee" voltage before that current level is reached. For example, a very common choice in texts about circuits using silicon diodes is VKnee = 0.7 V.[2] Above the knee, the current continues to increase exponentially. Some special diodes, such as some varactors, are designed deliberately to maintain a low current level up to some knee voltage in the forward direction.

### Reverse bias

Band-bending for p–n diode in reverse bias
Quasi-Fermi levels in reverse-biased p–n diode.

In reverse bias the occupancy level for holes again tends to stay at the level of the bulk p-type semiconductor while the occupancy level for electrons follows that for the bulk n-type. In this case, the p-type bulk band edges are raised relative to the n-type bulk by the reverse bias vR, so the two bulk occupancy levels are separated again by an energy determined by the applied voltage. As shown in the diagram, this behavior means the step in band edges is increased to φB+vR, and the depletion region widens as holes are pulled away from it on the p-side and electrons on the n-side.

When the reverse bias is applied, the electric field in the depletion region is increased, pulling the electrons and holes further apart than in the zero bias case. Thus, any current that flows is due to the very weak process of carrier generation inside the depletion region due to generation-recombination defects in this region. That very small current is the source of the leakage current under reverse bias. In the photodiode, reverse current is introduced using creation of holes and electrons in the depletion region by incident light, thus converting a portion of the incident light into an electric current.

When the reverse bias becomes very large, reaching the breakdown voltage, the generation process in the depletion region accelerates leading to an avalanche condition which can cause runaway and destroy the diode.

### Diode law

The DC current-voltage behavior of the ideal p–n diode is governed by the Shockley diode equation:[3]

${\displaystyle i_{\mathrm {D} }=I_{\mathrm {R} }\left(e^{v_{\mathrm {D} }/V_{\mathrm {th} }}-1\right),}$

where vD is the DC voltage across the diode and IR is the reverse saturation current, the current that flows when the diode is reverse biased (that is, vD is large and negative). The quantity Vth is the thermal voltage defined as Vth = kBT/q. This is approximately equal to 25 mV at T = 290 kelvins.

This equation does not model the non-ideal behavior such as excess reverse leakage or breakdown phenomena. In many practical diodes this equation must be modified to read

${\displaystyle i_{D}=I_{R}\left(e^{v_{\mathrm {D} }/nV_{\mathrm {th} }}-1\right),}$

where n is an ideality factor introduced to model a slower rate of increase than predicted by the ideal diode law. Using this equation, the diode on-resistance is

${\displaystyle r_{\mathrm {D} }={\frac {1}{di_{\mathrm {D} }/dv_{\mathrm {D} }}}\approx {\frac {nV_{\mathrm {th} }}{i_{\mathrm {D} }}},}$

exhibiting a lower resistance the higher the current.

### Capacitance

The depletion layer between the n- and p-sides of a p–n-diode serves as an insulating region that separates the two diode contacts. Thus, the diode in reverse bias exhibits a depletion-layer capacitance, sometimes more vaguely called a junction capacitance, analogous to a parallel plate capacitor with a dielectric spacer between the contacts. In reverse bias the width of the depletion layer is widened with increasing reverse bias vR, and the capacitance is accordingly decreased. Thus, the junction serves as a voltage-controllable capacitor. In a simplified one-dimensional model, the junction capacitance is:

${\displaystyle C_{J}=\kappa \varepsilon _{0}{\frac {A}{w(v_{R})}}\ ,}$

with A the device area, κ the relative semiconductor dielectric permittivity, ε0 the electric constant, and w the depletion width (thickness of the region where mobile carrier density is negligible).

In forward bias, besides the above depletion-layer capacitance, minority carrier charge injection and diffusion occurs. A diffusion capacitance exists expressing the change in minority carrier charge that occurs with a change in forward bias. In terms of the stored minority carrier charge, the diode current iD is:

${\displaystyle i_{D}={\frac {Q_{D}}{\tau _{T}}}\ ,}$

where QD is the charge associated with diffusion of minority carriers, and τT is the transit time, the time taken for the minority charge to transit the injection region. Typical values for transit time are 0.1–100 ns.[4] On this basis, the diffusion capacitance is calculated to be:

${\displaystyle C_{D}={\frac {dQ_{D}}{dv_{D}}}=\tau _{T}{\frac {di_{D}}{dv_{D}}}={\frac {i_{D}\tau _{T}}{V_{th}}}\ .}$

Generally speaking, for usual current levels in forward bias, this capacitance far exceeds the depletion-layer capacitance.

### Transient response

Small-signal circuit for p–n diode driven by a current signal represented as a Norton source.

The diode is a highly non-linear device, but for small-signal variations its response can be analyzed using a small-signal circuit based upon the DC bias about which the signal is imagined to vary. The equivalent circuit is shown at the right for a diode driven by a Norton source. Using Kirchhoff's current law at the output node:

${\displaystyle I_{S}=\left(j\omega (C_{J}+C_{D})+{\frac {1}{r_{D}}}+{\frac {1}{R_{S}}}\right)V_{O}\ ,}$

with CD the diode diffusion capacitance, CJ the diode junction capacitance (the depletion layer capacitance) and rD the diode resistance, all at the selected quiescent bias point or Q-point. The output voltage provided by this circuit is then:

${\displaystyle {\frac {V_{O}}{I_{S}}}={\frac {(R_{S}{\mathit {\parallel }}r_{D})}{1+j\omega (C_{D}+C_{J})(R_{S}{\mathit {\parallel }}r_{D})}}\ ,}$

with (RS||rD) the parallel combination of RS and rD. This transresistance amplifier exhibits a corner frequency, denoted fC:

${\displaystyle f_{C}={\frac {1}{2\pi (C_{D}+C_{J})(R_{S}{\mathit {\parallel }}r_{D})}}\ ,}$

and for frequencies f >> fC the gain rolls off with frequency as the capacitors short-circuit the resistor rD. Assuming, as is the case when the diode is turned on, that CD>>CJ and RS>>rD, the expressions found above for the diode resistance and capacitance provide:

${\displaystyle f_{C}={\frac {1}{2\pi n\tau _{T}}}\ ,}$

which relates the corner frequency to the diode transit time τT.

For diodes operated in reverse bias, CD is zero and the term corner frequency often is replaced by cutoff frequency. In any event, in reverse bias the diode resistance becomes quite large, although not infinite as the ideal diode law suggests, and the assumption that it is less than the Norton resistance of the driver may not be accurate. The junction capacitance is small and depends upon the reverse bias vR. The cutoff frequency is then:

${\displaystyle f_{C}={\frac {1}{2\pi C_{J}(R_{S}{\mathit {\parallel }}r_{D})}}\ ,}$

and varies with reverse bias because the width w(vR) of the insulating region depleted of mobile carriers increases with increasing diode reverse bias, reducing the capacitance.[5]