A method of manufacturing a semiconductor device whereby on a surface of a semiconductor body a conductor track of polycrystalline silicon insulated from the surface is formed in a layer of doped polycrystalline silicon provided on a layer of insulating material, and whereby a strip of polycrystalline silicon is formed between an edge of the conductor and a portion of the surface adjoining said edge, after which a semiconductor zone is formed in the semiconductor body through diffusion of dopant from the conductor through the strip, characterized in that a window is etched into the layer of polycrystalline silicon by means of a first etching mask after which the insulating layer is removed from the surface within said window, the window is provided at its edge with a strip of polycrystalline silicon, and the conductor track is formed in the layer of polycrystalline silicon by means of a second etching mask with said second etching mask covering at least a portion of the edge of the window.