2
\$\begingroup\$

I'm trying to build a 2 bit counter using JK flip flops. In the simulation it counts up just fine, but when I switch it to count down, it starts at 3 and then goes to zero and counts up again. The clock is connected to a 555 timer, just didnt show it.

enter image description here

Design equation:

Y = M'Q + MQ'

Where Y is the output, those AND and OR gates. M is the control input (switch), it counts down if M = 1 (closed switch) and up if M = 0 (open switch)

\$\endgroup\$
1
  • \$\begingroup\$ +1 for a question which has all the information to be answered. As a sidenote, some of your wires could have less bends and joints than they do. Not that you should redraw the schematic you already have made, but there's room for improvement when you'll be drawing the next one. \$\endgroup\$ Sep 5, 2016 at 13:01

1 Answer 1

1
\$\begingroup\$

The flip flops contain the true count state and it seems that you should be using them to drive your display.

What happens if you disconnect wires to U14 A & B and connect
U14A to U15A pin 5 and
U14B to U2A pin 5.

ie take the two Q outputs as outputs.

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.