Understanding D and JK Flip Flops

  • Thread starter Xyius
  • Start date
In summary: If anyone can help me out and clear some of this up it would be most appreciated!I think the website is using active low logic, which is why you're so confused. Typically the S=1, R=1 is illegal in an SR flip flop. JK is the same flip flop except that S=1, R=1 "jams" the flip flop and causes it to toggle. In summary, the website is using active low logic and this can be confusing. You would be better off reading a textbook on Logic Design.
  • #1
Xyius
508
4
Hey Everyone,

I am just starting now to REALLY get into digital circuits and I am trying my hardest to learn about Flip Flops via the internet. What I am finding is a horrible amount of inconsistencies and it is confusing me! First I started here..

http://computer.howstuffworks.com/boolean4.htm

One inconsistency I found is that he says r=1 and s=1 is not allowed and r=0, s=0 remembers, but EVERYWHERE else I read it says the opposite!

Then I moved on to the JK flip flops. (same article)
I quickly realized that this article does NOT use the standard symbol for the JK flip flop. I am trying to match together all these inconsistencies. So this is what I understand..

In a normal JK flip flop symbol..
S(or the top pin) means "Preset" which I am unsure of what that exactly means.
R(or the bottom pin) means "Clear"
And the triangle symbol means clock.
J and K are the parameters used to control the output Q and Q'.

I also noticed that the truth tables from different sources were different. Why is it that some of the tables don't include "Preset" or "Clear"?? The table from "How stuff works" includes the clock signal, but the table from wiki does not it has a "comment" and a "Qnext" which I do not know what that means.
http://en.wikipedia.org/wiki/Flip-flop_(electronics)#JK_flip-flop

Then I tried opening a circuit simulator any messing around with the JK flip flop and I couldn't replicate ANY of the things it talks about in the "How stuff works" article. I also tried looking to other sources but I haven't had too much time yet to go through these sources in detail.

If anyone can help me out and clear some of this up it would be most appreciated!
 
Engineering news on Phys.org
  • #2
I think the website is using active low logic, which is why you're so confused. Typically the S=1, R=1 is illegal in an SR flip flop. JK is the same flip flop except that S=1, R=1 "jams" the flip flop and causes it to toggle.

You'd probably be better off reading a textbook on Logic Design rather than wading through a bunch of websites, although the Wikipedia article is pretty good.
 
  • #3
carlgrace said:
I think the website is using active low logic, which is why you're so confused. Typically the S=1, R=1 is illegal in an SR flip flop. JK is the same flip flop except that S=1, R=1 "jams" the flip flop and causes it to toggle.

You'd probably be better off reading a textbook on Logic Design rather than wading through a bunch of websites, although the Wikipedia article is pretty good.

Do you have any good books to recommend?
 
  • #4
Xyius said:
Hey Everyone,

I am just starting now to REALLY get into digital circuits and I am trying my hardest to learn about Flip Flops via the internet. What I am finding is a horrible amount of inconsistencies and it is confusing me! First I started here..

http://computer.howstuffworks.com/boolean4.htm

One inconsistency I found is that he says r=1 and s=1 is not allowed and r=0, s=0 remembers, but EVERYWHERE else I read it says the opposite!
Well we can treat RS flip-flop as a "black box" or we can use a logic gate to build RS flip-flop.
When we treat RS flip-flop as a "black box" we use this symbol

04177.png


But we can all so use a logic gate to build RS FF. And we can use NOR and NAND gates.

attachment.php?attachmentid=58169&stc=1&d=1366814137.png


So as you can see for NOR gate RS FF the "idle state" is LOW and for NAND gate the "idle state" is HIGH.

For NOR RS we need a logic 1 at "SET" input to make a Q output rise to a logic 1 level.
And we need a logic 1 at "RESET" input to make a Q output back to a logic 0 level.
So we can say that NOR RS flip-flop is a active high device (active high means function gets done when input is in high state).

And NAND RS flip-flop is a "active low device".
We need a logic 0 at "SET" input to make a Q output rise to a logic 1 level.
And we need a logic o at "RESET" input to make a Q output back to a logic 0 level.

I hope that now you can see the difference between RS FF

Xyius said:
Then I moved on to the JK flip flops. (same article)
I quickly realized that this article does NOT use the standard symbol for the JK flip flop. I am trying to match together all these inconsistencies. So this is what I understand..

In a normal JK flip flop symbol..
S(or the top pin) means "Preset" which I am unsure of what that exactly means.
R(or the bottom pin) means "Clear"
And the triangle symbol means clock.
J and K are the parameters used to control the output Q and Q'.

I also noticed that the truth tables from different sources were different. Why is it that some of the tables don't include "Preset" or "Clear"?? The table from "How stuff works" includes the clock signal, but the table from wiki does not it has a "comment" and a "Qnext" which I do not know what that means.
http://en.wikipedia.org/wiki/Flip-flop_(electronics)#JK_flip-flop
Normal JK flip-flop looks like this

http://upload.wikimedia.org/wikipedia/commons/3/37/JK_Flip-flop_%28Simple%29_Symbol.svg

And this JK has a "synchronous" inputs, a clock trigger flip flop.
Inputs have control over the flip-flop's outputs only when the clock pulse allows.

But some time we can see this type of a JK flip-flop.
220px-JK_Flip-flop.svg.png


And this JK flip flop act just like a normal JK plus additional RS flip-flop.
Asynchronous inputs (SET or RESET) force the outputs state independent of the clock input.
This RS inputs have a higher priority than the clock input.
 

Attachments

  • RS.PNG
    RS.PNG
    6.8 KB · Views: 813
  • #5
Thank you SO MUCH Jony! You have cleared everything up for me! :D!
 
  • #6
Xyius said:
Do you have any good books to recommend?

Fundamentals of Logic Design is a classic in the field, and it isn't at too high a level. The older editions are cheap and still very valuable since the fundamentals haven't changed much in years. The fourth edition is the one I studied in school and is just a couple of bucks now.

http://www.bookbyte.com/textbooks/fundamentals-of-logic-design-by-roth/9780534954727-0534954723?utm_source=googlebase&utm_medium=search&gclid=clpljyfe47ycfadxqgodbe4a9g
 

1. What is the purpose of D and JK flip flops?

D and JK flip flops are types of sequential logic circuits that are used to store and manipulate binary data. They are commonly used in digital electronics to store state information, perform clocked logic operations, and control the timing of digital signals.

2. What is the difference between a D flip flop and a JK flip flop?

The main difference between a D flip flop and a JK flip flop is that a D flip flop has only a single input, while a JK flip flop has two inputs (J and K). The J and K inputs in a JK flip flop allow for more versatile functionality and can overcome some of the limitations of a D flip flop.

3. How do D and JK flip flops work?

D and JK flip flops both have a clock input, which is used to control when the input data is transferred to the output. When the clock input is triggered, the input data is stored in the flip flop and the output changes accordingly. In a D flip flop, the output simply follows the input. In a JK flip flop, the output can be manipulated based on the inputs and the current state of the flip flop.

4. What are the applications of D and JK flip flops?

D and JK flip flops are essential components in digital systems and have a wide range of applications. They are commonly used in counters, shift registers, memory chips, and other digital circuits where sequential logic is needed. They are also used in microcontrollers and other electronic devices that require digital signal processing.

5. What are the advantages of using D and JK flip flops?

D and JK flip flops offer several advantages over other types of logic circuits. They are simple and easy to understand, making them suitable for use in educational settings. They also have a compact design and consume less power compared to other types of sequential logic circuits. Additionally, D and JK flip flops can be cascaded to form larger circuits, allowing for more complex operations to be performed.

Similar threads

  • Electrical Engineering
Replies
34
Views
4K
  • Electrical Engineering
Replies
10
Views
3K
  • Engineering and Comp Sci Homework Help
Replies
20
Views
2K
  • Electrical Engineering
Replies
1
Views
2K
  • Electrical Engineering
Replies
1
Views
2K
Replies
5
Views
2K
  • Electrical Engineering
Replies
6
Views
3K
  • Engineering and Comp Sci Homework Help
Replies
1
Views
2K
  • Electrical Engineering
Replies
4
Views
8K
  • Electrical Engineering
Replies
28
Views
3K
Back
Top