Overview

Digital electronics is all about processing binary signals (0s and 1s) using logic gates. Think of these gates as tiny decision-makers that follow specific rules to produce outputs based on their inputs.

Key Concepts:

  • Binary Signals: Only two possible states - 0 (OFF/LOW) or 1 (ON/HIGH)
  • Logic Gates: Basic building blocks that perform logical operations
  • Truth Tables: Show all possible input combinations and their resulting outputs

Key Concepts

Basic Logic Gates

Each gate has a unique symbol and behavior. Let's explore them one by one:

NOT Gate (Inverter)

A X

The simplest gate - it just flips the input:

  • A is opposite of X

Example: If a light switch is OFF (0), the NOT gate makes it ON (1)

AX
01
10

AND Gate

A B X

Only outputs 1 if BOTH inputs are 1:

  • Like a series circuit - all switches must be ON
  • Any 0 input makes the output 0

Example: A security system that needs both a key card AND correct PIN

ABX
000
010
100
111

OR Gate

A B X

Outputs 1 if ANY input is 1:

  • Like a parallel circuit - any switch being ON works
  • Only outputs 0 if all inputs are 0

Example: A house alarm that triggers if ANY sensor detects movement

ABX
000
011
101
111

XOR Gate (Exclusive OR)

A B X

Outputs 1 if inputs are DIFFERENT:

  • 1 when inputs are different (0,1 or 1,0)
  • 0 when inputs are same (0,0 or 1,1)

Example: A light controlled by two switches - it's ON only if switches are in different positions

ABX
000
011
101
110

Inverted Gates

Any gate can be turned into its inverse by adding a small circle (bubble) at its output:

  • AND → NAND: Output is opposite of AND gate (1 unless both inputs are 1)
  • OR → NOR: Output is opposite of OR gate (1 only when both inputs are 0)
  • XOR → XNOR: Output is opposite of XOR gate (1 when inputs are the same)
→

AND becomes NAND

The bubble means "NOT" - it inverts the output of whatever gate it's attached to.

Examples

Combining Gates

Gates can be connected to create more complex circuits. The output of one gate becomes the input for another.

Example: Security System
Key Card PIN Code Motion Window Alarm

This security system has three components:

  1. Access Verification (First AND + NOT Gates):
    • AND gate checks if both key card AND PIN are provided
    • NOT gate inverts this - output is 1 for unauthorized access
  2. Intrusion Detection (Bottom OR Gate):
    • Monitors detection of either motion OR window sensors
    • Output is 1 if either sensor detects intrusion
  3. Alarm Trigger (Final OR Gate):
    • Triggers if EITHER unauthorized access OR intrusion is detected
    • Output is 1 if any input is 1

Practice Problems

For expression answers, use + for OR, write AND as juxtaposition or with * (for example AB or A*B), and use an apostrophe for NOT (for example A').

Problem 1 Junior

Simplify the Boolean expression represented by this circuit using the fewest numbers of parentheses:

A B X

Problem 2 Junior

How many ordered triples make the Boolean expression for this circuit FALSE?

Circuit with NOT, AND, and OR gates

Problem 3 Intermediate

How many ordered triples make this circuit TRUE?

Complex circuit with NOT, AND, and OR gates

Problem 4 Intermediate

Simplify the Boolean expression represented by this circuit using the fewest numbers of parentheses:

Circuit with OR, AND, and NOT gates

Problem 5 Senior

How many ordered triples make the Boolean expression for this circuit FALSE?

Complex circuit with NOT, AND, and OR gates