As of i know that a solar cell consists of a transistor(NP) .First step it creates a barrier between the n type and the p type junction.Then following that the sunlight i.e,(the photons) supply energy to the electrons in the p type semiconductor and thus the electrons of the p type semiconductor bypass the barrier between the n type and p type semiconductor and then it flows through the load wire and thus we get electricity.. My question is "Will the electrons of the p type semiconductor never get over"? How does it constantly supply current ?
The photon striking in the region of the n-p junction kicks an electron up to a high "valence band" and that electron then travels to an area of lower potential at the junction between the n-material and one of the sets of conductors. At the same time the hole left behind in the p-material drifts toward the conductor on the other side of the diode and merges with an electron there to resolve the charge separation. The process is repeated as frequently as the photons keep arriving.