Further, the semiconductor device according to the invention has a feature of including a memory circuit which is nonvolatile and able to write once and read many, and according to the above feature, an electronic apparatus in which a high function and a high added value are realized can be provided.