PURPOSE: To perform accurate addition and subtraction even with these signals inputted at a time by using a set/reset circuit which is set by one of two output signals of an overlap eliminating circuit and then reset by the other output signal.
CONSTITUTION: This counting circuit includes the 1st synchronizing differention circuit 2 which works at the leading edge of a clock, the 2nd synchronizing differention circuit 3 which works at the trailing edge of the clock, an overlap eliminating circuit 4 which eliminates an overlap part of two output signals of both differention circuits 2 and 3, a mixing circuit 5 which mixes two output signals of the circuit 4, a delay circuit 6 which delays the output of the circuit 5, a set/reset circuit 7 which is set by one of two output signals of the circuit 4 and then reset by the other output signal, and an up/down counter circuit 8 which has an addition/subtraction switching function. Thus two input signals if supplied at a time are accurately counted.
OKAMOTO HIROSHI