Showing posts with label SRFlipFlop. Show all posts
Showing posts with label SRFlipFlop. Show all posts

Thursday, 21 August 2025

SR Latch in Digital Electronics: Working, Truth Table, and Variants

SR latch tutorial

If you are diving into digital electronics, and you might have came across latches. In digital electronics, computers remember things with the help of simple circuits called latches which are the simplest memory elements. They store a single bit of binary data and play a key role in sequential circuits and memory design. One of the most fundamental types is the SR Latch (Set-Reset Latch), which operates with two inputs, Set (S) and Reset (R).

In this article, we will explore what an SR latch is, how it works, its truth table, and the differences between the basic SR Latch, Gated SR Latch, and Clocked SR Latch (SR Flip-Flop).

What is an SR Latch?

SR latch


The SR Latch is a basic circuit that stores one bit of information. It has two inputs:

  • Set (S): Makes the output high (Q = 1)
  • Reset (R): Makes the output low (Q = 0)

Once set, the output remains stable even if the inputs are removed, which is why it’s used as a memory element.

SR latches can be built using NOR gates or NAND gates. The only difference is that the NAND version uses active LOW inputs, while the NOR version works with active HIGH inputs. 

Gated SR Latch

The Gated SR Latch is similar to the basic SR latch but includes an Enable input.

  • When Enable = 1, the latch responds to S and R inputs.

  • When Enable = 0, the output stays unchanged, regardless of inputs.

This provides more control and is often used in situations where the latch should only update at specific times.


Clocked SR Latch (SR Flip-Flop)

When a clock signal is introduced, the SR latch becomes edge-triggered, and is commonly called an SR Flip-Flop.

Here’s how it works:

  • S = 1, R = 0 → Q = 1 (Set)

  • S = 0, R = 1 → Q = 0 (Reset)

  • S = R = 0 → Previous state (No change)

  • S = R = 1 → Invalid condition

The clock ensures that the output only changes on a rising or falling edge, making it more reliable for sequential circuits.



Applications of SR Latch

  • Basic memory storage elements
  • Control circuits in microcontrollers and processors
  • Debouncing switches in digital systems
  • Building blocks for more advanced flip-flops (D, JK, T)

Saturday, 31 May 2025

Understanding Flip-Flops in Digital Electronics

Flip Flop in Digital Electronics

Flip-flops are basic building blocks in digital electronics that work as simple 1-bit memory devices. In electronics Flip-Flop is "A bistable device with synchronous inputs that changes state only at specified transitions of a clock signal" (IEEE Standard 91/1984)". Unlike regular logic gates that respond instantly to inputs, flip-flops can store a value, either 0 or 1, and keep it until something changes it, usually through an input signal and a clock pulse. 

Because of this ability to hold information, they’re used in many sequential circuits like counters, registers, and parts of memory in microprocessors. The following tutorial will give you a complete understanding of Flip-Flops in Digital Electronics.

Difference Between Latch and Flip-Flop

A latch is level-triggered, meaning its output changes as long as the input is active. A flip-flop is edge-triggered, updating its output only on a specific clock edge (rising or falling).

Transistors → Logic Gates → Latches → Flip-Flops

Types of Flip Flops in Digital Electronics

  • SR Flip-Flop: This is the simplest type of flip-flop that uses Set (S) and Reset (R) inputs to store a bit. It’s great for basic memory storage, but it gets a bit tricky when both inputs are active at the same time.

SR flip-flop diagram


  • D Flip-Flop: Captures the value present at its D input when a clock pulse occurs, and this value is maintained as the output until the next clock pulse. This characteristic makes the D flip-flop a fundamental building block in registers, shift registers, and various other memory devices. 

d flip-flop circuit diagram


  • JK Flip-FlopThink of it as an improved version of the SR flip-flop that avoids the “invalid” state issue. It can toggle, set, or reset based on its J and K inputs and is very versatile in counters.

jk flip-flop circuit diagram


  • T Flip-Flop: Toggles the output on each clock cycle when T is high. It is particularly useful in applications like counters and control circuits.

t flip flop circuit diagram

Applications of Flip-Flops

  • Registers
  • Counters
  • Finite State Machines (FSMs)
  • Pipeline stages

Understanding flip-flops is crucial for anyone interested in digital electronics, as they form the basis for more complex sequential circuits and systems.

For a more detailed explanation and practical demonstrations, refer to the full article on Circuit Digest.: Flip-Flop in Digital Electronics: Types, Truth Table, Logic Circuit and Practical Demonstration