Oxygen doping treatment may be performed after the formation of the insulating layer 176. It is preferable that the heat treatment, the oxygen doping treatment, and the formation of the insulating layer 176 be successively performed without exposure to the air.
The insulating layer 176 can be formed by a sputtering method using a sputtering gas containing oxygen. By forming the insulating layer 176 by a sputtering method using a sputtering gas containing oxygen, oxygen can be supplied to the insulating layer 108 in forming the insulating layer 176. Part of oxygen contained in the insulating layer 108 is diffused to the semiconductor layer 109 by later heat treatment, so that oxygen vacancies in the semiconductor layer 109 can be reduced.
A semiconductor device 1000F illustrated in