Cd,Hg,_,Te graded gap epitaxial layers were fabricated by the isothermal deposition of HgTe onto CdTe wafers. The layers were used for the construction of infrared detectors working in the photovoltaic mode. In contrast to the technology described previously’ a new technique for the preparation of p-n junctions with a p-type surface layer is given. The spectral and current-voltage characteristics of the junctions were measured. The main advantages of photovoltaic detectors using these p-n junctions are discussed. 1 G. Cohen-Solal