<p>In the present device a non-doped or low-doped diamond layer (3) with high resistivity is epitaxially grown between the n-type diamond layer (6) and the p-type diamond layer (2) in the pn junction diode or between the metal layer and the doped diamond layer in the Schottky diode. <IMAGE></p>