In electronics, doping is the process of adding certain chemical elements to a semiconductor in order to change its electric conductivity. These elements are tiny impurities. This is done to create diodes that make electricity go in one direction, or to make transistors and semiconductor switches.
When the element boron is added to silicon, the boron "dopant" is called an "acceptor" because it likes accepting electrons. When the element phosphorous is added to silicon, the phosphorous is called a "donor" because it does not like electrons.
There are two types of doping: (1) n-type(negative type) doping (2) p-type(positive type) doping
(1) n–type doping: In this, element with five valence electrons are added as impurity(pentavalent impurity or donor impurity) in the semiconductor. Semiconductor has four valence electrons, when it is doped with pentavalent impurity the four valence electron makes covalent bond and the remaining one is now free to move, this is how n-type doping increases conductivity of the semiconductor. Due to excess of electron (e-) in the n-type semiconductor it generates an overall negative charge and thus the name n-type semiconductor.
(2) p-type doping: In this, element with three valence electron are added as impurity (trivalent impurity or acceptor impurity) in the semiconductor. The three electron in the semiconductor bonds with the three electrons of the dopant. The one electron couldn’t make bond and thus the vacant space where electron should be there is created. This vacant space is know as holes. Electron from another atom jumps in these hole to fill it and a hole is created there, and then the same thing continues. Thus, by this way conductivity is increased in p-type doping.
The impurities are added to the silicon through multiple processes, including "Spin Coating". A thin layer of phosphorus or boron, usually mixed with a liquid to help it spread out, is spun at high speeds on the silicon. The mixture spreads out the phosphorous or boron, and then is baked.