I used a 4040 counter to count the pulses from an encoder. I then connected two counter output signals to an AND gate, and after that one way is go to reset 4040 counter. The issue is that when I connect the gates in this way, there is no logic-high output signal from the 2 pins of the counter. If I disconnect them like the image below, I can read the output signal again from a multimeter, and other pins always have a signal.
I measured the AND gate and NAND gate; there are no short circuits. Why there is no output signal when connect these gate?