To understand how semiconductors work, you must first understand a little about how electrons are organized in an atom. The electrons in an atom are organized in layers. These layers are called shells. The outermost shell is called the valence shell.
The electrons in this shell are the ones that form bonds with neighboring atoms. Such bonds are called covalent bonds. Most conductors have just one electron in the valence shell. Semiconductors, on the other hand, typically have four electrons in their valence shell.
Semiconductors are made of crystals
If all the neighboring atoms are of the same type, it's possible for all the valence electrons to bind with valence electrons from other atoms. When that happens, the atoms arrange themselves into structures called crystals. Semiconductors are made out of such crystals, usually silicon crystals.Here, each circle represents a silicon atom, and the lines between the atoms represent the shared electrons. Each of the four valence electrons in each silicon atom is shared with one neighboring silicon atom. Thus, each silicon atom is bonded with four other silicon atoms.
Pure silicon crystals are not all that useful electronically. But if you introduce small amounts of other elements into a crystal, the crystal starts to conduct in an interesting way.
Two types of conductors
The process of deliberately introducing other elements into a crystal is called doping. The element introduced by doping is called a dopant. By carefully controlling the doping process and the dopants that are used, silicon crystals can transform into one of two distinct types of conductors:-
N-type semiconductor: Created when the dopant is an element that has five electrons in its valence layer. Phosphorus is commonly used for this purpose.
The phosphorus atoms join right in the crystal structure of the silicon, each one bonding with four adjacent silicon atoms just like a silicon atom would. Because the phosphorus atom has five electrons in its valence shell, but only four of them are bonded to adjacent atoms, the fifth valence electron is left hanging out with nothing to bond to.
The extra valence electrons in the phosphorous atoms start to behave like the single valence electrons in a regular conductor such as copper. They are free to move about. Because this type of semiconductor has extra electrons, it's called an N-type semiconductor.
-
P-type semiconductor: Happens when the dopant (such as boron) has only three electrons in the valence shell. When a small amount is incorporated into the crystal, the atom is able to bond with four silicon atoms, but since it has only three electrons to offer, a hole is created. The hole behaves like a positive charge, so semiconductors doped in this way are called P-type semiconductors.
Like a positive charge, holes attract electrons. But when an electron moves into a hole, the electron leaves a new hole at its previous location. Thus, in a P-type semiconductor, holes are constantly moving around within the crystal as electrons constantly try to fill them up.