The working principle of a photodiode is, when a photon of ample energy strikes the diode, it makes a couple of an electron-hole. ... Therefore, holes in the region move toward the anode, and electrons move toward the cathode, and a photocurrent will be generated.