Barrier potential of a p-n junction diode does not depend on