When you form a PN junction you're basically closing a circuit so why don't the free electrons in the N and the holes in the P diffuse completely as they would in any other circuit?
-
\$\begingroup\$ Because the EM force is inverse quadratic. \$\endgroup\$– Ignacio Vazquez-AbramsCommented Jul 11, 2015 at 18:28
-
\$\begingroup\$ An equilibrium between drift and diffusion. As the carriers diffuse, charged ions are left behind which set up an electric field which pulls them back. \$\endgroup\$– Tom CarpenterCommented Jul 11, 2015 at 18:33
-
\$\begingroup\$ In some cases it does :) then the diode is breached, as the metal leads will inject as much charge carriers as it takes to conduct :) it looks and smells like a real electronics lab! \$\endgroup\$– user76844Commented Jul 11, 2015 at 18:43
3 Answers
Your first pictures show only the 'free moving' things: both parts are electrically neutral: they contain an amount of kernels (with a lot of layer-layer electrons) that compensate the free moving parts. The electrostatic force forces the free moving thingies and their kernels together. (But the kernels can't move, so its the free moving thingies that are more or less bound to their location.)
But in the boundary layer the free moving thingies have to move only a very small distance to annul each other, so that is what happens: a small region where the attraction of the freem moving thingies overcome them being attracted to their 'homes'.
These homes can't move, so the missing free moving thingies leave a small region on each side of the boundary that is charged and is lacking any free moving thingies (hence: an isolator).
"Why do they stop diffusing"? Because they are attracted ('bound') by the atom kernels they originated from.
Electrons need free electrons near by to more. In the depletion layer all the atoms are complete and have no free electrons left within.
To over come this the electrons require extra energy, which is absent and the absorption stops
For the same reason the charges of a capacitor’s plates face the opposite plate in a thin layer and don’t diffuse. The bulk of either capacitor’s plates or diode is conductive, whereas conductors don’t tolerate charges inside them. A significant space charge is needed to transform the electron band structure to such an extent that a normally conductive material becomes an insulator.