Pn-Junction When a Photon Excites It