selectively holding either a set state or a reset state by using a latch circuit;
driving the sWitch based on a state held by the latch circuit;
storing an electric charge Which is used When the sWitch is held ON;
generating a second comparing signal based on the state held by the latch circuit;