Ugenz Academy/IoT Tutorial

Sequential Circuits

12 min read2,217 words

Reading progress

Keep learning

Sequential Circuits in Digital Electronics

1. Introduction

A sequential circuit is a digital electronic circuit whose output depends on both the current inputs and the previous state of the circuit.

Unlike combinational circuits, sequential circuits have memory elements that allow them to store information. This makes them useful for systems that need to remember data, count events, or perform operations in a particular sequence.

Sequential circuits are used in computers, digital clocks, counters, registers, memory systems, and microcontrollers.

Examples include:

  • Latches
  • Flip-flops
  • Registers
  • Counters
  • Shift registers
  • Sequence detectors

2. Characteristics of Sequential Circuits

The main characteristics of sequential circuits are:

  1. Memory: They can store binary information.
  2. State-dependent output: Their output may depend on both current inputs and the stored state.
  3. Feedback: Internal signals may feed back into the circuit to maintain or update its state.
  4. Clock operation: Many sequential circuits use a clock signal to control when their state changes.
  5. State transitions: The circuit moves from one state to another based on its inputs and, in clocked circuits, the active clock event.

3. Block Diagram of a Sequential Circuit

Input Signals

Data and control signals

Combinational Logic

Calculates the next state and output

Memory Elements

Latches or flip-flops store the state

Stored State and Output

The stored state feeds back into the logic to determine future behavior.

The memory elements retain the circuit's state. The combinational logic uses this stored state and the current inputs to determine the next state.

4. Difference Between Combinational and Sequential Circuits

FeatureCombinational circuitSequential circuit
Output depends onCurrent inputsCurrent inputs and stored state
MemoryNoYes
FeedbackNot requiredCommonly used
ClockNot required for logical operationUsed in synchronous circuits
Main componentsLogic gatesLogic gates and memory elements
ExamplesAdders, multiplexers, decodersFlip-flops, counters, registers

The main difference is that a combinational circuit does not remember previous states, while a sequential circuit can retain information from earlier operations.

5. Types of Sequential Circuits

Sequential circuits are classified into two main types:

  • Synchronous sequential circuits: State changes are controlled by a clock signal.
  • Asynchronous sequential circuits: State changes occur in response to input changes without waiting for a common clock event.

A. Synchronous sequential circuits

In synchronous circuits, memory elements typically update their state at a specified clock edge, such as the rising or falling edge.

Examples include clocked flip-flops, synchronous counters, and processor registers.

B. Asynchronous sequential circuits

In asynchronous circuits, state changes can occur when inputs change, without being synchronized to a common clock.

These circuits can respond quickly, but they require careful design to avoid timing problems and unwanted state transitions.

6. Latches

A latch is a basic memory circuit that stores one binary bit, either 0 or 1. It is generally level-sensitive, meaning its output can respond to input changes while its enable or control signal is active.

Latches are fundamental building blocks of sequential circuits.

A. SR latch

An SR latch stands for Set-Reset latch. It has two inputs:

  • S (Set): Sets the output to 1.
  • R (Reset): Resets the output to 0.

It stores its state when neither input is activated.

For a conventional NOR-based SR latch, the truth table is:

SRNext output QQOperation
00Previous QQHold
010Reset
101Set
11InvalidForbidden condition

The condition S=R=1S=R=1 is forbidden for the conventional NOR-based SR latch because both outputs are forced low, violating the normal complementary-output relationship. Other SR latch implementations, such as NAND-based versions, have different input polarities.

B. D latch

A D latch, also called a Data latch, has a data input DD and an enable input EE.

  • When E=1E=1, the output follows the data input.
  • When E=0E=0, the latch holds its previously stored value.
Enable EEData DDOutput QQ
0XPrevious QQ
100
111

Here, X means the data input can be either 0 or 1 because it does not affect the held output.

D latches are used in temporary data storage and in circuits where information must be retained while an enable signal is inactive.

7. Flip-Flops

A flip-flop is a memory element that stores one binary bit. Unlike a level-sensitive latch, a typical edge-triggered flip-flop updates its state at a specific transition of the clock signal.

The clock transition may be:

  • Rising edge: Clock changes from 0 to 1.
  • Falling edge: Clock changes from 1 to 0.

Flip-flops are widely used in registers, counters, digital clocks, and processor circuits.

A. SR flip-flop

An SR flip-flop has Set and Reset inputs and usually responds to them at an active clock edge.

SRNext state Q_nextQ\_{\text{next}}Operation
00Previous QQHold
010Reset
101Set
11InvalidForbidden condition

The exact behavior depends on the flip-flop's implementation and input polarity.

B. D flip-flop

A D flip-flop stores the value present at its data input when the active clock edge occurs.

Its characteristic equation is:

Q_next=D\boxed{Q\_{\text{next}}=D}

This means the next stored value becomes equal to the data input at the active clock edge.

DNext state Q_nextQ\_{\text{next}}
00
11

D flip-flops are commonly used in data registers, pipeline stages, and memory circuits.

C. JK flip-flop

A JK flip-flop improves on the conventional SR flip-flop by providing a defined behavior when both inputs are 1.

JKNext stateOperation
00Previous QQHold
010Reset
101Set
11Q‾\overline QToggle

Its characteristic equation is:

Q_next=JQ‾+K‾Q\boxed{Q\_{\text{next}}=J\overline Q+\overline KQ}

When both JJ and KK are 1, the output changes to its complement at the active clock event. JK flip-flops can therefore be used in counter and control circuits.

D. T flip-flop

A T flip-flop, or Toggle flip-flop, changes its output when T=1T=1 and holds its state when T=0T=0.

TNext stateOperation
0Previous QQHold
1Q‾\overline QToggle

Its characteristic equation is:

Q_next=T⊕Q\boxed{Q\_{\text{next}}=T\oplus Q}

T flip-flops are useful in binary counters and frequency-divider circuits because each active toggle event reverses the output state.

8. Difference Between Latches and Flip-Flops

FeatureLatchFlip-flop
SensitivityLevel-sensitiveUsually edge-triggered
ControlEnable signalClock signal
State changesWhile enabledAt the active clock edge
Main useTemporary storageSynchronous storage
ExampleD latchD flip-flop

Both latches and flip-flops store one bit, but their timing behavior differs.

9. Registers

A register is a group of flip-flops used to store multiple binary bits. Each flip-flop typically stores one bit, so an nn-bit register requires nn flip-flops.

For example, a 4-bit register stores four binary digits:

Input bits:    1  0  1  1
               ↓  ↓  ↓  ↓
             ┌─────────────┐
Clock ──────►│ 4-bit       │
             │ Register    │
             └─────────────┘
               ↓  ↓  ↓  ↓
Output bits:  1  0  1  1

When the register's flip-flops receive their active clock edge, they capture their respective input bits, subject to their setup and hold timing requirements.

Registers are used in:

  • CPU data storage
  • Temporary storage of calculation results
  • Instruction processing
  • Data transfer between circuit components
  • Digital communication systems

10. Shift Registers

A shift register is a sequential circuit that stores binary data and shifts it between flip-flops with each active clock event.

In a typical shift register, the output of one flip-flop connects to the input of the next.

The four common types are:

TypeFull formFunction
SISOSerial-In Serial-OutAccepts and outputs one bit at a time
SIPOSerial-In Parallel-OutAccepts serial data and provides parallel outputs
PISOParallel-In Serial-OutAccepts parallel data and outputs it serially
PIPOParallel-In Parallel-OutAccepts and outputs multiple bits together

Shift registers are used for serial communication, data conversion, temporary storage, and digital signal processing.

11. Counters

A counter is a sequential circuit that counts clock events or other specified signal transitions. It is constructed using flip-flops and associated logic.

A. Asynchronous counter

An asynchronous counter, also called a ripple counter, uses the output of one flip-flop to trigger the next stage.

The state changes ripple through the stages, so the flip-flops do not all update directly from the same clock signal.

B. Synchronous counter

A synchronous counter supplies a common clock to all its flip-flops. Its state transitions occur together at the active clock edge, although small propagation delays still exist.

Example: 2-bit binary counter

A 2-bit counter has four possible states:

Clock eventQ1Q_1Q0Q_0Decimal value
0000
1011
2102
3113
4000

The counter repeats the sequence 00 → 01 → 10 → 11 → 00.

A counter with nn flip-flops can represent up to 2n2^n distinct binary states.

Counters are used in digital clocks, event counters, timers, frequency dividers, and control systems.

12. Timing Concepts in Sequential Circuits

Sequential circuits must meet specific timing requirements to operate reliably.

A. Clock signal

A clock is a repeating digital signal used to coordinate state changes in synchronous circuits.

Clock waveform

A clock alternates between LOW and HIGH levels. Edge-triggered flip-flops respond to the designated edge.

B. Setup time

Setup time is the minimum period for which the input data must remain stable before the active clock edge.

C. Hold time

Hold time is the minimum period for which the input data must remain stable after the active clock edge.

If setup or hold requirements are violated, a flip-flop may enter a metastable state, where its output takes an unpredictable amount of time to settle to a valid logic level.

D. Propagation delay

Propagation delay is the time taken for a change at an input or clock event to produce the corresponding output change.

Propagation delay affects the maximum reliable operating speed of a sequential circuit.

13. Applications of Sequential Circuits

Sequential circuits are essential in digital systems that must store information or maintain a sequence of operations.

  • Computers and processors: Registers store data, instructions, and intermediate results.
  • Digital clocks: Counters track seconds, minutes, and hours.
  • Memory systems: Storage elements retain binary information.
  • Communication systems: Shift registers support serial data transfer.
  • Automation: State-based controllers manage the sequence of machine operations.
  • IoT devices: Counters and registers help track events, store readings, and coordinate operations.
  • Traffic-light controllers: State machines sequence the red, yellow, and green lights.
  • Frequency division: Flip-flops and counters generate lower-frequency signals from a clock.

14. Summary of Sequential Circuits

ComponentMain function
SR latchStores one bit using Set and Reset
D latchStores data while disabled and follows input while enabled
SR flip-flopStores one bit using Set and Reset inputs
D flip-flopCaptures data at an active clock edge
JK flip-flopSupports hold, set, reset, and toggle
T flip-flopToggles its state when enabled
RegisterStores multiple bits
Shift registerShifts stored binary data
CounterCounts clock events or signal transitions

Key point: A sequential circuit has memory, so its behavior depends on its stored state as well as its current inputs. Flip-flops, registers, counters, and state machines use this property to perform tasks that combinational circuits alone cannot perform.

Keep learning. Keep building. Keep growing.

© 2026 Ugenz Academy