The invention relates to a constraint competition counting code circuit with in-phase shift method. Wherein, it comprises a 16-bit shift register (A), 16-bit shift register (B), 4-bit output register (C), initialize preset switch (D), initialize preset switch (E), while the highest and lowest bits of shift registers (A, B) are end-to-end connected, and the registers (A, B) are preset by the switches (D, E) into fixed character sequence; the counting impulse is connected to the shift control port (CLK) of 16-bit register; the 0 bits of registers (B, A) are connected to the lower two bits of 4-bit output latch; the twelve 12s of registers (B, A) are connected to the higher two bits of 4-bit output latch; after initialization preset, inputting impulse, using in-phase shift to count and output constraint competition counting code.