How to Implement a JK Flip Flop for a Given State Diagram?

  • Thread starter Caldus
  • Start date
  • Tags
    Flip flop
In summary, the conversation involves using a state diagram to determine the necessary flip-flop inputs for a JK flip flop implementation. The next-state transitions are simplified using a Karnaugh map and the circuitry is drawn based on these algebraic expressions. The process is repeated for the output, which is also dependent on the current state and input. The provided solution involves two images showing the implementation for this process.
  • #1
Caldus
106
0
Given the table of a state diagram:

Code:
Qpresent | Input | Qnext | Output
0          0       0       0
0          1       1       1
1          0       1       0
1          1       0       0

So, output = Qpresent' * Input

I must use a JK flip flop implementation of all of this. I have to figure out what flip-flop inputs are needed to make the next-state transitions take place. Then I have to put those flip-flop inputs into a Karnaugh map and simplify the algebraic expression. Then I have to draw the circuitry to implement those algebraic expressions. Then I have to repeat the last two steps for the output; which is also a function of the current state and input. Any kind of help appreciated...
 
Engineering news on Phys.org
  • #2
here is a solution:

http://flexifirm.tripod.com/JK1.jpg
http://flexifirm.tripod.com/JK2.jpg

take care
 
Last edited by a moderator:
  • #3


The JK flip flop is a type of sequential logic circuit that can store one bit of information and has two stable states, 0 and 1. It has two inputs, J (set) and K (reset), and two outputs, Q (previous state) and Q' (complement of previous state). The state of the flip flop changes based on the inputs and the current state.

To implement the state diagram given, we need to determine the inputs for the J and K inputs of the JK flip flop. Looking at the state table, we can see that the output (Qnext) is equal to the input (J) when the input is 1 and the present state (Qpresent) is 0. Similarly, the output is equal to the complement of the input (K) when the input is 0 and the present state is 1. This can be represented as:

J = Input * Qpresent'
K = Input' * Qpresent

Using these expressions, we can create a Karnaugh map to simplify the algebraic expressions. The K-map will have two variables, Qpresent and Input. The simplified expressions for J and K are:

J = Input
K = Qpresent' * Input'

Next, we need to draw the circuitry to implement these expressions. The circuit will have two AND gates and one OR gate. The inputs to the AND gates will be the Input and Qpresent' for J, and Qpresent and Input' for K. The outputs of the AND gates will be connected to the inputs of the OR gate, and the output of the OR gate will be connected to the J and K inputs of the JK flip flop.

For the output, we can see that it is a function of the current state and input. The output is equal to the complement of the current state (Qpresent') multiplied by the input. This can be represented as:

Output = Qpresent' * Input

We can use the same K-map and circuitry as before, with the output being the final output of the OR gate.

In summary, to implement the state diagram using a JK flip flop, we need to determine the inputs for the J and K inputs, simplify the expressions using a Karnaugh map, draw the circuitry, and then repeat for the output. It is important to note that this is just one possible implementation and there may be other ways to implement the state diagram using a JK flip flop.
 

Related to How to Implement a JK Flip Flop for a Given State Diagram?

1. What is a JK flip flop?

A JK flip flop is a type of sequential logic circuit that has two inputs, J (set) and K (clear), and two outputs, Q and Q'. It is used to store one bit of information and can be triggered by either a positive or negative edge of a clock signal.

2. How does a JK flip flop work?

A JK flip flop works by using the J and K inputs to control when the output state changes. When both inputs are set to 0, the output remains unchanged. When J and K are both set to 1, the output toggles between 0 and 1. When J is set to 1 and K is set to 0, the output is set to 1. When J is set to 0 and K is set to 1, the output is cleared to 0.

3. What are the advantages of using a JK flip flop?

One advantage of using a JK flip flop is that it can be used for both sequential and combinational logic. It also has a built-in toggle function, making it useful for creating counters and other sequential circuits. Additionally, it is simple and easy to implement using basic logic gates.

4. How is a JK flip flop implemented?

A JK flip flop can be implemented using basic logic gates such as AND, OR, and NOT gates. The inputs J and K are connected to these gates along with the clock signal. The output Q can then be fed into other logic gates or used as an output for the circuit.

5. What are the applications of a JK flip flop?

JK flip flops have many applications in digital electronics, including frequency division, data storage, and counters. They are also commonly used in microcontrollers and other digital systems for their ability to store and manipulate data.

Similar threads

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