- Asked 2/15
- 2073 Bhadra · 1+4 marks
- 2069 Poush · 2+4 marks
Types of flip-flops; JK flip-flop
Short answer
Types: SR, D, JK, T. JK flip-flop eliminates the invalid state: with J=K=1 it toggles; J=1,K=0 sets; J=0,K=1 resets; J=K=0 holds. Characteristic equation Q(n+1)=JQ'+K'Q. Logic uses two 3-input NANDs with feedback; race-around avoided by edge-triggering.
Mention the types of flip flops and explain the operation of J-K flip flop with necessary diagrams (logic diagram).
Types of flip-flops
- SR (set-reset) flip-flop
- D (data/delay) flip-flop
- JK flip-flop
- T (toggle) flip-flop
(Each can be level-triggered or edge-triggered, and master-slave versions also exist.)
JK flip-flop
The JK flip-flop removes the invalid state of the SR flip-flop. With J = K = 1, it toggles.
+-------------------+
J ---->| |----> Q
CLK -->|> |
K ---->| |----> Q'
+-------------------+
Logic diagram:
J ---[NAND1]--S1--[NAND3]--+------ Q
CLK---[ (3-in) ] ^ |
Q' ---[ ] | |
K ---[NAND2]--R1--[NAND4]--+------ Q'
CLK---[ (3-in) ]
Q ---[ ]
Gate 1 has inputs J, CLK and Q'. Gate 2 has inputs K, CLK and Q. Gates 3 and 4 are cross-coupled NAND gates forming the latch (Q' is also fed to gate 3, and Q to gate 4).
Operation and truth table
- CLK = 0: gates 1 and 2 output 1, so the latch holds its state.
- J = 1, K = 0: if Q = 0, gate 1 is enabled (Q' = 1), so S1 = 0 when CLK = 1 and Q becomes 1 (set).
- J = 0, K = 1: if Q = 1, gate 2 is enabled, so R1 = 0 and Q becomes 0 (reset).
- J = K = 1: only the gate whose feedback input is 1 is enabled, so the state flips (toggle).
| J | K | Q(n+1) | Action |
|---|---|---|---|
| 0 | 0 | Q(n) | No change |
| 0 | 1 | 0 | Reset |
| 1 | 0 | 1 | Set |
| 1 | 1 | Q(n)' | Toggle |
Characteristic equation: Q(n+1) = J·Q' + K'·Q.
Because of the feedback from Q and Q', J = K = 1 cannot cause an invalid state. A drawback is that if the clock pulse is long, the output keeps toggling (race-around condition). This is avoided by edge triggering or a master-slave arrangement.
✓ Answer checked by Claude Opus 5.5 (high effort)
Related questions
- JK flip-flop operation and truth table · Basic Electronics Engineering, chapter 6
- Combinational vs sequential; JK flip-flop · Basic Electronics Engineering, chapter 6
- SR flip-flop operation · Basic Electronics Engineering, chapter 6 · asked 6×
- Edge triggered D flip-flop with preset, clear · Basic Electronics Engineering, chapter 6
- JK over SR advantages; D flip-flop · Digital Logic, chapter 6
- JK flip-flop with tables and timing diagram · Digital Logic, chapter 6 · asked 2×
- JK flip-flop with symbol, equation, state diagram · Digital Logic, chapter 6
- D and T flip-flops; T to JK conversion · Digital Logic, chapter 6