← 🔁 Latches & Flip-Flops
Subtopic 2 of 4

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

  1. D: Q⁺ = D, the output copies the input.
  2. JK: 00 holds, 01 resets, 10 sets, 11 toggles: Q⁺ = JQ′ + K′Q.
  3. T: Q⁺ = T ⊕ Q, so T = 1 toggles.
  4. 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 edgestart123456
J·100110
K·001110
Q after edge0110100
JKQQ⁺
0000
0011
0100
0110
1001
1011
1101
1110
Characteristic equationQ⁺ = JQ′ + K′Q

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

Remember: D copies, T toggles when 1, JK has all four behaviours, SR forbids 11.
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.