
- JK Flip Flop Definition: A JK flip flop is a sequential bi-stable single-bit memory device used in digital circuits.
- Edge-Triggered Operation: It can be triggered on the leading or trailing edge of the clock signal.
- Truth Table: The truth table of a JK flip flop shows how the outputs (Q and Q̅) change with different J and K inputs.
- Timing Diagram: The timing diagram of a JK flip flop shows the output states over time, especially in response to the clock signal.
- JK Flip Flop Timing Diagram: The timing diagram explains the behavior and state changes of the flip flop, crucial for understanding its operation in circuits.
What is a JK Flip Flop?
A JK flip-flop is a clocked bistable one-bit memory. It has one clock pin (CLK), two data pins (J and K) and two outputs (Q and Q̅). It can trigger on the leading edge or the trailing edge of the clock. The letters J and K are not a settled tribute to Jack Kilby. Eldred Nelson used those letters for a Hughes Aircraft flip-flop that toggled when both inputs were 1.
JK Flip Flop Circuit
The basic gates show how a JK flip flop works. A positive-edge triggered JK flip flop uses AND gates and NOR gates as shown in Figure 2.
Output Q is gated with input K and the clock in AND gate 1 (A1). Output Q̅ is gated with input J and the clock in AND gate 2 (A2).
The output of A1 feeds one input (X1) of NOR gate 1 (N1). The other input (Y1) is Q̅. NOR gate 2 (N2) takes X2 and Y2 from A2 and Q.
Initially let J = K = 0, Q = 0 and Q̅ = 1. Now consider the appearance of positive-edge of the first clock pulse at the CLK pin of the flip-flop. This results in X1 = 0 and X2 = 0. Then the output of N1 will become 0 as X1 = 0 and Q̅ = 1; while the output of N2 will become 1 as X2 = 0 and Q = 0. Thus one gets Q = 0 and Q̅ = 1.
However if one considers the initial states to be J = K = 0, Q = 1 and Q̅ = 0, then X1 = X2 = 0 which results in Q = 1 and Q̅ = 0. This indicates that the state of flip-flop outputs Q and Q̅ remains unchanged for the case of J = K = 0.
Now assume that J = 0, K = 1, Q = 0 and Q̅ = 1. Analyzing on the same grounds, one gets X1 = X2 = 0 which further results in Q = 0 (and hence Q̅ = 1). For the same case if Q and Q̅ were 1 and 0, respectively, then X1 = 1 and X2 = 0 which would result in Q = 0 (and hence Q̅ = 1).
This implies that if J = 0 and K = 1, then the flip-flop resets (Q = 0 and Q̅ = 1).
Next if J = 1, K = 0, Q = 1 and Q̅ = 0, then X1 = X2 = 0 which results in Q = 1 (and thus Q̅ = 0). For the same case if Q = 0 and Q̅ = 1, then X1 = 0, X2 = 1 which leads to Q̅ = 0 and hence Q is forced to value 1. This means that for the case of J = 1 and K = 0, flip-flop output will always be set i.e. Q = 1 and Q̅ = 0.
Similarly for J = 1, K = 1, Q = 1 and Q̅ = 0 one gets X1 = 1, X2 = 0 and Q = 0 (and hence Q̅ = 1); and if Q changes to 0 and Q̅ to 1, then X1 = 0, X2 = 1 which forces Q̅ to 0 and hence Q to 1. This indicates that for J = K = 1, flip-flop outputs toggle meaning which Q changes from 0 to 1 or from 1 to 0, and these changes are reflected at the output pin Q̅ accordingly.
However it is to be noted that the state of the flip-flops remains unaltered if there is no rising-edge of the clock at its input.
JK Flip Flop Truth Table
The truth table is Table I. The matching waveforms are Figure 3. A negative-edge flip-flop works the same way except the change occurs on the trailing clock edge instead of the leading edge.
JK Flip Flop Timing Diagram
Table II gives the next-state equation of the J K flip-flop. Figure 3 is the matching timing diagram for a JK flip flop.
In addition to the basic input-output pins shown in Figure 1, J K flip-flops can also have special inputs like clear (CLR) and preset (PR) (Figure 4). These can be used to bring the flip-flop to a definite state from its current state.
For example, the output can be made equal to 0 using CLR pin while it can set to 1 using PR pin. However these pins can be either active high (Figure 4a) or active low (Figure 4b) operated.
Figure 5 shows the waveforms for a positive-edge triggered JK flip flop with active high preset and clear pins.
Moreover it is to be noted that these pins can be either synchronous or asynchronous in nature meaning which the clear and set operations occur either depending on the clock (shown by green lines) or no (shown by red lines), respectively.
Further if the preset and clear pins are active low, then the changes observed in the diagram occur at the instant when clear and preset go low instead of high.
Related pages cover D Flip Flops, SR Flip Flops, Active Low SR Flip Flops and Gated SR Flip Flops.
You can learn more about JK flip flops and other logic gates by checking out our full list of logic gates questions.





