At this time, hydrogen easily gets out of silicon in the single crystal semiconductor layer 102 even by heat treatment of approximately 400??? C. On the other hand, bond energy of silicon and halogen such as fluorine or chlorine is higher than that of silicon and hydrogen; therefore, halogen can be stably contained in the single crystal semiconductor layer 102.