• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
Hardware Secrets

Hardware Secrets

Uncomplicating the complicated

  • Case
  • Cooling
  • Memory
  • Mobile
    • Laptops
    • Smartphones
    • Tablets
  • Motherboard
  • Networking
  • Other
    • Audio
    • Cameras
    • Consumer Electronics
    • Desktops
    • Museum
    • Software
    • Tradeshows & Events
  • Peripherals
    • Headset
    • Keyboard
    • Mouse
    • Printers
  • Power
  • Storage
  • Video

Introduction to Logic Gates

Everything you need to know about logic gates, the heart and blood of digital electronics.

Home » Introduction to Logic Gates

NAND

Contents

  • 1. Introduction
  • 2. Inverter
  • 3. AND
  • 4. NAND
  • 5. OR
  • 6. NOR
  • 7. XOR
  • 8. XNOR
  • 9. Non-Inverter or Buffer
  • 10. Open Collector and Open Drain

The “N” letter on NAND stands for NOT, meaning that NAND logic gate is an AND gate with an inverter attached. So, its output is the opposite from AND. Its symbol is the same of AND but with a “o” on its output, meaning that the output is inverted. You can build yourself a NAND gate by connecting an AND gate to an inverter.

NAND gateFigure 6: NAND logic gate.

A B Y
0 0 1
0 1 1
1 0 1
1 1 0

Another way to understand NAND logic gate: its output will only be at “0” when all its inputs are also at “1”. Otherwise its output will be “1”.

If you need more inputs, just draw them on the symbol shown in Figure 6. However, if you want to create more inputs using gates with fewer inputs, you cannot connect them using the same idea shown in Figure 4. You need to use AND gates for the “extra” inputs (you can link them together to expand the number of inputs like shown in Figure 4) and a NAND gate for the “final” gate, see Figure 7.

NAND gateFigure 7: How to expand the number of inputs of a NAND gate.

You can also easily transform NAND and NOR gates into inverters by shorting their inputs, like shown in Figure 8. This is a very common trick. For example, you need an inverter in your circuit and have some NAND gates available at a given integrated circuit. Instead of adding another integrated circuit to your project just to have one inverter (what would increase the final circuit size and also the cost), you may want to use one of the available NAND gates.

NAND gateFigure 8: Transforming a NAND gate into an inverter.

The most famous NAND gate integrated circuit is 7400 and you can its pinout in Figure 9. Of course there are several other integrated circuits that provide NAND gates with more inputs. For example, 7411 provides three three-input NAND gates and 7430 provides one eight-input NAND gate.

7400 ICFigure 9: 7400 integrated circuit provides four two-inputs NAND gates.

Continue: OR

Other Tutorials

Primary Sidebar

As a participant in the Amazon Services LLC Associates Program, this site may earn from qualifying purchases. We may also earn commissions on purchases from other retail websites.

gigabit ethernet device

The Ultimate 2022 Guide on Gigabit Ethernet

Everything you need to know about Gigabit Ethernet.

spdif connection

What You Should Know About the SPDIF Connection (2022 Guide)

Learn about the digital audio connection called SPDIF and when and how to use it.

Everything You Need to Know About the CPU Power Management

The CPU has several power saving modes called C-states. In this tutorial we will explain what these modes are, what they do and the modes supported by each processor.

Understanding RAM Timings

Learn in detail what numbers like 7-7-7-21, 8-8-8-24, or 9-9-9-24 after the memory specification mean.

How to Connect Two PCs Using a USB to USB Cable in 2022

Learn how to connect two PCs using an USB-USB cable to transfer files and share your Internet connection.

Footer

For Performance

  • PCI Express 3.0 vs. 2.0: Is There a Gaming Performance Gain?
  • Does dual-channel memory make difference on integrated video performance?
  • Overclocking Pros and Cons
  • All Core i7 Models
  • Understanding RAM Timings

Everything you need to know

  • Everything You Need to Know About the Dual-, Triple-, and Quad-Channel Memory Architectures
  • What You Should Know About the SPDIF Connection (2022 Guide)
  • Everything You Need to Know About the Intel Virtualization Technology
  • Everything You Need to Know About the CPU Power Management

Follow Us

Follow us on Facebook Follow us on Twitter Follow us on Instagram

Copyright © 2022 · All rights reserved - Hardwaresecrets.com
About Us · Privacy Policy · Contact