Basic Digital Circuits Tutorials
Introduction - The purpose of these pages is to introduce the student and hobbyist to electronics projects. My hope is generate interest for those thinking about entering a high tech field, or simply to have fun.
I've been a part-time adjunct professor at a local community college teaching electricity and electronics. My electronics website reflects what I've taught or been asked to look into by visitors. I have 40 years experience in electronics from vacuum tubes to modern solid state and industrial controls. In college I had a year each of physics, chemistry, and biology along with C, C++. Pascal, and assembly.
These are the schematics to a number of new videos on basic digital electronics.
One can view my webpages on semiconductor and transistor theory in the links below. Here I will start with basic NAND and NOR gates.
I'll define terms for beginners. A HIGH is a binary or logical 1. In binary we only have 1s and 0s. A HIGH or simply H is an electrical voltage of 3-15 volts depending on the logic family. a LOW or L is zero volts.
An overview of some logic families:
74XX is power hungry and slow response time. Vcc is 5 volts.
74LSXX are much faster but still power hungry. Vcc is 5 volts.
74CXX are built from CMOS not bipolar transistors. The voltage range is 3-15 volts. Power consumption is low.
74HCXX is fast, low power. Vcc = 2-6 volts. Speed varies by voltage.
CD4XXX is low power, slow. Vcc = 3-15 volts.
Slow or fast are relative terms. Often this means time delay from input to output reaction. 10-3 is milliseconds or 1 / 1000 second. 10-6 is microseconds or 1 / 1,000,000 second.
Nanoseconds is 10-9 second or 0.001 microsecond. A 74LS14 HEX Schmitt trigger inverter operates at 15 nano seconds. A 74HC14 operates at 55 nanoseconds at 2 volts and 11 nanoseconds at 6 volts.
In my tutorials I'll be using the 74LSXX series of digital circuits. They have been around for decades and operate at 5 volts. They are built from bipolar transistors. See for example the 74LS04 Hex Inverters.
These are TTL or transistor-transistor logic. Compare the above with a typical CD4XXX type gate. See CD4001 Internal Diagram.
An inverter simply changes a HIGH to LOW or a LOW to a HIGH. Again see 74LS04 Hex Inverters.
Most of the integrate circuits I'll like the 74LS04 above uses totem pole outputs to save power. If the output is HIGH the upper transistor was switch ON to connect to Vcc. If the output is low the bottom transistor switches on to ground.
Contrast this with 74LS06 also an inverter but has an open collector output. It requires an external load and can only switch to ground. See 74LS06 Hex Inverters Open Collector 30-Volts.
See the graphic 74LS04 versus 74LS06.
This can be used to connect to higher voltage loads to the 5 volts Vcc of the device. An example is TTL logic can connect to higher voltage CMOS logic. The 74LS06 is inverting, the 74LS07 is non-inverting.
When an output switches to Vcc or the power supply we call this "sourcing" the current. When the output switches to ground we call this "sinking" the Current. Bipolar transistors are current operated devices. CMOS transistors are voltage operated.
A buffer is designed to drive multiple inputs on other gates. It provides more current capability. Often called fan out most will drive 2 TTL loads.
A 74LS02 has a standard totem pole output and will source two TTL loads. A 74LS28 has a fan out of 30 TTL loads. Both are quad, 2-input NOR gates with identical electrical connections. I'll be using a number of 74LS02 quad NOR gates. A NOR outputs a LOW if any input is HIGH. See 74LS02 Quad 2-Input NOR Gates
A 74LS32 is a quad, 2-input OR gates or non-inverting ORs. Any HIGH input is a HIGH output. A 74LS02 is a quad, 2-input NOR gates or inverted ORs.
A NAND gate is an inverted state AND gate. An AND gate has at least two inputs. The output is a HIGH when all inputs are HIGH, otherwise output is LOW. If any input is LOW the output is LOW. An inverted AND or NAND has the output reversed. All inputs HIGH the output is LOW. Otherwise the output is HIGH
I'll be using the 74LS00 NAND gate and the 74LS08 AND gate. Each 14 pin integrated circuit has 4, 2-input gates. The pin connections are identical. See 74LS00 Quad 2-Input NAND Gates.
The figure above illustrates how to use NOR or NAND gates to create an inverter, an OR, or an AND gate.
Also see the illustration for Converting 4-input NAND-AND Gates.
- Basic Digital Circuits Tutorials
- High current TTL Driver Circuit
- Tutorial NOR Gate SR Latch Circuits
- Tutorial NAND Gate SR Latch Circuit
- List of electronic Drawings
- Misc. Earth Science, Technology, and Scepticism
- Quick navigation main electronics website:
- Basic Electronics Learning and Projects
- Arduino Microcontroller Projects
- Raspberry Pi and Linux
- Connecting a PC Printer Port to Electronics with Python
- Microchip PIC 18F2550
- PICAXE Microcontroller
Most recent on main website:
- Issues on Connecting MOSFETs in Parallel
- Solar Panel Battery Charge Controller Switching Circuit
- Design 10-Amp 2N3055 Based Power Switch
- H-Bridge Motor Control with Power MOSFETS
- Simple Schmitt Trigger SN7414 Square Wave Generator
- SN7414 Square Wave Generator uses SN7476 JK Flip-Flop
- Three Output Pulse Generator Circuit for Digital Circuits
- Improved AC Zero Crossing Detectors for Arduino
- LM555-NE555 One-Shot Multivibrator AC Power Control
- Tutorial OR-NOR Circuits Including Monostable Multivibrator
- Introduction to RC Differentiator Circuits and Uses
- Brief Tutorial of XOR and XNOR Logic Gates
- Zero-Crossing Detectors Circuits and Applications
Images used in this series:
- 74LS00 Quad 2-Input NAND Gates
- 74LS02 Quad 2-Input NOR Gates
- 74LS04 Hex Inverters
- 74LS06 Hex Inverters Open Collector 30-Volts
- 74LS07 HEX Non-Inverting Driver Open Collector 30-Volts
- 74LS04 versus 74LS06
- Octal Tri-State Buffer
- High Power Buffer Circuit
- Buffer Circuit Powers Motor
- 74LS00 NAND Gate SR-Latch
- 74LS00 Gated SR-Latch
- 74LS02 NOR Gate SR-Latch
- 74LS02 NOR Gated SR-Latch
- Generic Gated SR-Latch Symbol
- CD4001 Internal Diagram
- Converting 4-input NAND-AND Gates
Misc. Earth Science, Technology, and Scepticism
- Technology is Why the Jobs are Not Coming Back
- Off-the-Shelf Technology for Space Exploration
- Environmentalism Versus Science
- Ecology Debunked
- Volcanoes Change Climate
- Geiger Counter Basics
- Geiger-Mueller Tubes
- Radiation Myths and Hazards
- Uranium Hype-Facts and Virginia Uranium
- Uranium Basics and Isotopes