Master‑slave JK flip‑flop. The master stage is transparent while the clock is low; the slave stage captures the master’s state on the rising edge, producing edge‑triggered behaviour.
3.5 Timing Diagram (positive‑edge trigger)
Typical timing diagram. The data inputs (J, K) must be stable for the setup time before the rising clock edge and for the hold time after the edge. Q changes only on the clock’s rising edge.
3.6 Excitation (Transition) Table
Current Q
Next Q+
J
K
Explanation
0
0
0
X
Hold (K may be 0 or 1)
0
1
1
X
Set
1
0
X
1
Reset
1
1
X
0
Hold
“X” denotes a “don’t‑care” condition – either value of that input will produce the required transition.
3.7 Level‑Sensitive vs Edge‑Triggered Summary
SR latch: level‑sensitive; output follows inputs while the enable is asserted.
JK flip‑flop (master‑slave): edge‑triggered; output changes only on the active clock transition, eliminating race conditions in synchronous designs.
4. Other Common Flip‑Flops
4.1 D (Data) Flip‑Flop
D
Qnext
Operation
0
0
Reset
1
1
Set
Characteristic equation:
$$Q_{\text{next}} = D$$
Uses: simple data storage, shift registers, and as the basic building block for edge‑triggered memory cells.
Commonly used in binary counters and frequency‑division circuits (divide‑by‑2, divide‑by‑4, …).
5. Comparison of SR and JK Flip‑Flops
Aspect
SR Flip‑Flop
JK Flip‑Flop
Invalid Input Combination
S = R = 1 (undefined)
J = K = 1 → defined toggle
Triggering
Level‑sensitive (requires gating for synchronisation)
Edge‑triggered (master‑slave) – ideal for synchronous circuits
Typical Use in Counters
Needs extra gating to obtain toggle behaviour
Toggle mode makes it the natural choice for binary counters
Complexity
Two NAND/NOR gates
Four NAND gates + clock gating (more gates, but more functionality)
Common Applications
Debounce circuits, simple set‑reset storage
Registers, synchronous state machines, frequency division
6. Practical Applications
Registers & RAM cells – SR for simple set‑reset storage; JK or D for edge‑triggered register stages.
Frequency division – A JK flip‑flop wired in toggle mode (or a T flip‑flop) acts as a divide‑by‑2 circuit.
Finite‑State Machines – Flip‑flops hold the present state; JK or D are typically used for synchronous state updates.
Debounce circuits – An SR latch can hold a stable output while a mechanical switch settles.
Ripple and synchronous counters – Cascading T or JK flip‑flops produces binary count sequences.
7. Summary
The SR flip‑flop introduces the basic set‑reset concept but suffers from an illegal input condition. The JK flip‑flop removes this limitation by defining a toggle operation, and when realised as a master‑slave arrangement it provides edge‑triggered behaviour essential for reliable synchronous design. Mastery of truth tables, characteristic equations, Karnaugh‑map simplifications, excitation tables and timing considerations equips students to design robust sequential circuits and to select the most appropriate flip‑flop (SR, JK, D, T) for a given application.