The principle of solar energy transformation
The transformation of solar energy into electricity by semiconductor solar cell occurs by this way:
Solar light enters into semiconductor and generates electron-hole pairs, this pairs are divided by incorporated electric
field (p-n junction) between emitter and base of element. The difference between cell polarities
is created by this way potential. The electric current will flow if connect cell polarities to load.
At the www.pveducation.org exists animation, which schematically images the solar energy transformation process. Here is one:
Animation description: when photon enters to semiconductor an electron-hole pair is generated. In this case it occurs in emitter region (n-type).
The electron (marked as red ball) takes part in doing useful work in the electrical load while hole (marked as blue ball) is moving to the back
contact of element. When hole meet electron occurs recombination (the opposite mechanism of generation).