Nepedia
Back to Discover
Advanced Reader
💻

Flip-flop (electronics)

technology Maturity 9-11 Next article →

In the world of digital electronics, a flip-flop is a fundamental storage element. It is technically known as a bistable multivibrator. This means the circuit has two stable states that it can maintain. These states are used to store a single bit of data, which is a binary digit. One state represents a logical one, and the other represents a logical zero.

SR Flip-flop Diagram
SR Flip-flop Diagram

Because they can hold this information, flip-flops are the essential building blocks of sequential logic. They are used extensively in computers, communication systems, and many other digital technologies.

To understand the mechanism, we can look at the asynchronous set-reset (SR) latch. This is the most basic form of a latch. It can be built using two cross-coupled logic gates, such as NOR or NAND gates. Cross-coupling means the output of one gate is connected back to the input of the other. This feedback loop allows the circuit to remember its state.

SR NOR Latch How to Work Ver2 20251008
SR NOR Latch How to Work Ver2 20251008

In an SR NOR latch, the two inputs are labeled S for set and R for reset. If you apply a set signal (S=1, R=0), the internal state becomes 1. If you apply a reset signal (S=0, R=1), the state becomes 0. When both inputs are zero, the circuit holds its current state. However, if both inputs are set to 1, the circuit enters a forbidden state. This restricted combination is unstable and can lead to a race condition.

R-S mk2
R-S mk2

Engineers have developed several distinct types of these storage elements. The most common are the SR, D (data), T (toggle), and JK flip-flops. These types differ in how they respond to input signals. A latch is often described as level-triggered, meaning it is transparent while an input signal is active. In contrast, a flip-flop is usually edge-triggered, meaning it only changes state at a specific moment. This moment is the transition of a clock signal, known as a clock edge.

JK timing diagram
JK timing diagram

Some flip-flops react to the rising edge, while others react to the falling edge of the clock. These specialized designs allow for synchronous systems where all components work in perfect timing.

The history of these circuits began with the invention of the first electronic latch. In 1918, British physicists William Eccles and F. W. Jordan filed a patent for a trigger circuit. This original design used two active elements called vacuum tubes.

Eccles-Jordan trigger circuit flip-flip drawings
Eccles-Jordan trigger circuit flip-flip drawings

This technology was later used in the British Colossus, a famous codebreaking computer, in 1943. As electronics evolved, these circuits moved from vacuum tubes to transistors and eventually to integrated circuits. In 1954, Montgomery Phister discussed various flip-flop types in a UCLA course. He later published these ideas in his book, *Logical Design of Digital Computers*. During this era, Eldred Nelson at Hughes Aircraft helped coin the term "JK" for a specific type of flip-flop.

TTL flip-flop
TTL flip-flop

The significance of flip-flops lies in their ability to manage data and timing. They are used for counting pulses and synchronizing variably-timed signals to a reference clock. In modern devices, many of these elements are packed into a single integrated circuit. For example, the 74HC75 is a chip that contains a quadruple transparent latch.

D-Type Flip-flop Diagram
D-Type Flip-flop Diagram

By storing bits, these circuits allow a system to function as a finite-state machine. In such a machine, the next output depends on both the current input and the current stored state. This ability to remember previous inputs is what makes complex computing possible.

There are many ways to implement these circuits in practical hardware. A transparent latch can be built using bipolar junction transistors, field-effect transistors, or inverting logic gates. In a symmetric cross-coupled pair, two inverting stages are connected in a cascade. This creates a non-inverting loop where each stage acts as an active feedback network for the other.

SR Flip-flop Diagram
SR Flip-flop Diagram

Some designs, like the NAND latch, use inverted inputs, meaning the inputs are considered "active low." This means the latch reacts when the input signal goes to zero rather than one. These variations allow engineers to choose the best tool for a specific electronic task.

Flip-flops connect to much broader topics in computer science and engineering. They are the foundation of memory systems and digital logic design. By combining many flip-flops, engineers can create complex structures like shift registers. These registers can move data through a system bit by bit. They also allow for the creation of processors that can execute millions of instructions per second. Every time a computer processes a command or saves a file, it is relying on the tiny, reliable work of these bistable circuits.

767 words

Where will your curiosity go next?

Keep exploring at your chosen reading level.

🖼️ Images & Media (25)
File:Transistor Bistable interactive animated-en.svg
Transistor Bistable interactive animated-en.svg
File:Eccles-Jordan trigger circuit flip-flip drawings.png
Eccles-Jordan trigger circuit flip-flip...
File:TTL flip-flop.svg
TTL flip-flop.svg
File:R-S mk2.gif
R-S mk2.gif
File:SRLatch-lowres.gif
SRLatch-lowres.gif
File:SR NOR Latch How to Work Ver2 20251008.png
SR NOR Latch How to Work Ver2 20251008.png
File:SR Flip-flop Diagram.svg
SR Flip-flop Diagram.svg
File:Inverted SR latch symbol.png
Inverted SR latch symbol.png
File:RS-and-or-flip-flop.png
RS-and-or-flip-flop.png
File:NAND Gated SR Latch.svg
NAND Gated SR Latch.svg
File:SR (Clocked) Flip-flop Diagram.svg
SR (Clocked) Flip-flop Diagram.svg
File:Gated SR flip-flop Symbol.svg
Gated SR flip-flop Symbol.svg

+ 13 more

More to explore

What is Nepedia?

A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.