A semiconductor is a conductor whose resistance decreases with increased temperature. Semiconductors in common commercial use consist of a lattice of a group four element, typically silicon or germanium. The electrons that cause current flow are bound in the lattice, with on average 1 free electron per 250,000 atoms. When energy (usually heat) is supplied to the conductor electrons are freed from the lattice and conduction occurs. More energy increases the number of free electrons up to a point where the substance loses its conductivity.
Conduction in semiconductors is through two methods, conduction through electrons free of the lattice (those in the conduction band) and conduction by positive holes.
Electrons held in the lattice and unable to conduct electricity are referred to as being in the "valance band" (as they are in the outer shell of the atom). Electrons which have been promoted to higher energy orbitals and are free to conduct are referred to as being in the "conduction band". Electrons in the conduction band are able to transmit electricity.
The positive hole theory is that when an electron leaves its position in the lattice a positive hole is formed in its absence. This hole is then filled by another electron which in turn leaves a hole in its path which is filled by another electron and so on so forth. The apparent movement of "positive holes" mimics the movement of positive charges, and hence semiconductors can be referred to as conducting by positive holes. This occurs in the valance band.
Doping occurs when a group four atom in the lattice is replaced with either a group three or a group five atom at the rate of about one per one million.
p type semiconductors occur when the lattice is doped with a group three element. As these elements only have three valance electrons there is a positive hole already in existence in the lattice, which allows ready conduction by positive holes. As a result, the majority charge carriers in p-type semiconductors are positive holes, and the minority charge carriers are electrons in the conduction band.
n type semiconductors occur when the lattice is doped with a group give element. As these elements have five valance electrons there is an extra electron "floating" in the lattice (only four valance electrons are needed to bond to other atoms). As a result, conduction can occur without needing to input large amounts of energy, and the majority charge carriers are electrons in the conduction band (the minority charge carriers being positive holes).
Semiconductors are not used to replace ordinary conductors, given that their resistance remains significantly higher at all temperatures. However, their unique properties can be exploited by creating a n-p junction, when an n-type and a p-type semiconductor are placed together. The electrons in the conduction band of the n-type substance fill up some of the positive holes in the p-type conduction, producing a negative charge on the p-type side and hence an electric field which creates a "zone of exclusion". This zone of exclusion can be utilized in many instances, including in solid state devices acting as diodes (ensuring direction of current in one direction only) and triodes (increasing the current flowing through a circuit) and in solar cells. The former of these has replaced transistor valves in appliances such as radios and photocells.