Fork me on GitHub

Project Notes

#789 CD4011 SR Latch

Set-Reset latch implemented with CD4011 NAND gates.

Build

Here’s a quick demo..

clip

Notes

About the CD4011

The CD4011 is a CMOS quad 2-input NAND gate, containing four independent NAND gates in a single package. Each gate performs the standard NAND logic function, outputting a logic low only when both inputs are high. Like other devices in the 4000-series family, it operates over a wide supply voltage range of 3V to 15V, offering high noise immunity and low static power consumption, making it versatile for use in both digital and mixed-signal systems.

Because the NAND gate is a universal logic gate, the CD4011 can be used to implement virtually any digital logic function, including AND, OR, NOR, XOR, and more, simply by combining its gates in different ways. This makes it valuable in a broad range of applications such as timing circuits, pulse generation, simple latches, and general-purpose logic building blocks. Its ease of use, reliability, and flexibility make it a staple IC in both educational and professional circuit designs.

cd4011

SR Latch

An SR (Set-Reset) latch is one of the simplest types of sequential logic circuits, built using two cross-coupled logic gates—typically NOR or NAND gates. It has two inputs, labeled S (Set) and R (Reset), and two outputs, Q and its complement Q̅. The latch “remembers” its state: when S is activated, the latch sets Q to 1; when R is activated, it resets Q to 0. If both inputs are 0, the latch maintains its previous state, making it a basic memory element.

Truth Table

Set(t) Reset(t) Output Q(t+1)
0 0 no change
0 1 0
1 0 1
1 1 invalid state

Circuit Design

Designed with Fritzing: see SRLatch.fzz.

This circuit has two push-button inputs, a CD4011 quad 2-input NAND gate IC, and LED indicators for the Q and ~Q outputs.

The third common input Enable is pulled high. The latch may be disabled if this input is pulled low - a switch could be added for this if desired.

bb

schematic

The breadboard build:

bb_build

Credits and References

Video References

SR latch - Ben Eater

clip

About LEAP#789 Digital LogicCMOS/TTLCD4011

This page is a web-friendly rendering of my project notes shared in the LEAP GitHub repository.

Project Source on GitHub Return to the LEAP Catalog
About LEAP

LEAP is my personal collection of electronics projects - usually involving an Arduino or other microprocessor in one way or another. Some are full-blown projects, while many are trivial breadboard experiments, intended to learn and explore something interesting.

Projects are often inspired by things found wild on the net, or ideas from the many great electronics podcasts and YouTube channels. Feel free to borrow liberally, and if you spot any issues do let me know or send a pull-request.

NOTE: For a while I included various scale modelling projects here too, but I've now split them off into a new repository: check out LittleModelArt if you are looking for these projects.

Project Gallery view the projects as an image gallery Notebook reference materials and other notes Follow the Blog follow projects and notes as they are published in your favourite feed reader