PURPOSE: To make it possible to count accurately high-speed clock pulses and control pulses, by counting oscillated pulses in a timer interruption generating circuit forming a program timer.
CONSTITUTION: When a switch 1 is switched to the side of a contact (b), external oscillated clocks are applied to a timer interruption generating circuit 17, which forms a program timer, through a frequency divider 16 of a one-touch microprocessor 10, and the circuit 17 counts these pulses. When the counted value reaches a value set through a CPV11, the circuit 17 generates a signal for clock or control. By this constitution where pulses are counted independently of the CPV, high-speed clock pulses and control pulses for a stop or the like are counted accurately with high precision.