Week 2-2: Fundamental Logic Gates
Course Overview and Learning Outcomes
Course Learning Outcomes (CLOs):
CLO1: Describe analogue and digital signal characteristics and perform timing analysis in circuits containing switches.
CLO2: Understand number systems and convert numbers between systems.
CLO3: Describe functions of combinational and sequential components; construct truth tables and Boolean equations.
CLO5: Use manufacturers' data sheets to design functional digital circuits.
CLO6: Formulate Boolean equations and verify circuit functions using simulation models.
CLO7: Validate digital logic circuits via breadboard wiring and Proteus simulation.
CLO8: Articulate laboratory observations and conclusions using standard digital systems terminology.
Fundamentals and Roles of Logic Gates in Digital Systems
Core Definition:
Elementary building blocks of digital circuits and computational systems used to execute calculations, automate decision-making, and store binary information.
Real-World Implementations:
Computers & Smartphones: Processor execution units, memory controllers, and peripheral input interfaces.
Digital Watches: Real-time clock tracking, user alarms, and multi-segment displays.
Automation Systems: Mission-critical sequencing and safety monitoring in machinery, traffic lights, and domestic appliances.
Primary Gate Types: AND, OR, NOT, NAND, and NOR.
The AND Gate
Functional Definition: Produces a HIGH () output only when all inputs are HIGH (); otherwise produces a LOW () output.
Graphic Symbols: Distinctive flat-input/rounded-output shape, and IEEE/IEC rectangular box with qualifying ampersand ().

Boolean Algebraic Expression:
or (Logical multiplication).
Truth Table Verification:
Input , Input
Input , Input
Input , Input
Input , Input

Dynamic Timing Analysis:
Output exclusively when inputs and are simultaneously HIGH (). If either input transitions LOW (), the output immediately falls to LOW ().

Application (Security System):
Intrusion alarm triggers only when a perimeter door contact sensor () AND an infrared motion detector () are concurrently activated, preventing false alarms.
The OR Gate
Functional Definition: Produces a HIGH () output if at least one input is HIGH (); produces a LOW () output only when all inputs are concurrently LOW ().
Graphic Symbols: Distinctive concave-input/pointed-output shape, and IEEE/IEC rectangular box with qualifying designation .

Boolean Algebraic Expression:
(Logical addition).
Truth Table Verification:
Input , Input
Input , Input
Input , Input
Input , Input

Dynamic Timing Analysis:
Output remains steadily HIGH during any time interval where at least one incoming input pulse maintains a logic HIGH level.

Application (Automotive Safety):
Warning lamp illuminates when either a driver seatbelt sensor indicates unbuckled () OR an entry door switch detects open ().
The NOT Gate (Inverter)
Functional Definition: Single-input logic device that outputs the inverse or logical complement of its input.
Graphic Symbols: Distinctive triangle amplifier symbol with an inversion bubble, or IEEE/IEC rectangular box with the digit and a polarity indicator.

Boolean Algebraic Expression:
or (Logical negation).
Truth Table Verification:
Input
Input

Dynamic Timing Analysis:
Inverts the input waveform: transitions to LOW when input is HIGH, and switches to HIGH when input is LOW.

Application (Temperature Control):
When system temperature exceeds limits, an active-LOW protection shutdown signal is inverted by a NOT gate to an active-HIGH drive signal to activate an auxiliary cooling fan.
The NAND Gate and Universal Gate Implementation
Functional Definition: Digital logic gate producing a LOW () output only when all inputs are HIGH (); otherwise outputs HIGH ().
Graphic Symbols: AND gate shape with an output inversion bubble, or IEEE/IEC box with qualifying ampersand () and polarity indicator.

Negative-OR Equivalence:
By DeMorgan's laws, NAND is logically equivalent to an OR gate with active-LOW inverted inputs:

Boolean Expression & Truth Table:
Expression: or
Input , Input
Input , Input
Input , Input
Input , Input

Dynamic Timing Analysis:
Output remains continuously HIGH, dropping to active-LOW only when inputs and are concurrently HIGH.

Universal Gate Synthesis via NAND:
Synthesizing NOT: Tie both inputs together:

Synthesizing AND: Feed NAND output into a second NAND-based inverter:

Synthesizing OR: Invert inputs independently, then route into a third NAND gate:

Real-World Applications:
Flash Memory: High-density, non-volatile series-connected cell architecture used across SSDs and USB drives.
Liquid Storage Tank Monitoring:
Discrete sensors output HIGH () when fluid is above level.
Green LED (Both Tanks > 1/4 Full): NAND output drops to active-LOW, sinking current to turn on the green status LED.

- **Red LED (One or Both Tanks < 1/4 Full):** By Negative-OR logic, any LOW sensor input drives the gate output HIGH, sourcing current to illuminate the red warning LED.

The NOR Gate and Universal Gate Implementation
Functional Definition: Digital logic gate producing a LOW () output if any input is HIGH (); produces a HIGH () output only when all inputs are concurrently LOW ().
Graphic Symbols: Distinctive OR curve with an output inversion bubble, or IEEE/IEC box with qualifying designation and polarity indicator.

Negative-AND Equivalence:
By DeMorgan's laws, NOR functions identically to an AND gate with active-LOW inverted inputs:

Boolean Expression & Truth Table:
Expression:
Input , Input
Input , Input
Input , Input
Input , Input

Multi-Input Extension (3-Input NOR):
; evaluates to only when .

Dynamic Timing Analysis:
Forced to LOW whenever either input line carries a HIGH logic level; pulses HIGH exclusively when all inputs are concurrently LOW.

Universal Gate Synthesis via NOR:
Synthesizing NOT: Tie inputs together:

Synthesizing OR: Cascade NOR output into a secondary NOR-based inverter:

Real-World Applications:
Microcontroller Reset Subsystems: Ensures a system reboot executes only when all reset condition inputs are inactive.
Aircraft Landing Gear Status Panel:
Dedicated limit switches output LOW () when extended and HIGH () when retracted.
Retracted Status (Red LED): When all gears are retracted, sensor inputs are all HIGH (), driving the 3-input NOR gate output to active-LOW () to sink current and illuminate the cockpit Red LED.
Extended Status (Green LED): When all gears deploy, sensor inputs are all LOW (), causing a 3-input Negative-AND configuration to output active-HIGH () to source current and illuminate the Green LED.
Transit/Discrepancy: If any gear fails to lock in transit, neither condition evaluates to true, extinguishing both LEDs to alert the flight crew of an unsafe state.

Integrated Circuit (IC) Logic Gates: Configurations and Pinouts
Packaging Formats: Standard 14-pin DIP with Pin and Pin .
Hex Configuration: Houses independent single-input gates (e.g., inverters).
Quad Configuration: Houses independent 2-input gates.
Fairchild 74AC08 / 74ACT08 (Quad 2-Input AND Gate):
Standard pin layout: Inputs at Pins ; Output at Pin ; repeated across internal gates.

Fairchild 74AC32 / 74ACT32 (Quad 2-Input OR Gate):
Standard layout: Inputs at Pins ; Output at Pin across four OR gates.

Fairchild DM74LS04 (Hex Inverting Gates):
Six independent inverters with .

Fairchild DM74LS00 (Quad 2-Input NAND Gate):
Four independent 2-input NAND gates with .

Fairchild MM74HC02 (Quad 2-Input NOR Gate):
Non-Standard Pin Configuration: Gate outputs occupy the initial pin of each gate cluster (Pin , Pin , Pin ).

Digital Circuit Troubleshooting Methodologies and Fault Diagnosis
Troubleshooting Diagnostic Tools:
Logic Probe: Visualizes pin states—glows strongly for valid HIGH, dimly for floating/high-impedance nodes, and turns off for LOW.
Logic Pulser: Injects momentary digital stimulus pulses into active circuit nodes without desoldering.
Three-Step Troubleshooting Protocol:
Step 1: Probe outputs of each gate using a logic probe to identify incorrect resting logic levels.
Step 2: Inject pulses into gate inputs using a logic pulser while observing outputs to verify truth-table compliance.
Step 3: Diagnose internal transistor defects, including stuck-at-HIGH () or stuck-at-LOW () faults.
Summary of Logic Operations and Upcoming Topics
Comparative Gate Operations:
AND Gate: Outputs HIGH only when all inputs are HIGH ().
OR Gate: Outputs HIGH when at least one input is HIGH ().
NOT Gate: Outputs the complement of the input ().
NAND Gate: Outputs LOW only when all inputs are HIGH (); acts as a universal logic gate.
NOR Gate: Outputs LOW if any input is HIGH (); acts as a universal logic gate.
Upcoming Topics (Week 3):
XOR and XNOR gate architectures and parity applications.
Fundamentals of Boolean algebra identities and algebraic reduction.
Advanced minimization techniques using DeMorgan's Theorems.