โ† Digital Electronics learning path
Digital Electronics ยท Module 6 of 10

Flip-flops and latches

One-bit memory elements.

๐Ÿ“– Key ideas

  1. Sequential circuits have memory: outputs depend on inputs and past state.
  2. An SR latch has an invalid state when S = R = 1 (for NOR latch).
  3. A D flip-flop copies D to Q on the clock edge.
  4. A JK flip-flop toggles when J = K = 1; a T flip-flop toggles when T = 1.
  5. Setup and hold times must be met around the clock edge, or the output may go metastable.
๐Ÿ’ก Real-life example: A D flip-flop is like a camera: it takes a snapshot of the input only when the shutter (clock edge) clicks.
Flip-flopEdge-triggered one-bit memory
LatchLevel-sensitive one-bit memory
ToggleChange output to its opposite
Setup timeTime input must be stable before the clock edge