PURPOSE: To simplify the circuit constitution and to realize the counter for the variable number of steppings whose number of steppings is made variable by bringing only a 2nd counter to a count enable state at all times in the specific case.
CONSTITUTION: Suppose that a 1st counter 1 is always set to a count disable state and a 2nd counter 2 is always set to a count enable state, then every time a clock signal 7 is inputted, a counted value 12 is updated by 2n because the bit weight of a bit LSB 2 is selected to be 2n. When an external setting operating mode signal 6 is in the L state, the external setting operating mode signal 6 acts like a count enable signal 6 and only a carry signal 10 acts like a count enable signal 11 via an OR gate 3 to the counter 2. Thus, the counters 1, 2 act like 2n+m-ary up-counter. Thus, the circuit constitution is simplified and the number of steppings is made variable.