A first output terminal Q of the first D type flip-flop 160 is connected to a first input terminal of a second OR gate circuit 168 which has five input terminals, one of the input terminals of a first AND gate circuit 170, and one of the input terminals of a second AND gate circuit 172.