Pn junction diode cross section with contacts