The invention relates to an even-number-of-times
Gray code counter circuit, which belongs to the field of integrated circuits. The even-number-of-times
Gray code counter circuit in the invention can count for 2N times; the output is an M-bit
Gray code, wherein M and N are both positive integers, and the specific value of M is determined by the formula; the Gray code counter proposed by the invention comprises M+1 groups of triggers and a control module; it is determined that in the M+1th group to the second group of triggers, the M-bit Gray code is output by taking the Q output end or QB output end of the M+1th D trigger to the second D trigger as the output end of the M+1th group to the second group of triggers according to the Nth time of counting; the control module comprises an
AND gate; the input end of the
AND gate is connected with the M-bit Gray code; the output end thereof outputs a flag
signal FLAG; when counting to the Nth time, the flag
signal FLAG is logic 1 and logic 0 for the rest; and the M+1 groups of triggers are respectively composed of one D trigger and respective logic circuit. According to the even-number-of-times Gray code counter circuit in the invention, atransition state does not appear between the adjacent counting code values; the circuit is simple; and counting of any even number of times is realized.