JUNCTION CAUSES electric field which results potential BARRIER in a pn diodeBarrier potential is caused due to migration of majority carriers across the junctionThe movement of majority carriers from high concentration to low concentration region uncovers positively and negatively charged atoms that INDUCES an electric field; This field causes the barrier potential