Basic Flip-Flops

Flip-flops are the fundamental building blocks of sequential logic circuits. Unlike combinational logic (e.g., gates), flip-flops have memory—they can store a single bit of data (0 or 1) and maintain that state until changed by an input signal. They form the basis for registers, counters, memory elements, and state machines in digital systems.

SR Flip-Flop (Set-Reset)

The simplest flip-flop. It has two inputs: S (Set) and R (Reset).

SRQ(next)Comment
00Q(previous)Hold
010Reset
101Set
11?Forbidden

D Flip-Flop (Data or Delay)

The most common flip-flop. It has one data input D and captures the value of D on the clock edge.

ClockDQ(next)
? (rising edge)00
? (rising edge)11
No edgeXQ(previous)

D flip-flops eliminate the forbidden state of the SR type and are widely used for storage registers.

JK Flip-Flop

An enhanced SR flip-flop that resolves the forbidden state. When J = K = 1, it toggles the output.

JKQ(next)Comment
00Q(previous)Hold
010Reset
101Set
11NOT Q(previous)Toggle

T Flip-Flop (Toggle)

A simplified JK flip-flop with J and K tied together as a single T input.

TQ(next)
0Q(previous)
1NOT Q(previous)

Ideal for building binary counters and frequency dividers.

Clocking and Edge Triggering

Most practical flip-flops are clocked—changes occur only on a rising (?) or falling (?) edge of a clock signal. This synchronizes operations across large digital systems and prevents race conditions.

Applications

Flip-flops are combined to create:

Every CPU register, program counter, and memory bit relies on flip-flops at the hardware level.

Back to Misc


Copyright 2026 - MicroBasement