
November 4th, 2012, 09:35 PM
|
 |
Contributing User
|
|
|
|
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 09:41 PM.
|