A semiconductor device according to the invention has a feature of including a memory circuit having a simple structure, and according to the above feature, an electronic apparatus using a semiconductor device having an inexpensive and highly integrated memory circuit can be provided.