Input-Output Device and Method for Driving Input-Output Device
This application is a continuation of copending U.S. application Ser. No. 13/160,903, filed on Jun. 15, 2011 which is incorporated herein by reference. 1. Field of the Invention One embodiment of the present invention relates to an input-output device. Further, one embodiment of the present invention relates to a method for driving an input-output device. 2. Description of the Related Art In recent years, techniques of devices from which data is output and to which data is input by incidence of light (such devices are also referred to as input-output devices) have been developed. As an input-output device, there is an input-output device which includes a plurality of photodetectors (also referred to as optical sensors) arranged in matrix in a pixel portion and a backlight including light-emitting diodes with a plurality of colors as light sources (for example, Reference 1). In the input-output device disclosed in Reference 1, in each frame period, the backlight is lit while the colors of emitted light are switched so that full-color images are displayed, and light reflected by an object is read as data. Thus, the input-output device disclosed in Reference 1 functions as a touch panel. Note that a method by which a backlight is lit while the colors of emitted light are switched in each frame period is also referred to as a field-sequential method. A conventional input-output device has a problem of low accuracy of photodetection. For example, when the conventional input-output device employs a field-sequential method, it is necessary that a plurality of light-emitting diodes be sequentially switched and emit light in one frame period so that the lighting state of a backlight can be switched. Thus, in order to generate optical data based on the lighting state of the backlight, it is necessary that optical data be generated in the photodetector in each row so that optical data can be generated in all the photodetectors in a period during which the backlight is lit. Accordingly, the light incidence time in each photodetector at the time of generating optical data is short, so that accuracy of photodetection is reduced. In addition, for example, light in an environment in which an input-output device is placed, such as external light, enters the input-output device. Thus, the light in the environment causes noise when optical data is generated. Accordingly, accuracy of photodetection is reduced. For example, as in a touch panel, in the case where data is input to the input-output device by entry of light reflected by a finger, light reflected by a hand portion other than the finger is recognized as data equivalent to data brought by the light reflected by the finger in some cases due to light in the environment in which the input-output device is placed. An object of one embodiment of the present invention is to improve accuracy of photodetection. One embodiment of the present invention includes a display circuit, a plurality of photodetectors, and a light unit including a plurality of first light-emitting diodes that emit visible light and a second light-emitting diode that emits infrared light. The plurality of first light-emitting diodes are switched and emit light per unit time and the second light-emitting diode emits light, so that optical data is generated in the plurality of photodetectors. Thus, the influence of light in an environment in which an input-output device is placed is reduced. One embodiment of the present invention is an input-output device which includes a light unit including Z (Z is a natural number of 3 or more) first light-emitting diodes that emit light with a wavelength in a visible light range and a second light-emitting diode that emits light with a wavelength in an infrared range; X (X is a natural number) display circuits overlapping with the light unit, supplied with a display selection signal, supplied with a display data signal in accordance with the display selection signal, and set to be in a display state based on data of the input display data signal; and Y (Y is a natural number) photodetectors overlapping with the light unit and including a filter for absorbing light with a wavelength in a visible light range, supplied with a photodetection control signal, and generating data based on the illuminance of incident light in accordance with the input photodetection control signal. One embodiment of the present invention is an input-output device which includes a first light unit including Z (Z is a natural number of 3 or more) first light-emitting diodes that emit light with a wavelength in a visible light range; a second light unit including a second light-emitting diode that emits light with a wavelength in an infrared range; X (X is a natural number) display circuits provided between the first light unit and the second light unit, supplied with a display selection signal, supplied with a display data signal in accordance with the display selection signal, and set to be in a display state based on data of the input display data signal; and Y (Y is a natural number) photodetectors provided between the first light unit and the second light unit and including a filter for absorbing light with a wavelength in a visible light range, supplied with a photodetection control signal, and generating data based on the illuminance of incident light in accordance with the input photodetection control signal. One embodiment of the present invention is a method for driving an input-output device which includes a light unit including Z (Z is a natural number of 3 or more) first light-emitting diodes that emit light with a wavelength in a visible light range and a second light-emitting diode that emits light with a wavelength in an infrared range; X (X is a natural number) display circuits overlapping with the light unit, supplied with a display selection signal, supplied with a display data signal in accordance with the display selection signal, and set to be in a display state based on data of the input display data signal; and Y (Y is a natural number) photodetectors overlapping with the light unit and including a filter for absorbing light with a wavelength in a visible light range, supplied with a photodetection control signal, and generating data based on the illuminance of incident light in accordance with the input photodetection control signal. In the method, in a frame period set by the display selection signal, a first region in the light unit is lit while the Z first light-emitting diodes are sequentially switched and emit light, and a second region in the light unit is lit while the second light-emitting diode emit light. Y pieces of data based on the illuminance of light incident on the Y photodetectors are generated in a period during which the second region in the light unit is lit. One embodiment of the present invention is a method for driving an input-output device which includes a light unit including Z (Z is a natural number of 3 or more) first light-emitting diodes that emit light with a wavelength in a visible light range and a second light-emitting diode that emits light with a wavelength in an infrared range; X (X is a natural number) display circuits overlapping with the light unit, supplied with a display selection signal, supplied with a display data signal in accordance with the display selection signal, and set to be in a display state based on data of the input display data signal; and Y (Y is a natural number) photodetectors overlapping with the light unit and including a filter for absorbing light with a wavelength in a visible light range, supplied with a photodetection control signal, and generating data based on the illuminance of incident light in accordance with the input photodetection control signal. In the method, in a frame period set by the display selection signal, a first region in the light unit is lit while the Z first light-emitting diodes are sequentially switched and emit light, and a second region in the light unit is lit while the second light-emitting diode emit light. Y pieces of first data based on the illuminance of light incident on the Y photodetectors are generated in a period during which the second region in the light unit is lit, and Y pieces of second data based on the illuminance of light incident on the Y photodetectors are generated in a period during which the second region in the light unit is not lit. Third data corresponding to difference data between the first data and the second data is generated. One embodiment of the present invention is a method for driving an input-output device which includes a first light unit including Z (Z is a natural number of 3 or more) first light-emitting diodes that emit light with a wavelength in a visible light range; a second light unit including a second light-emitting diode that emits light with a wavelength in an infrared range; X (X is a natural number) display circuits provided between the first light unit and the second light unit, supplied with a display selection signal, supplied with a display data signal in accordance with the display selection signal, and set to be in a display state based on data of the input display data signal; and Y (Y is a natural number) photodetectors provided between the first light unit and the second light unit and including a filter for absorbing light with a wavelength in a visible light range, supplied with a photodetection control signal, and generating data based on the illuminance of incident light in accordance with the input photodetection control signal. In the method, in a frame period set by the display selection signal, the first light unit is lit while the Z first light-emitting diodes are sequentially switched and emit light, and the second light unit is lit while the second light-emitting diode emit light. Y pieces of data based on the illuminance of light incident on the Y photodetectors are generated in a period during which the second light unit is lit. One embodiment of the present invention is a method for driving an input-output device which includes a first light unit including Z (Z is a natural number of 3 or more) first light-emitting diodes that emit light with a wavelength in a visible light range; a second light unit including a second light-emitting diode that emits light with a wavelength in an infrared range; X (X is a natural number) display circuits provided between the first light unit and the second light unit, supplied with a display selection signal, supplied with a display data signal in accordance with the display selection signal, and set to be in a display state based on data of the input display data signal; and Y (Y is a natural number) photodetectors provided between the first light unit and the second light unit and including a filter for absorbing light with a wavelength in a visible light range, supplied with a photodetection control signal, and generating data based on the illuminance of incident light in accordance with the input photodetection control signal. In the method, in a frame period set by the display selection signal, the first light unit is lit while the Z first light-emitting diodes are sequentially switched and emit light, and the second light unit is lit while the second light-emitting diode emit light. Y pieces of first data based on the illuminance of light incident on the Y photodetectors are generated in a period during which the second light unit is lit, and Y pieces of second data based on the illuminance of light incident on the Y photodetectors are generated in a period during which the second light unit is not lit. Third data corresponding to difference data between the first data and the second data is generated. According to one embodiment of the present invention, accuracy of photodetection can be improved. In the accompanying drawings: Examples of embodiments of the present invention will be described below with reference to the drawings. Note that the present invention is not limited to the following description. It will be readily appreciated by those skilled in the art that modes and details of the present invention can be modified in various ways without departing from the spirit and scope of the present invention. The present invention therefore should not be construed as being limited to the following description of the embodiments. Note that the contents of the embodiments can be combined with each other as appropriate. In addition, the contents of the embodiments can be replaced with each other. In this embodiment, an input-output device that can output data and can input data by incident light is described. An example of the input-output device in this embodiment is described with reference to First, a structure example of the input-output device in this embodiment is described with reference to The input-output device illustrated in The display selection signal output circuit 101 has a function of outputting a plurality of display selection signals that are pulse signals (also referred to as signals DSEL). The display selection signal output circuit 101 includes, for example, a shift register. The display selection signal output circuit 101 can output display selection signals by output of pulse signals from the shift register. A video signal representing an image with an electrical signal is input to the display data signal output circuit 102. The display data signal output circuit 102 has a function of generating a display data signal (also referred to as a signal DD) that is a voltage signal on the basis of the input video signal and outputting the generated display data signal. The display data signal output circuit 102 includes, for example, a transistor. Note that in the input-output device, the transistor includes two terminals and a current control terminal for controlling current flowing between the two terminals by applied voltage. Note that without limitation to the transistor, terminals where current flowing therebetween is controlled are also referred to as current terminals. Two current terminals are also referred to as a first current terminal and a second current terminal. Further, in the input-output device, a field-effect transistor can be used as the transistor, for example. In a field-effect transistor, a first current terminal, a second current terminal, and a current control terminal are one of a source and a drain, the other of the source and the drain, and a gate, respectively. The term “voltage” generally means a difference between potentials at two points (also referred to as a potential difference). However, levels of voltage and potentials are represented by volts (V) in a circuit diagram or the like in some cases, so that it is difficult to distinguish them. Thus, in this specification, a potential difference between a potential at one point and a potential to be a reference (also referred to as a reference potential) is used as voltage at the point in some cases unless otherwise specified. The display data signal output circuit 102 can output data of a video signal as a display data signal when the transistor is on. The transistor can be controlled by input of a control signal that is a pulse signal to the current control terminal. Note that in the case where the number of the display circuits 105 The photodetection reset signal output circuit 103 The photodetection reset signal output circuit 103 The photodetection control signal output circuit 103 The photodetection control signal output circuit 103 The output selection signal output circuit 103 The output selection signal output circuit 103 The light unit 104 is a light-emitting unit including a light source. The light unit 104 includes Z (Z is a natural number of 3 or more) light-emitting diodes (also referred to as LEDs) A and a light-emitting diode B as light sources. The lighting state of the light unit 104 varies depending on regions where the different light-emitting diodes are provided. The Z light-emitting diodes A are light-emitting diodes that emit light with a wavelength in a visible light range (e.g., a wavelength of 360 to 830 nm). For example, a red light-emitting diode, a green light-emitting diode, and a blue light-emitting diode can be used as the Z light-emitting diodes A. Note that the number of the light-emitting diodes A of each color may be plural. Further, in addition to the red, green, and blue light-emitting diodes, a light-emitting diode of a different color (e.g., a white light-emitting diode) may be used as the Z light-emitting diodes A. The light-emitting diode B is a light-emitting diode that emits light with a wavelength in an infrared range (e.g., a wavelength of greater than 830 nm and less than or equal to 1000 nm). Note that, for example, light emission of the light-emitting diode A or the light-emitting diode B may be controlled with a control signal used for selecting the light-emitting diode A or the light emitting diode B to which voltage is applied. In addition, a photo regulation circuit for outputting a control signal used for controlling whether the light-emitting diode A or the light emitting diode B to which voltage is applied is selected may be provided in the light unit 104. Thus, the light unit 104 has a region A which is lit by emission of light from the light-emitting diode A and a region B which is lit by emission of light from the light-emitting diode B. The display circuit 105 The display circuit 105 The display selection transistor has a function of selecting whether to input data of a display data signal to the display element. The display element changes its display state in accordance with data of a display data signal by input of the data of the display data signal by the display selection transistor. As the display element, a liquid crystal element or the like can be used, for example. As a display mode of the input-output device including a liquid crystal element, a TN (twisted nematic) mode, an IPS (in-plane-switching) mode, an STN (super twisted nematic) mode, a VA (vertical alignment) mode, an ASM (axially symmetric aligned micro-cell) mode, an OCB (optically compensated birefringence) mode, an FLC (ferroelectric liquid crystal) mode, an AFLC (antiferroelectric liquid crystal) mode, an MVA (multi-domain vertical alignment) mode, a PVA (patterned vertical alignment) mode, an ASV (advanced super view) mode, a FFS (fringe field switching) mode, or the like may be used. The photodetector 105 The photodetector 105 In addition, the photodetector 105 Further, the photodetector 105 The photodetector 105 The photoelectric conversion element is supplied with current (also referred to as photocurrent) in accordance with the illuminance of incident light by incidence of the light on the photoelectric conversion element. A photodetection reset signal is input to a current control terminal of the photodetection reset selection transistor. The photodetection reset selection transistor has a function of selecting whether to set the voltage of a current control terminal of the amplifier transistor to reference voltage. A photodetection control signal is input to a current control terminal of the photodetection control transistor. The photodetection control transistor has a function of selecting whether to set the voltage of the current control terminal of the amplifier transistor to voltage based on photocurrent flowing to the photoelectric conversion element. An output selection signal is input to a current control terminal of the output selection transistor. The output selection transistor has a function of selecting whether to output optical data as an optical data signal from the photodetector 105 Note that the photodetector 105 The display circuit 105 The reading circuit 106 has a function of selecting the photodetector 105 The reading circuit 106 includes, for example, a selector circuit. For example, the selector circuit includes a transistor. The selector circuit can read optical data by input of an optical data signal from the photodetector 105 Next, as an example of a method for driving the input-output device in this embodiment, an example of a method for driving the input-output device illustrated in In the example of a method for driving the input-output device illustrated in In addition, the light-emitting diode B provided in the light unit 104 emits light, so that the region B (also referred to as a region 104(IR)) in the light unit 104 is set to be in a lighting state LT (a state in which the light-emitting diode B emits light). Note that a period during which the light-emitting diode A emits light may overlap with a period during which the light-emitting diode B emits light. In addition, when a display data signal is input to the display circuit 105 When the light unit 104 in the region B is in the lighting state LT, a pulse (pls) of a photodetection control signal is input to the Y photodetectors 105 In addition, the Y photodetectors 105 Note that timing of setting the light unit 104 to be in the lighting state LT may be the same or different in the frame periods. As described with reference to Further, the example of the input-output device in this embodiment has a structure in which part of the light unit is lit while the plurality of light-emitting diodes that emit visible light are sequentially switched and emit light in each frame period. With such a structure, the input-output device can display full-color images. Furthermore, the example of the input-output device in this embodiment has a structure in which a region of the light unit in which the light-emitting diode that emits infrared light is provided is lit while the light-emitting diode that emits infrared light emits light in each frame period. With such a structure, the influence of light in the environment in which the input-output device is placed or infrared light emitted from the light-emitting diode can be reduced when optical data is generated. Thus, the light incidence time in each photodetector at the time of generating optical data can be lengthened, so that accuracy of photodetection can be improved. Thus, with the structures, accuracy of photodetection can be improved. In this embodiment, a different example of the input-output device in Embodiment 1 is described. Note that the description in Embodiment is used as appropriate for portions that are the same as those in Embodiment 1. An example of the input-output device in this embodiment is described with reference to First, a structure example of the input-output device in this embodiment is described with reference to The input-output device illustrated in Since the display selection signal output circuit 101, the display data signal output circuit 102, the photodetection reset signal output circuit 103 The data processing circuit 107 is a circuit which performs arithmetic processing on data of an input data signal. The data processing circuit 107 includes a memory circuit and an arithmetic circuit. The memory circuit has a function of storing data of a data signal. The arithmetic circuit has a function of generating difference data between data of a plurality of data signals by arithmetic processing. Note that the data processing circuit 107 may be included in the input-output device. Alternatively, the input-output device may be electrically connected to a separate data processing means (e.g., a personal computer) having a function equivalent to the function of the data processing circuit. When the data processing circuit 107 is provided in the input-output device, the number of wirings in a portion where the data processing circuit 107 and the reading circuit 106 are connected to each other can be reduced, for example. Next, as an example of a method for driving the input-output device in this embodiment, an example of a method for driving the input-output device illustrated in In the example of a method for driving the input-output device illustrated in In addition, in a certain frame period (the frame period f1 in In addition, when a display data signal is input to the display circuit 105 When the region in the light unit 104 where the light-emitting diode B is provided is lit, the pulse of a photodetection control signal is input to the Y photodetectors 105 In addition, the Y photodetectors 105 In addition, in a frame period that is different from the frame period (the frame period fn in In addition, the Y photodetectors 105 Further, the arithmetic circuit included in the data processing circuit 107 generates difference data between optical data obtained at the time when the region in the light unit 104 where the light-emitting diode B is provided is in the lighting state LT and optical data obtained at the time when the region in the light unit 104 where the light-emitting diode B is provided is not lit. The difference data is used as data for executing predetermined processing. As described with reference to In this embodiment, a different example of an input-output device that can output data and can input data by incident light is described. Note that the description in Embodiment is used as appropriate for portions that are the same as those in Embodiment 1. An example of the input-output device in this embodiment is described with reference to First, a structure example of the input-output device in this embodiment is described with reference to The input-output device illustrated in Since the display selection signal output circuit 101, the display data signal output circuit 102, the photodetection reset signal output circuit 103 The light unit 104 The light unit 104 Note that, for example, light emission of the light-emitting diode A may be controlled with a control signal used for selecting the light-emitting diode A to which voltage is applied. In addition, a photo regulation circuit for outputting a control signal used for controlling whether the light-emitting diode A to which voltage is applied is selected may be provided in the light unit 104 The light unit 104 Note that, for example, light emission of the light-emitting diode B may be controlled with a control signal used for selecting the light-emitting diode B to which voltage is applied. In addition, a photo regulation circuit for outputting a control signal used for controlling whether the light-emitting diode B to which voltage is applied is selected may be provided in the light unit 104 Next, as an example of a method for driving the input-output device in this embodiment, an example of a method for driving the input-output device illustrated in In the example of a method for driving the input-output device illustrated in When the light-emitting diode B provided in the light unit 104 In addition, when a display data signal is input to the display circuit 105 When the light unit 104 In addition, the Y photodetectors 105 Note that timing of when the light unit 104 Further, as in the input-output device described in Embodiment 2, optical data at the time when the light unit 104 As described with reference to Further, the example of the input-output device in this embodiment has a structure in which the region in the light unit where the light-emitting diode that emits visible light is provided is lit while the plurality of light-emitting diodes that emit visible light are sequentially switched and emit light in each frame period. With such a structure, the input-output device can display full-color images. Furthermore, the example of the input-output device in this embodiment has a structure in which the second light unit is lit while the light-emitting diode that emits infrared light emits light in each frame period. With such a structure, the influence of light in the environment in which the input-output device is placed or infrared light emitted from the light-emitting diode can be reduced when optical data is generated. Thus, the light incidence time in each photodetector at the time of generating optical data can be lengthened, so that accuracy of photodetection can be improved. Thus, with the structures, accuracy of photodetection can be improved. In this embodiment, examples of the photodetector in the input-output device in the above embodiment are described. Examples of the photodetector in this embodiment are described with reference to First, structure examples of the photodetector in this embodiment are described with reference to The photodetector illustrated in Note that in the photodetector illustrated in The photoelectric conversion element 131 One of a source and a drain of the transistor 134 A gate of the transistor 132 One of a source and a drain of the transistor 133 Voltage Vais input to either the other of the source and the drain of the transistor 132 In addition, the photodetector illustrated in The photodetector illustrated in Note that in the photodetector illustrated in The photoelectric conversion element 131 Note that one of the voltage Vaand the voltage Vbis high power supply voltage Vdd, and the other of the voltage Vaand the voltage Vbis low power supply voltage Vss. The high supply voltage Vddis voltage whose level is relatively higher than that of the low supply voltage Vss. The low supply voltage Vssis voltage whose level is relatively lower than that of the high supply voltage Vdd. The level of the voltage Vaand the level of the voltage Vbmight interchange depending, for example, on the polarity of the transistor. A difference between the voltage Vaand the voltage Vbis power supply voltage. One of a source and a drain of the transistor 134 A gate of the transistor 132 A photodetection reset signal is input to a gate of the transistor 135. The voltage Vais input to one of a source and a drain of the transistor 135. The other of the source and the drain of the transistor 135 is electrically connected to the other of the source and the drain of the transistor 134 An output selection signal is input to a gate of the transistor 133 The voltage Vais input to either the other of the source and the drain of the transistor 132 In addition, the photodetector illustrated in Further, the components of the photodetectors illustrated in As the photoelectric conversion elements 131 The transistors 132 The transistors 134 The transistor 135 functions as a photodetection reset selection transistor. The transistors 133 Note that as each of the transistors 132 Next, examples of methods for driving the photodetectors illustrated in First, the example of the method for driving the photodetector illustrated in In the example of the method for driving the photodetector illustrated in In that case, in the period T31, the photoelectric conversion element 131 At this time, the voltage of the gate of the transistor 132 Then, in the period T32 after the input of the pulse of the photodetection reset signal, the photoelectric conversion element 131 At this time, photocurrent flows between the first current terminal and the second current terminal of the photoelectric conversion element 131 Further, in a period T33 after the input of the pulse of the photodetection control signal, the transistor 134 At this time, the voltage of the gate of the transistor 132 Then, in a period T34, the pulse of the output selection signal is input. At this time, the photoelectric conversion element 131 Next, the example of the method for driving the photodetector illustrated in In the example of the method for driving the photodetector illustrated in FIG. 4B, first, in a period T41, the pulse of a photodetection reset signal is input. In the period T41 and a period T42, the pulse of a photodetection control signal is input. Note that in the period T41, timing of starting input of the pulse of the photodetection reset signal may be earlier than timing of starting input of the pulse of the photodetection control signal. At this time, in the period T41, the photoelectric conversion element 131 Further, in the period T42 after the input of the pulse of the photodetection reset signal, the photoelectric conversion element 131 At this time, photocurrent flows between the first current terminal and the second current terminal of the photoelectric conversion element 131 Further, in a period T43 after the input of the pulse of the photodetection control signal, the transistor 134 At this time, the voltage of the gate of the transistor 132 In a period T44, the pulse of the output selection signal is input. At this time, the photoelectric conversion element 131 When the transistor 133 As described with reference to In this embodiment, examples of the display circuit in the input-output device in the above embodiment are described. Examples of the display circuit in this embodiment are described with reference to First, structure examples of the display circuit in this embodiment are described with reference to The display circuit illustrated in Note that in the display circuit illustrated in In addition, in the input-output device, the liquid crystal element includes a first display electrode, a second display electrode, and a liquid crystal layer. The light transmittance of the liquid crystal layer changes depending on voltage applied between the first display electrode and the second display electrode. Further, in the input-output device, the capacitor includes a first capacitor electrode, a second capacitor electrode, and a dielectric layer overlapping with the first capacitor electrode and the second capacitor electrode. Electrical charge is accumulated in the capacitor in accordance with voltage applied between the first capacitor electrode and the second capacitor electrode. A display data signal is input to one of a source and a drain of the transistor 151 The first display electrode of the liquid crystal element 152 The first capacitor electrode of the capacitor 153 The display circuit illustrated in Note that in the display circuit illustrated in A display data signal is input to one of a source and a drain of the transistor 155. A write selection signal (also referred to as a signal WSEL) that is a pulse signal is input to a gate of the transistor 155. The write selection signal can be generated by output of a pulse signal from a shift register included in a circuit, for example. A first capacitor electrode of the capacitor 154 is electrically connected to the other of the source and the drain of the transistor 155. The voltage V is input to a second capacitor electrode of the capacitor 154. One of a source and a drain of the transistor 151 A first display electrode of the liquid crystal element 152 A first capacitor electrode of the capacitor 153 Reference voltage is input to one of a source and a drain of the transistor 156. The other of the source and the drain of the transistor 156 is electrically connected to the other of the source and the drain of the transistor 151 Further, the components of the display circuits illustrated in The transistors 151 As each of the liquid crystal layers of the liquid crystal elements 152 The capacitor 153 The capacitor 154 functions as a storage capacitor in which voltage whose level is based on a display data signal is applied between the first capacitor electrode and the second capacitor electrode with the transistor 155. The transistor 155 functions as a write selection transistor for selecting whether a display data signal is input to the capacitor 154. The transistor 156 functions as a display reset selection transistor for selecting whether voltage applied to the liquid crystal element 152 Note that as each of the transistors 151 Next, examples of methods for driving the display circuits illustrated in First, the example of the method for driving the display circuit illustrated in In the example of the method for driving the display circuit illustrated in When the transistor 151 At this time, the liquid crystal element 152 Then, the transistor 151 Next, the example of the method for driving the display circuit illustrated in In the example of the method for driving the display circuit illustrated in The transistor 155 is turned on by input of the pulse of a write selection signal, and a display data signal is input to the display circuit, so that the voltage level of the first capacitor electrode of the capacitor 154 is equivalent to the voltage level of the display data signal. After that, the transistor 151 At this time, the liquid crystal element 152 Then, the transistor 151 As described with reference to Further, as described with reference to In this embodiment, an example of the second light unit of the input-output device in Embodiment 2 is described. A structure example of a light unit in this embodiment is described with reference to The light unit illustrated in As the light source 201, a light-emitting diode that emits light with a wavelength in an infrared range can be used, as described in Embodiment 2. The fixing member 203 has a function of fixing the light source 201 and the light guide plate 202. A light-blocking material is preferably used for the fixing member 203. With the use of a light-blocking material for the fixing member 203, leakage of light emitted from the light source 201 to the outside can be prevented. Note that the fixing member 203 is not necessarily provided. In the light unit illustrated in On and off of the light unit illustrated in As described with reference to In this embodiment, transistors that can be used as transistors included in the input-output device described in the above embodiment are described. In the input-output device described in the above embodiment, as the transistor, for example, it is possible to use a transistor including a semiconductor layer containing a semiconductor that belongs to Group 14 in the periodic table (e.g., silicon) or a transistor including an oxide semiconductor layer. Channels are formed in the semiconductor layer and the oxide semiconductor layer of the transistors. Note that a layer in which a channel is formed is also referred to as a channel formation layer. Note that the semiconductor layer may be a single crystal semiconductor layer, a polycrystalline semiconductor layer, a microcrystalline semiconductor layer, or an amorphous semiconductor layer. In the input-output device described in the above embodiment, as the transistor including the oxide semiconductor layer, for example, a transistor including an oxide semiconductor layer that is highly purified to be intrinsic (also referred to as i-type) or substantially intrinsic can be used. Purification is a general idea including the following cases: the case where hydrogen in an oxide semiconductor layer is removed as much as possible and the case where oxygen is supplied to an oxide semiconductor layer and defects due to oxygen deficiency of the oxide semiconductor layer are reduced. Structure examples of the transistor including the oxide semiconductor layer are described with reference to The transistor illustrated in The transistor illustrated in The conductive layer 401 Further, in the transistor illustrated in A transistor illustrated in The transistor illustrated in The conductive layer 401 A transistor illustrated in The transistor illustrated in The conductive layer 401 Further, in Note that in A transistor illustrated in The transistor illustrated in The oxide semiconductor layer 403 Further, components illustrated in As each of the substrates 400 The insulating layer 447 functions as a base layer for preventing diffusion of impurity elements from the substrate 400 The insulating layer 447 can be, for example, a silicon nitride layer, a silicon oxide layer, a silicon nitride oxide layer, a silicon oxynitride layer, an aluminum oxide layer, or an aluminum oxynitride layer. The insulating layer 447 can be formed using a stack of materials which can be used for the insulating layer 447. The conductive layers 401 Note that the transistor in this embodiment may include a conductive layer overlapping with the conductive layer functioning as a gate with the oxide semiconductor layer provided therebetween, in addition to the components of the transistors illustrated in Each of the conductive layers 401 The insulating layers 402 As each of the insulating layers 402 The oxide semiconductor layers 403 In the case where an In—Zn—O-based metal oxide is used, for example, an oxide target having the following composition ratios can be used for deposition of an In—Zn—O-based metal oxide semiconductor layer: In:Zn=50:1 to 1:2 (In2O3:ZnO=25:1 to 1:4 in a molar ratio), preferably In:Zn=20:1 to 1:1 (In2O3:ZnO=10:1 to 1:2 in a molar ratio), more preferably In:Zn=15:1 to 1.5:1 (In2O3:ZnO=15:2 to 3:4 in a molar ratio). For example, when the atomic ratio of the target used for the deposition of the In—Zn—O-based oxide semiconductor is expressed by In:Zn:O=P:Q:R, R>1.5P+Q. The increase in the In content makes the mobility of the transistor higher. As the oxide semiconductor, a material represented by InMO3(ZnO)m(m is larger than 0) can be used. Here, M in InMO3(ZnO)mrepresents one or more metal elements selected from Ga, Al, Mn, or Co. The conductive layers 405 Each of the conductive layers 405 Alternatively, each of the conductive layers 405 The oxide insulating layers 407 Note that the transistor in this embodiment does not necessarily have a structure in which the entire oxide semiconductor layer overlaps with the conductive layer functioning as a gate electrode as illustrated in As an example of a method for forming the transistor in this embodiment, an example of a method for forming the transistor illustrated in First, as illustrated in For example, the first conductive film can be formed by formation of a layer of a material that can be used for the conductive layer 401 Note that when a high-purity gas from which an impurity such as hydrogen, water, a hydroxyl group, or hydride is removed is used as a sputtering gas, for example, the impurity concentration in the film can be lowered. Note that preheating treatment may be performed in a preheating chamber of a sputtering apparatus before the film is formed by sputtering. By the preheating treatment, an impurity such as hydrogen or moisture can be eliminated. Before the film is formed by sputtering, for example, treatment by which voltage is applied to a target side, not to a target side, in an argon, nitrogen, helium, or oxygen atmosphere with the use of an RF power and plasma is generated so that a surface of the substrate on which the film is formed is modified (such treatment is also referred to as reverse sputtering) may be performed. By reverse sputtering, powdery substances (also referred to as particles or dust) that attach onto the surface on which the film is formed can be removed. In the case where the film is formed by sputtering, moisture remaining in a deposition chamber for the film can be removed by an adsorption vacuum pump or the like. A cryopump, an ion pump, a titanium sublimation pump, or the like can be used as the adsorption vacuum pump. Alternatively, moisture remaining in the deposition chamber can be removed by a turbo pump provided with a cold trap. For example, a resist mask is formed over part of the first conductive film by a photolithography process and the first conductive film is etched using the resist mask, so that the conductive layer 401 The resist mask may be formed by an inkjet method. A photomask is not needed in an inkjet method; thus, manufacturing cost can be reduced. In addition, the resist mask may be formed using an exposure mask having a plurality of regions with different transmittances (such an exposure mask is also referred to as a multi-tone mask). With the multi-tone mask, a resist mask having a plurality of regions with different thicknesses can be formed, so that the number of resist masks used for the formation of the transistor can be reduced. Next, as illustrated in For example, the first insulating film can be formed by formation of a layer of a material that can be used for the insulating layer 402 Then, as illustrated in For example, the oxide semiconductor film can be formed by formation of a layer of an oxide semiconductor material that can be used for the oxide semiconductor layer 403 For example, the oxide semiconductor film can be formed using an oxide target having a composition ratio of In2O3:Ga2O3:ZnO=1:1:1 (in a molar ratio) as a sputtering target. Alternatively, for example, the oxide semiconductor film may be formed using an oxide target having a composition ratio of In2O3:Ga2O3:ZnO=1:1:2 (in a molar ratio). When the oxide semiconductor film is formed by sputtering, the substrate 400 For example, the oxide semiconductor film can be etched using a resist mask which is formed over part of the oxide semiconductor film by a photolithography process, so that the oxide semiconductor layer 403 Then, as illustrated in For example, the second conductive film can be formed by formation of a layer of a material that can be used for the conductive layers 405 For example, a resist mask is formed over part of the second conductive film by a photolithography process and the second conductive film is etched using the resist mask, so that the conductive layers 405 Then, as illustrated in For example, the oxide insulating layer 407 Before the formation of the oxide insulating layer 407 In addition, in the example of the method for forming the transistor illustrated in Note that a heat treatment apparatus for the heat treatment can be an electric furnace or an apparatus for heating an object by heat conduction or heat radiation from a heater such as a resistance heater. For example, an RTA (rapid thermal annealing) apparatus such as a GRTA (gas rapid thermal annealing) apparatus, or an LRTA (lamp rapid thermal annealing) apparatus can be used. An LRTA apparatus is an apparatus for heating an object by radiation of light (an electromagnetic wave) emitted from a lamp such as a halogen lamp, a metal halide lamp, a xenon arc lamp, a carbon arc lamp, a high pressure sodium lamp, or a high pressure mercury lamp. A GRTA apparatus is an apparatus with which heat treatment is performed using a high-temperature gas. As the high-temperature gas, for example, a rare gas or an inert gas (e.g., nitrogen) which does not react with an object by heat treatment can be used. After the heat treatment, a high-purity oxygen gas, a high-purity N2O gas, or ultra-dry air (with a dew point of −40° C. or lower, preferably −60° C. or lower) may be introduced into the furnace that has been used in the heat treatment while the heating temperature is maintained or decreased. In that case, it is preferable that water, hydrogen, and the like be not contained in the oxygen gas or the N2O gas. The purity of the oxygen gas or the N2O gas which is introduced into the heat treatment apparatus is preferably 6N or higher, more preferably 7N or higher. That is, the impurity concentration in the oxygen gas or the N2O gas is 1 ppm or lower, preferably 0.1 ppm or lower. By the action of the oxygen gas or the N2O gas, oxygen is supplied to the oxide semiconductor layer 403 Further, in addition to the heat treatment, after the oxide insulating layer 407 Further, oxygen doping treatment using oxygen plasma may be performed after the formation of the insulating layer 402 Through the steps, an impurity such as hydrogen, moisture, a hydroxyl group, or hydride (also referred to as a hydrogen compound) is removed from the oxide semiconductor layer 403 Note that although the example of the method for forming the transistor illustrated in As described with reference to The oxide semiconductor layer in which a channel is formed is an oxide semiconductor layer which is made to be intrinsic (i-type) or substantially intrinsic (i-type) by purification. By purification of the oxide semiconductor layer, the carrier concentration in the oxide semiconductor layer can be lower than 1×1014/cm3, preferably lower than 1×1012/cm3, more preferably lower than 1×1011/cm3, so that changes in characteristics due to temperature change can be suppressed. Further, with the above structure, off-state current per micrometer of channel width can be 10 aA (1×10−17A) or less, 1 aA (1×10−18A) or less, 10 zA (1×10−20A) or less, 1 zA (1×10−21A) or less, or 100 yA (1×10−22A) or less. It is preferable that the off-state current of the transistor be as low as possible. The lower limit of the off-state current of the transistor in this embodiment is estimated at about 10−30A/μm. A calculation example of the off-state current of the example of the transistor including an oxide semiconductor layer in this embodiment, in which leakage current measurement with a circuit for evaluating characteristics is utilized, is described below. The leakage current measurement with a circuit for evaluating characteristics is described with reference to First, the structure of the circuit for evaluating characteristics is described with reference to The circuit for evaluating characteristics illustrated in The measurement system 801 includes a transistor 811, a transistor 812, a capacitor 813, a transistor 814, and a transistor 815. Voltage V1 is input to one of a source and a drain of the transistor 811, and voltage Vext_a is input to a gate of the transistor 811. The transistor 811 is a transistor for injecting electrical charge. One of a source and a drain of the transistor 812 is connected to the other of the source and the drain of the transistor 811. Voltage V2 is input to the other of the source and the drain of the transistor 812. Voltage Vext_b is input to a gate of the transistor 812. The transistor 812 is a transistor for evaluating leakage current. Note that the leakage current here includes the off-state current of a transistor. A first capacitor electrode of the capacitor 813 is connected to the other of the source and the drain of the transistor 811. The voltage V2 is input to a second capacitor electrode of the capacitor 813. Note that here, the voltage V2 is 0 V. Voltage V3 is input to one of a source and a drain of the transistor 814. A gate of the transistor 814 is connected to the other of the source and the drain of the transistor 811. Note that a portion where the gate of the transistor 814, the one of the source and the drain of the transistor 811, the other of the source and the drain of the transistor 812, and the first capacitor electrode of the capacitor 813 are connected to each other is referred to as a node A. Note that here, the voltage V3 is 5 V. One of a source and a drain of the transistor 815 is connected to the other of the source and the drain of the transistor 814. Voltage V4 is input to the other of the source and the drain of the transistor 815. Voltage Vext_c is input to a gate of the transistor 815. Note that here, the voltage Vext_c is 0.5 V. The measurement system 801 outputs the voltage of a portion where the other of the source and the drain of the transistor 814 is connected to the one of the source and the drain of the transistor 815, as output voltage Vout. Here, a transistor having a channel length L of 10 μm and a channel width W of 10 μm and including an oxide semiconductor layer is used as an example of the transistor 811. A transistor having a channel length L of 3 μm and a channel width W of 100 μm and including an oxide semiconductor layer is used as an example of each of the transistors 814 and 815. A bottom-gate transistor including an oxide semiconductor layer in which a source and drain electrodes are on and in contact with the oxide semiconductor layer, a region where the source and drain electrodes overlap with a gate electrode is not provided, and an offset region with a width of 1 μm is provided is used as an example of the transistor 812. Provision of the offset region can reduce parasitic capacitance. Further, as the transistor 812, samples (also referred to as SMP) of six transistors having different channel lengths L and different channel widths W are used (see Table 1). By separately providing a transistor for injecting electrical charge and a transistor for evaluating leakage current as illustrated in In addition, by separately providing a transistor for injecting electrical charge and a transistor for evaluating leakage current, each of the transistors can have appropriate size. Further, by making the channel width W of the transistor for evaluating leakage current larger than that of the transistor for injecting electrical charge, the leakage current component of the circuit for evaluating characteristics other than the leakage current of the transistor for evaluating leakage current can be made relatively low. Accordingly, the leakage current of the transistor for evaluating leakage current can be measured with high accuracy. Further, the transistor for evaluating leakage current does not need to be turned on at the time of electrical charge injection; thus, there is no influence of fluctuation in the voltage of the node A caused by part of the electrical charge in the channel formation region of the transistor for evaluating leakage current flowing to the node A. In contrast, by making the channel width W of the transistor for injecting electrical charge smaller than that of the transistor for evaluating leakage current, the leakage current of the transistor for injecting electrical charge can be made relatively low. Further, there is small influence of fluctuation in the voltage of the node A caused by part of the electrical charge in the channel formation region flowing to the node A at the time of electrical charge. Next, a method for measuring the leakage current of the circuit for evaluating characteristics illustrated in In the method for measuring the leakage current with the use of the circuit for evaluating characteristics illustrated in In the writing period, voltage VL (−3 V) that turns off the transistor 812 is input as the voltage Vext_b. Further, write voltage Vw is input as the voltage V1, and then, voltage VH (5 V) that keeps the transistor 811 on for a certain period is input as the voltage Vext_a. Thus, electrical charge is accumulated in the node A, and the voltage of the node A is equivalent to the write voltage Vw. Then, the voltage VL that turns off the transistor 811 is input as the voltage Vext_a. Then, voltage VSS (0 V) is input as the voltage V1. In the holding period, the amount of change in the voltage of the node A due to the change in the amount of electrical charge held in the node A is measured. From the amount of change in voltage, the value of current flowing between the source electrode and the drain electrode of the transistor 812 can be calculated. As described above, electrical charge can be accumulated in the node A, and the amount of change in the voltage of the node A can be measured. At this time, accumulation of electrical charge in the node A and measurement of the amount of change in the voltage of the node A (also referred to as accumulation and measurement operation) are repeated. First, first accumulation and measurement operation is repeated 15 times. In the first accumulation and measurement operation, a voltage of 5 V is input as the write voltage Vw in a writing period and is held for 1 h in a holding period. Next, second accumulation and measurement operation is repeated twice. In the second accumulation and measurement operation, a voltage of 3.5 V is input as the write voltage Vw in a writing period and is held for 50 h in a holding period. Then, third accumulation and measurement operation is performed once. In the third accumulation and measurement operation, a voltage of 4.5 V is input as the write voltage Vw in a writing period and is held for 10 h in a holding period. By repeating the accumulation and measurement operation, it can be confirmed that measured current values are values in the steady state. In other words, it is possible to remove transient current (current decreasing over time after the start of the measurement) from IA(current flowing through the node A). Accordingly, leakage current can be measured with higher accuracy. In general, the voltage VAof the node A is expressed by Formula 1 as a function of the output voltage Vout. In addition, the electrical charge QAof the node A is expressed by Formula 2 using the voltage VAof the node A, capacitance CAconnected to the node A, and a constant (const). Here, the capacitance CAconnected to the node A is the sum of the capacitance of the capacitor 813 and the capacitance components other than the capacitance of the capacitor 813. The current IAof the node A is a time-derivative term of electrical charge flowing to the node A (or electrical charge flowing from the node A), and is thus expressed by Formula 3. Note that here, as an example, At is about 54000 s. The current IAof the node A, which is leakage current, can be obtained from the capacitance CAconnected to the node A and the output voltage Vout in this manner; thus, the leakage current of the circuit for evaluating characteristics can be obtained. Next, measurement results of the output voltage obtained by the measurement method using the circuit for evaluating characteristics, and the leakage current of the circuit for evaluating characteristics that is calculated from the measurement results are described with reference to For example, As described above, the leakage current of the circuit for evaluating characteristics using a transistor including a highly-purified oxide semiconductor layer serving as a channel formation layer is sufficiently low, which means that the off-state current of the transistor is sufficiently low. In addition, it turns out that the off-state current of the transistor is sufficiently low even when the temperature rises. In this embodiment, structure examples of the input-output device in the above embodiment are described. The input-output device in this embodiment includes a first substrate (an active matrix substrate) provided with a semiconductor element such as a transistor, a second substrate, and a liquid crystal layer provided between the first substrate and the second substrate. First, structure examples of the active matrix substrate in this embodiment are described with reference to The active matrix substrate illustrated in Each of the conductive layers 501 The conductive layer 501 The conductive layer 501 The conductive layer 501 The conductive layer 501 The conductive layer 501 The conductive layer 501 The conductive layer 501 The insulating layer 502 is provided over the one surface of the substrate 500 with the conductive layers 501 The insulating layer 502 functions as a gate insulating layer of the display selection transistor in the display circuit, a dielectric layer of the storage capacitor in the display circuit, a gate insulating layer of the photodetection control transistor in the photodetector, a gate insulating layer of the amplifier transistor in the photodetector, and a gate insulating layer of the output selection transistor in the photodetector. The semiconductor layer 503 The semiconductor layer 503 The semiconductor layer 503 The semiconductor layer 503 The conductive layer 504 The conductive layer 504 The conductive layer 504 The conductive layer 504 The conductive layer 504 The conductive layer 504 The conductive layer 504 The conductive layer 504 The conductive layer 504 The conductive layer 504 The conductive layer 504 The insulating layer 505 is in contact with the semiconductor layers 503 The semiconductor layer 506 is electrically connected to the conductive layer 504 The semiconductor layer 507 is in contact with the semiconductor layer 506. The semiconductor layer 508 is in contact with the semiconductor layer 507. The insulating layer 509 overlaps with the insulating layer 505, the semiconductor layer 506, the semiconductor layer 507, and the semiconductor layer 508. The insulating layer 509 functions as a planarization insulating layer in the display circuit and the photodetector. Note that the insulating layer 509 is not necessarily provided. The conductive layer 510 The conductive layer 510 The conductive layer 510 A structure example of the input-output device in this embodiment is described with reference to The input-output device illustrated in The light-blocking layer 513 is provided on part of one surface of the substrate 512. The coloring layer 514 is provided on part of the substrate 512 where the light-blocking layer 513 is not provided, and overlaps with the semiconductor layer 506, the semiconductor layer 507, and the semiconductor layer 508. The coloring layer 515 overlaps with the coloring layer 514. The insulating layer 516 is provided on the one surface of the substrate 512 with the light-blocking layer 513, the coloring layer 514, and the coloring layer 515 provided therebetween. The conductive layer 517 is provided on the one surface of the substrate 512. The conductive layer 517 functions as a common electrode in the display circuit. Note that in the photodetector, the conductive layer 517 is not necessarily provided. The liquid crystal layer 518 is provided between the conductive layer 510 Note that the conductive layer 510 Further, the components of the input-output device illustrated in As each of the substrate 500 and the substrate 512, it is possible to use a substrate that can be used as the substrate 400 As the conductive layers 501 As the insulating layer 502, it is possible to use a layer of a material that can be used for the insulating layer 402 As the semiconductor layers 503 As the conductive layers 504 As the insulating layer 505, it is possible to use a layer of a material that can be used for the oxide insulating layer 407 The semiconductor layer 506 is a semiconductor layer with one conductivity (one of p-type conductivity or n-type conductivity). As the semiconductor layer 506, a semiconductor layer containing silicon can be used, for example. The semiconductor layer 507 has lower resistance than the semiconductor layer 506. As the semiconductor layer 507, a semiconductor layer containing silicon can be used, for example. The semiconductor layer 508 is a semiconductor layer whose conductivity is different from the conductivity of the semiconductor layer 506 (the other of the p-type conductivity and the n-type conductivity). As the semiconductor layer 508, a semiconductor layer containing silicon can be used, for example. As the insulating layer 509 and the insulating layer 516, for example, a layer of an organic material such as polyimide, acrylic, or benzocyclobutene can be used. Alternatively, as the insulating layer 509, a layer of a low-dielectric constant material (also referred to as a low-k material) can be used. As the conductive layers 510 The conductive layers 510 As the conductive high-molecular compound, a so-called it electron conjugated conductive high-molecular compound can be used. For example, polyaniline and/or a derivative thereof, polypyrrole and/or a derivative thereof, polythiophene and/or a derivative thereof, and a copolymer of two or more kinds of those materials can be given as the it electron conjugated conductive high-molecular compound. As the light-blocking layer 513, a layer formed using a metal material can be used, for example. The coloring layer 514 is one of a red coloring layer and a blue coloring layer. The coloring layer 515 is the other of the red coloring layer and the blue coloring layer. Note that the stack of the coloring layer 514 and the coloring layer 515 functions as a filter for absorbing visible light. The liquid crystal layer 518 can be, for example, a layer containing a TN liquid crystal, an OCB liquid crystal, an STN liquid crystal, a VA liquid crystal, an ECB liquid crystal, a GH liquid crystal, a polymer dispersed liquid crystal, or a discotic liquid crystal can be used. Note that for the liquid crystal layer 518, a liquid crystal that transmits light when voltage applied to the conductive layer 510 As described with reference to As described with reference to In this embodiment, electronic devices each including the input-output device described in the above embodiment are described. Structure examples of electronic devices in this embodiment are described with reference to The electronic device illustrated in The electronic device illustrated in The electronic device illustrated in The electronic device illustrated in The electronic device illustrated in The housing 1401 and the housing 1403 are connected to each other with the hinge 1411 so that the e-book reader illustrated in In addition, in the e-book reader illustrated in For example, when the input-output device in the above embodiment is used for either one or both the input-output portion 1405 and the input-output portion 1407, operation of the e-book reader or input of data to the e-book reader can be performed with a finger or a pen. The electronic device illustrated in As described with reference to This application is based on Japanese Patent Application serial No. 2010-137090 filed with Japan Patent Office on Jun. 16, 2010, the entire contents of which are hereby incorporated by reference. Accuracy of photodetection is improved. An input-output device includes a light unit including Z (Z is a natural number of 3 or more) first light-emitting diodes that emit light with a wavelength in a visible light range and a second light-emitting diode that emits light with a wavelength in an infrared range; a display circuit that is supplied with a display selection signal, supplied with a display data signal in accordance with the display selection signal, and set to be in a display state based on data of the input display data signal; and Y (Y is a natural number) photodetectors including a filter for absorbing light with a wavelength in a visible light range, supplied with a photodetection control signal is input, and generating data based on the illuminance of incident light in accordance with the input photodetection control signal. 1. (canceled) 2. A display device with an infrared optical sensor comprising:
a light unit comprising a first light-emitting diode that emits light with a wavelength in a visible light range and a second light-emitting diode that emits light with a wavelength in an infrared range; a plurality of display circuits overlapping with the light unit; and a plurality of photodetectors overlapping with the light unit, wherein the plurality of photodetectors include a filter for absorbing light with a wavelength in a visible light range, wherein the second light-emitting diode is configured not to emit light when the first light-emitting diode emits light, wherein the plurality of display circuits are configured to receive a display selection signal, to receive a display data signal in accordance with the display selection signal, and to set a display state in accordance with the display data signal, and wherein the plurality of photodetectors are configured to generate data based on illuminance of incident light. 3. The display device according to wherein each of the plurality of photodetectors comprises a first transistor, a second transistor and a photoelectric conversion element, wherein one of a source electrode and a drain electrode of the first transistor is electrically connected to the photoelectric conversion element, wherein a gate of the second transistor is electrically connected to the other of the source electrode and the drain electrode of the first transistor, wherein the photoelectric conversion element comprises a first conductive layer, a semiconductor layer over the first conductive layer and a second conductive layer over the semiconductor layer, wherein the semiconductor layer comprises a silicon layer, wherein one of the source electrode and the drain electrode of the first transistor is electrically connected to the second conductive layer, wherein the first transistor and the second transistor are field effect transistors, and wherein the photoelectric conversion element is configured to supply current between the first conductive layer and the second conductive layer in accordance with the illuminance of the incident light. 4. The display device according to wherein the first transistor comprises an oxide semiconductor layer, wherein the source electrode and the drain electrode of the first transistor are over and in contact with the oxide semiconductor layer, wherein the oxide semiconductor layer comprises an intrinsic or substantially intrinsic oxide semiconductor, and wherein the oxide semiconductor layer has a carrier concentration of lower than 1×1014/cm3. 5. The display device according to a reading circuit configured to read the data based on the illuminance of the incident light supplied from the plurality of photodetectors; and a data processing circuit configured to generate difference data between two pieces of data based on the illuminance of the incident light. 6. The display device according to wherein the source electrode, the drain electrode and the first conductive layer are over and in contact with a first insulating layer, and wherein a second insulating layer is provided so as to be in contact with an oxide semiconductor layer and the first conductive layer. 7. The display device according to wherein an off-state current of the first transistor per micrometer of channel width is between 100 yA and about 10−30A. 8. A display device with an infrared optical sensor comprising:
a first light unit comprising a first light-emitting diode that emits light with a wavelength in a visible light range; a second light unit comprising a second light-emitting diode that emits light with a wavelength in an infrared range; a plurality of display circuits provided between the first light unit and the second light unit; and a plurality of photodetectors provided between the first light unit and the second light unit, wherein the plurality of photodetectors include a filter for absorbing light with a wavelength in a visible light range, wherein the second light-emitting diode is configured not to emit light when the first light-emitting diode emits light, wherein the plurality of display circuits are configured to receive a display selection signal, to receive a display data signal in accordance with the display selection signal, and to set a display state in accordance with the display data signal, and wherein the plurality of photodetectors are configured to generate data based on illuminance of incident light. 9. The display device according to wherein each of the plurality of photodetectors comprises a first transistor, a second transistor and a photoelectric conversion element, wherein one of a source electrode and a drain electrode of the first transistor is electrically connected to the photoelectric conversion element, wherein a gate of the second transistor is electrically connected to the other of the source electrode and the drain electrode of the first transistor, wherein the photoelectric conversion element comprises a first conductive layer, a semiconductor layer over the first conductive layer and a second conductive layer over the semiconductor layer, wherein the semiconductor layer comprises a silicon layer, wherein one of the source electrode and the drain electrode of the first transistor is electrically connected to the second conductive layer, wherein the first transistor and the second transistor are field effect transistors, and wherein the photoelectric conversion element is configured to supply current between the first conductive layer and the second conductive layer in accordance with the illuminance of the incident light. 10. The display device according to wherein the first transistor comprises an oxide semiconductor layer, wherein the source electrode and the drain electrode of the first transistor are over and in contact with the oxide semiconductor layer, wherein the oxide semiconductor layer comprises an intrinsic or substantially intrinsic oxide semiconductor, and wherein the oxide semiconductor layer has a carrier concentration of lower than 1×1014/cm3. 11. The display device according to a reading circuit configured to read the data based on the illuminance of the incident light supplied from the plurality of photodetectors; and a data processing circuit configured to generate difference data between two pieces of data based on the illuminance of the incident light. 12. The display device according to wherein the source electrode, the drain electrode and the first conductive layer are over and in contact with a first insulating layer, and wherein a second insulating layer is provided so as to be in contact with an oxide semiconductor layer and the first conductive layer. 13. The display device according to wherein an off-state current of the first transistor per micrometer of channel width is 100 yA or less and about 10−30A or more. 14. A display device with an infrared optical sensor comprising:
a first light-emitting diode that emits light with a wavelength in a visible light range, a second light-emitting diode that emits light with a wavelength in an infrared range; a plurality of display circuits overlapping with the second light-emitting diode; and a plurality of photodetectors overlapping with the second light-emitting diode, wherein the plurality of photodetectors include a filter for absorbing light with a wavelength in a visible light range, wherein the second light-emitting diode is configured not to emit light when the first light-emitting diode emits light, wherein the plurality of display circuits are configured to receive a display selection signal, to receive a display data signal in accordance with the display selection signal, and to set a display state in accordance with the display data signal, and wherein the plurality of photodetectors are configured to generate data based on illuminance of incident light. 15. The display device according to wherein each of the plurality of photodetectors comprises a first transistor, a second transistor and a photoelectric conversion element, wherein one of a source electrode and a drain electrode of the first transistor is electrically connected to the photoelectric conversion element, wherein a gate of the second transistor is electrically connected to the other of the source electrode and the drain electrode of the first transistor, wherein the photoelectric conversion element comprises a first conductive layer, a semiconductor layer over the first conductive layer and a second conductive layer over the semiconductor layer, wherein the semiconductor layer comprises a silicon layer, wherein one of the source electrode and the drain electrode of the first transistor is electrically connected to the second conductive layer, wherein the first transistor and the second transistor are field effect transistors, and wherein the photoelectric conversion element is configured to supply current between the first conductive layer and the second conductive layer in accordance with the illuminance of the incident light. 16. The display device according to wherein the first transistor comprises an oxide semiconductor layer, wherein the source electrode and the drain electrode of the first transistor are over and in contact with the oxide semiconductor layer, wherein the oxide semiconductor layer comprises an intrinsic or substantially intrinsic oxide semiconductor, and wherein the oxide semiconductor layer has a carrier concentration of lower than 1×1014/cm3. 17. The display device according to a reading circuit configured to read the data based on the illuminance of the incident light supplied from the plurality of photodetectors; and a data processing circuit configured to generate difference data between two pieces of data based on the illuminance of the incident light. 18. The display device according to wherein the source electrode, the drain electrode and the first conductive layer are over and in contact with a first insulating layer, and wherein a second insulating layer is provided so as to be in contact with an oxide semiconductor layer and the first conductive layer. 19. The display device according to wherein an off-state current of the first transistor per micrometer of channel width is between 100 yA and about 10−30A.BACKGROUND OF THE INVENTION
REFERENCE
SUMMARY OF THE INVENTION
BRIEF DESCRIPTION OF THE DRAWINGS
DETAILED DESCRIPTION OF THE INVENTION
Embodiment 1
Embodiment 2
Embodiment 3
Embodiment 4
Embodiment 5
Embodiment 6
Embodiment 7
SMP1 1.5 1 × 105 SMP2 3 1 × 105 SMP3 10 1 × 105 SMP4 1.5 1 × 106 SMP5 3 1 × 106 SMP6 10 1 × 106
[Formula 1]
[Formula 2]Embodiment 8
Embodiment 9

















