- Asked 2/22
- 2076 Asoj
JK flip-flop with tables and timing diagram
Short answer
A J-K flip-flop is a clocked bistable with J (set) and K (reset). J=K=1 toggles; J=K=0 holds. Characteristic equation: Q+ = J·Q' + K'·Q. Excitation: 0→1 needs J=1, K=x; 1→0 needs J=x, K=1.
Explain the operation of J-K flip flop with its logical diagram, characteristics table, characteristics equation, excitation table and timing diagram.
A J-K flip-flop is a clocked flip-flop with inputs J (set) and K (reset). Unlike the S-R flip-flop, the input J = K = 1 is allowed and makes the output toggle.
Logic diagram
Edge-triggered J-K using NAND gates; CLK* is a narrow pulse made at each rising edge of CLK by an edge detector (CLK ANDed with its delayed complement):
+------+ S* +------+
J -------| |----->| |
CLK* ----| NAND | | NAND |-----> Q
Q' ------| G1 | Q'->| G3 |
+------+ +------+
+------+ R* +------+
K -------| |----->| |
CLK* ----| NAND | | NAND |-----> Q'
Q ------| G2 | Q-->| G4 |
+------+ +------+
G3 and G4 are cross-coupled (NAND latch).
Q' is fed back to G1, Q is fed back to G2.
+---------+
J ---| J Q |--- Q
CLK -|> |
K ---| K Q' |--- Q'
+---------+
'>' = edge triggered (a bubble 'o>' means
negative edge triggered)
Operation
- J = K = 0: G1, G2 disabled, latch holds the state.
- J = 0, K = 1: at the edge G2 gives 0 (if Q = 1) and resets: Q = 0.
- J = 1, K = 0: at the edge G1 gives 0 (if Q = 0) and sets: Q = 1.
- J = K = 1: the gate with the 1 feedback fires, the output toggles once per edge.
Characteristic table
| J | K | Q | Q+ |
|---|---|---|---|
| 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 |
Characteristic equation
K-map for Q+ (rows Q, columns JK)
Q\JK 00 01 11 10
0 0 0 1 1
1 1 0 0 1
Groups: J.Q' (row 0, cells 11,10)
K'.Q (row 1, cells 00,10)
Excitation table
| Q | Q+ | J | K |
|---|---|---|---|
| 0 | 0 | 0 | x |
| 0 | 1 | 1 | x |
| 1 | 0 | x | 1 |
| 1 | 1 | x | 0 |
Timing diagram (positive edge triggered, Q initially 0)
1 2 3 4 5 6 7
CLK _|‾|_|‾|_|‾|_|‾|_|‾|_|‾|_|‾|
J ‾‾‾|___|‾‾‾‾‾‾‾|___|‾‾‾‾‾‾‾|
K _______|‾‾‾‾‾‾‾‾‾‾‾|___|‾‾‾|
Q _|‾‾‾‾‾‾‾|___|‾‾‾|___|‾‾‾|__
| Edge | J | K | Q before | Q after | Action |
|---|---|---|---|---|---|
| 1 | 1 | 0 | 0 | 1 | Set |
| 2 | 0 | 0 | 1 | 1 | Hold |
| 3 | 1 | 1 | 1 | 0 | Toggle |
| 4 | 1 | 1 | 0 | 1 | Toggle |
| 5 | 0 | 1 | 1 | 0 | Reset |
| 6 | 1 | 0 | 0 | 1 | Set |
| 7 | 1 | 1 | 1 | 0 | Toggle |
✓ Answer checked by Claude Opus 5.5 (high effort)
Related questions
- SR flip-flop with tables, equation, timing · Digital Logic, chapter 6 · asked 2×
- JK flip-flop characteristic and excitation tables · Digital Logic, chapter 6 · asked 2×
- SR flip-flop diagram, excitation table, equation · Digital Logic, chapter 6
- Edge triggered JK flip-flop with excitation table · Digital Logic, chapter 6
- JK flip-flop with symbol, equation, state diagram · Digital Logic, chapter 6
- D flip-flop with excitation table · Digital Logic, chapter 6
- JK over SR advantages; D flip-flop · Digital Logic, chapter 6
- JK flip-flop operation and truth table · Basic Electronics Engineering, chapter 6
- SR flip-flop operation · Basic Electronics Engineering, chapter 6 · asked 6×
- Combinational vs sequential; JK flip-flop · Basic Electronics Engineering, chapter 6
- Types of flip-flops; JK flip-flop · Basic Electronics Engineering, chapter 6 · asked 2×