P-n junction diodes form the basis not only of solar cells, but of many other electronic devices such as LEDs, lasers, photodiodes and bipolar junction transistors (BJTs). A p-n junction aggregates the recombination, generation, diffusion and drift effects described in the previous pages into a single device.

Formation of a P-n junction

P-n junctions are formed by joining n-type and p-type semiconductor materials, as shown below. Since the n-type region has a high electron concentration and the p-type a high hole concentration, electrons diffuse from the n-type side to the p-type side. Similarly, holes flow by diffusion from the p-type side to the n-type side. If the electrons and holes were not charged, this diffusion process would continue until the concentration of electrons and holes on the two sides were the same, as happens if two gasses come into contact with each other. However, in a p-n junction, when the electrons and holes move to the other side of the junction, they leave behind exposed charges on dopant atom sites, which are fixed in the crystal lattice and are unable to move. On the n-type side, positive ion cores are exposed. On the p-type side, negative ion cores are exposed. An electric field Ê forms between the positive ion cores in the n-type material and negative ion cores in the p-type material. This region is called the "depletion region" since the electric field quickly sweeps free carriers out, hence the region is depleted of free carriers. A "built in" potential Vbi due to Ê is formed at the junction. The animation below shows the formation of the Ê at the junction between n and p-type material.

Carrier Movement in Equilibrium

A p-n junction with no external inputs represents an equilibrium between carrier generation, recombination, diffusion and drift in the presence of the electric field in the depletion region. Despite the presence of the electric field, which creates an impediment to the diffusion of carriers across the electric field, some carriers still cross the junction by diffusion. In the animation below, most majority carriers which enter the depletion region move back towards the region from which they originated. However, statistically some carriers will have a high velocity and travel in a sufficient net direction such that they cross the junction. Once a majority carrier crosses the junction, it becomes a minority carrier. It will continue to diffuse away from the junction and can travel a distance on average equal to the diffusion length before it recombines. The current caused by the diffusion of carriers across the junction is called a diffusion current. In the animation below, watch the carriers in the depletion region and wait for carriers which cross the junction. Remember that in an actual p-n junction the number and velocity of the carriers is much greater and that the number of carriers crossing the junction are much larger.

Minority carriers which reach the edge of the diffusion region are swept across it by the electric field in the depletion region. This current is called the drift current. In equilibrium the drift current is limited by the number of minority carriers which are thermally generated within a diffusion length of the junction.

In equilibrium, the net current from the device is zero. The electron drift current and the electron diffusion current exactly balance out (if they did not there would be a net buildup of electrons on either one side or the other of the device). Similarly, the hole drift current and the hole diffusion current also balance each other out.