Forums: » Register « |  Free Tools |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support |

New Free Tools on Dev Shed!

#1
November 4th, 2012, 06:47 PM
 lisa92
Contributing User

Join Date: Oct 2011
Posts: 43
Time spent in forums: 10 h 33 m 29 sec
Reputation Power: 3
Logic question regarding RESET?

this is the truth table I have when Reset=0 (JK flip flop)
R I0 I1 Q0 Q1
0 0 0 1 0
0 0 0 1 1
0 0 0 1 0
0 0 0 1 1
0 0 1 0 0
0 0 1 1 0
0 0 1 0 1
0 0 1 1 1
0 1 0 1 1
0 1 0 0 0
0 1 0 1 1
0 1 0 0 0
0 1 1 0 1
0 1 1 0 0
0 1 1 0 0
0 1 1 0 1
0 1 1 0 0

What happens when Reset=1? Output =0?

#2
November 4th, 2012, 10:35 PM
 b49P23TIvg
Contributing User

Join Date: Aug 2011
Posts: 4,213
Time spent in forums: 1 Month 3 Weeks 2 Days 18 h 4 m 30 sec
Reputation Power: 455
according to this link and my code, which agrees,
Code:
```┌─┬─┬─┬──────────────────────────────────────────────┐
│J│K│Q│(J and not Q) or ((not K) and Q) JK Flip Flop │
├─┼─┼─┼──────────────────────────────────────────────┤
│0│0│0│0                                             │
│0│0│1│1                                             │
│0│1│0│0                                             │
│0│1│1│0                                             │
│1│0│0│1                                             │
│1│0│1│1                                             │
│1│1│0│1                                             │
│1│1│1│0                                             │
└─┴─┴─┴──────────────────────────────────────────────┘
```

clearly,
j=1 k=1 q toggles,
j=1 k=0 q sets
j=0 k=1 q resets
j=0 k=1 q holds.
__________________
[code]Code tags[/code] are essential for python code!

Last edited by b49P23TIvg : November 4th, 2012 at 10:41 PM.

 Viewing: Dev Shed Forums > Programming Languages > C Programming > Logic question regarding RESET?