4.2D, JK and T flip-flops
The idea
Flip-flops change state only on a clock edge. The four standard kinds are SR, JK, D and T; each is defined by its characteristic equation for the next state Q⁺.
Think of it like this: A camera: it only records at the shutter click, whatever happens in between.
Why it exists
Reading an output sequence from flip-flops is one of the most common sequential-circuit questions.
How it works
- D: Q⁺ = D, the output copies the input.
- JK: 00 holds, 01 resets, 10 sets, 11 toggles: Q⁺ = JQ′ + K′Q.
- T: Q⁺ = T ⊕ Q, so T = 1 toggles.
- SR: like the latch but clocked; 11 is not allowed.
Worked example: JK with inputs 10, 00, 01, 11, 11
Q goes 0 → 1 (set) → 1 (hold) → 0 (reset) → 1 (toggle) → 0 (toggle).
Now play with it
- →Type your own sequence, for example 11 11 11 and watch Q toggle.
- →Switch to T and see why T = 1 divides the clock by two.
| clock edge | start | 1 | 2 | 3 | 4 | 5 | 6 |
|---|---|---|---|---|---|---|---|
| J | · | 1 | 0 | 0 | 1 | 1 | 0 |
| K | · | 0 | 0 | 1 | 1 | 1 | 0 |
| Q after edge | 0 | 1 | 1 | 0 | 1 | 0 | 0 |
| 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 |
J = K = 1 toggles. This is the only FF with no forbidden input.
Check yourself
A JK flip-flop in state Q = 1 receives J = K = 1 on the clock edge. The next state is
Exam notes (the dense version)
D: Q⁺ = D (stores the input). JK: Q⁺ = JQ′ + K′Q; 00 hold, 01 reset, 10 set, 11 toggle (no forbidden input). T: Q⁺ = T ⊕ Q; T = 1 toggles, T = 0 holds; with T = 1 the output frequency is half the clock. SR flip-flop: as for the latch, 11 not allowed. JK with J = K = 1 acts as a T flip-flop, and JK with K = J′ acts as a D flip-flop.
Previous year questions: Latches & Flip-Flops (2)
PYQs are grouped by topic, so this is the full set for Latches & Flip-Flops; try the ones that match this subtopic. Open all 2 on the topic page.