Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
I tried replacing the U5 with exclusive or but it count up to 2 instead then it count down.Looking at your circuit , its meant to count up to N then back down again?. One problem I can see is that U5 (AND) is inhibited by the 0 from the switch, so its output is always a 0, so the output of U9 is also always a 0 because it always has a 0 on a input (from U5). Use exclusive OR gate at this point.
Frank