摘要 |
PURPOSE:To prevent the counter value from being disordered by locking the counter only in a disorder period of the counter value. CONSTITUTION:When an up/down switching signal 2 is varied, a detecting means 7 operates as mentioned below. Namely, a switching detection signal 10 becomes 09 when the held value of a D type flip-flop FF 8 is different from the value at a next clock edge; and T type FFs 510, 520, and 530 are locked, so that the detecting means does not operate even when an effective edge is applied to the clock input. Consequently, the counted value prevented from being disordered owing to a hazard (extremely narrow excessive pulse) which is generated at the time of count switching and exceeded. Then a clock signal 1 is applied to an FF 8 and a determination up/down switching signal 9 is outputted; and the switching detection signal 10 becomes 1 after an effective edge is switched by an exclusive OR circuit, thereby unlocking the T type FF 5. Then the counter counts in the direction which is switched to by the input of the signal 1. Thus, the counted value is prevented from being disordered. |