In order to perform operations securely, a high potential power supply is
connected to a gate electrode of a P-type TFT to which data signals are
input. Similarly, a low potential power supply is connected to a gate
electrode of an N-type TFT. Thus, a TFT to which data signals are input
can be turned OFF during a non-operating period. Switch TFT's are
provided between the high potential power supply and the P-type TFT and
between the low potential power supply and the N-type TFT so as to turn
the TFT OFF as required. Similarly, Switch TFT's are provided between a
data signal input terminal and a P-type TFT and between a data signal
input terminal and an N-type TFT such that a data signal can be input
thereto as required. The switching is controlled by using a latch signal
and an inverse latch signal. Therefore, a latch circuit without a level
shifter can be produced which can operate with stability.