Skip to content
๐Ÿงท Latches

๐Ÿงท Latches

A latch is a bistable circuit that stores one bit of data. It is level-sensitive, meaning its output can change as long as the control signal (often called “enable”) is active.

โš™๏ธ Key Characteristics

  • ๐Ÿงฎ Memory: Stores a binary state (0 or 1)
  • ๐Ÿ”“ Level-sensitive: Responds continuously while enabled
  • โฑ๏ธ Asynchronous: Can change state without a clock edge

๐Ÿ”ค Common Types

๐Ÿ”ง Type๐Ÿ”ข Inputs๐Ÿ“ˆ Behavior
SR LatchSet, ResetSets or resets output
Gated SRSet, Reset, EnableAdds control gating
D LatchData, EnableCaptures input when enabled

๐Ÿงฎ SR Latch Logic (NOR-based)

  • โœ… Set = 1, Reset = 0 โ†’ Output = 1
  • โŒ Set = 0, Reset = 1 โ†’ Output = 0
  • ๐Ÿ” Set = 0, Reset = 0 โ†’ Holds previous state
  • โš ๏ธ Set = 1, Reset = 1 โ†’ Invalid (undefined)

๐Ÿงฐ Use Cases

  • ๐Ÿ—‚๏ธ Temporary storage
  • ๐Ÿ”˜ Debouncing switches
  • ๐Ÿงฑ Building blocks for flip-flops

๐ŸชŸ Visual Analogy

Imagine a door that opens only when the “enable” signal is held. While open, the latch listens and updates. When closed, it holds its last state.

Last updated on