JK flip flop

Daniel Hammond

Jan 18, 2016
3
Joined
Jan 18, 2016
Messages
3
I am trying to simulate a JK flip flop in yenka. I have simulated an RS flip flop which gave the correct outputs as per the truth table when modifying it to a jk flip flop it does not give the correct outputs, why is this?
 

Attachments

  • jk flip flop.jpg
    jk flip flop.jpg
    16.2 KB · Views: 115

Harald Kapp

Moderator
Moderator
Nov 17, 2011
14,271
Joined
Nov 17, 2011
Messages
14,271
You have switches to put 5V (logic high) on the gates' inputs, but not for 0V (logic low). I don't know yenka, but could this be the cause?
 

Anon_LG

Jun 24, 2014
453
Joined
Jun 24, 2014
Messages
453
In yenka you are expected to include a "vdd" sign with one lead connected to a positive supply symbol and the other to a ground symbol. This will "power" all of your logic. No idea why this is a feature. You will find the necessary under "logic" if memory serves.

Also, when working with logic in yenka, you should use the premade logic inputs. This simplifies greatly.
 

Daniel Hammond

Jan 18, 2016
3
Joined
Jan 18, 2016
Messages
3
Thanks for the replies. I thought if the switch is open that would be logic low?

I would normally use the pre made logic inputs but the question (this is for an assignment) asks to use switches for inputs and for the clock pulse. I have drawn the circuit using the premade logic inputs and a logic indicator instead of the led but it is still not giving the correct output (jpg attached), in this image j,k and clock are set to high the output is high-high but should be low-high or high-low? Thanks.
 

Attachments

  • jkff.jpg
    jkff.jpg
    12.6 KB · Views: 121
Top