what is a p type
A P-N junction (or N-P junction) is formed by creating two substrate materials of P type and N type on a semiconductor. P type means it is doped with free holes (electron depletion) and the N type is doped with electrons. Of course by physics, the free holes and free electrons would like to neutralize each other.