Activity 1.1.6 — Digital Component Identification¶
Learning Objectives¶
By the end of this lesson, students will be able to:
- Identify and describe the basic building blocks of digital electronics, including transistors and logic gates.
- Explain the relationship between transistors, logic gates, and truth tables.
- Compare TTL and CMOS technologies and describe levels of circuit integration.
- Interpret IC package styles and identify pin 1 on various IC packages.
Vocabulary¶
Vocabulary (click to expand)
| Term | Definition |
|---|---|
| Transistor | A semiconductor device that controls the flow of electricity; acts as a switch or amplifier with two states: ON (conducting) and OFF (non-conducting) |
| Logic Gate | A circuit built from transistors that performs a logical operation on one or more inputs to produce an output |
| Truth Table | A table that lists all possible combinations of input values in ascending binary order along with the corresponding output for each combination |
| Integrated Circuit (IC) | A complete electronic circuit with many components (transistors, resistors, capacitors) fabricated onto a single semiconductor chip |
| TTL (Transistor-Transistor Logic) | A family of digital circuits using bipolar junction transistors; faster but uses more power and is not ESD-sensitive |
| CMOS (Complementary Metal-Oxide-Semiconductor) | A family of digital circuits using MOSFETs; lower power consumption and higher component density, but ESD-sensitive |
| SSI (Small-Scale Integration) | ICs containing 1 to 20 gates or flip-flops |
| MSI (Medium-Scale Integration) | ICs containing 20 to 200 gates, such as counters and multiplexers |
| LSI (Large-Scale Integration) | ICs containing 200 to thousands of gates, such as memory chips |
| VLSI (Very-Large-Scale Integration) | ICs containing thousands to millions of gates, such as microprocessors |
| DIP (Dual In-line Package) | A through-hole IC package with pins extending through the circuit board |
| SOIC (Small Outline Integrated Circuit) | A surface-mount IC package with pins extending outward from the sides |
| 74-Series | A standard family of TTL logic ICs (e.g., 7400 contains four NAND gates) |
Part 1: The Building Blocks — Transistors¶
Digital electronics begins with a single, revolutionary component: the transistor. Invented in 1947, the transistor is a semiconductor device that can control the flow of electrical current.
What Does a Transistor Do?¶
Think of a transistor as an electronic switch or amplifier:
- OFF State: The transistor blocks current flow, like a closed valve in a pipe.
- ON State: The transistor allows current to flow, like an open valve.
Because a transistor has only two states (on or off), it is perfect for representing binary values: - OFF = 0 (logic low, no voltage) - ON = 1 (logic high, full voltage)
Why Transistors Matter¶
Modern microprocessors contain billions of transistors working together. Every digital device you use — from calculators to smartphones — relies on transistors as the fundamental building block.
Key insight: A single transistor can represent one bit of information, but billions of them working together can perform complex calculations, store vast amounts of data, and run entire operating systems.
Part 2: Logic Gates — Transistors Working Together¶
While transistors are the physical switches, logic gates are the logical building blocks built from those switches. A logic gate takes one or more binary inputs and produces a binary output based on a defined rule.
What is Boolean Algebra?¶
Boolean algebra (named after mathematician George Boole) is the mathematics of digital logic. It uses variables that can only have two values: 0 (false) or 1 (true). Logic gates implement Boolean operations.
Common Logic Gates¶
| Gate | Symbol | Boolean Expression | Description |
|---|---|---|---|
| NOT (Inverter) | Triangle with circle | Y = A | Outputs the opposite of the input |
| AND | D-shape | Y = A * B | Outputs 1 only if ALL inputs are 1 |
| OR | Curved back | Y = A + B | Outputs 1 if ANY input is 1 |
| NAND | AND with circle | Y = (A * B)' | NOT-AND; outputs 0 only if ALL inputs are 1 |
| NOR | OR with circle | Y = (A + B)' | NOT-OR; outputs 1 only if ALL inputs are 0 |
| XOR | OR with curved back | Y = A xor B | Outputs 1 if inputs are different |
Part 3: Truth Tables — Mapping Every Possibility¶
A truth table is a systematic way to show how a logic gate or circuit behaves for every possible combination of inputs.
Rules for Truth Tables:¶
- List all possible input combinations in ascending binary order
- Show the output for each combination
- For 2 inputs, there are 4 possible combinations (2^2 = 4)
- For 3 inputs, there are 8 possible combinations (2^3 = 8)
Worked Example — AND Gate Truth Table:
For an AND gate with inputs A and B: - Output Y is 1 only when BOTH A=1 AND B=1
| A | B | Y |
|---|---|---|
| 0 | 0 | 0 |
| 0 | 1 | 0 |
| 1 | 0 | 0 |
| 1 | 1 | 1 |
Worked Example — 3-Input AND Gate Truth Table:
| A | B | C | Y |
|---|---|---|---|
| 0 | 0 | 0 | 0 |
| 0 | 0 | 1 | 0 |
| 0 | 1 | 0 | 0 |
| 0 | 1 | 1 | 0 |
| 1 | 0 | 0 | 0 |
| 1 | 0 | 1 | 0 |
| 1 | 1 | 0 | 0 |
| 1 | 1 | 1 | 1 |
Key insight: A truth table with n inputs will always have exactly 2^n rows. This exponential growth is why truth tables become large for gates with many inputs!
Part 4: Integrated Circuits (ICs)¶
An integrated circuit (IC) packages thousands, millions, or even billions of transistors into a single physical component. Instead of building a circuit from individual transistors, engineers use ICs to create complex systems efficiently.
TTL vs CMOS — Two Major Technologies¶
| Property | TTL | CMOS |
|---|---|---|
| Full Name | Transistor-Transistor Logic | Complementary Metal-Oxide-Semiconductor |
| Speed | Faster propagation times | Slightly slower (historically) |
| Power Consumption | Higher standby power | Lower standby power |
| Voltage Range | 4.75V to 5.25V | 3V to 15V typical |
| ESD Sensitivity | Not sensitive | Very sensitive to static discharge |
| Density | Lower | Higher (more gates per chip) |
| Cost | Generally lower | Can be higher |
| Common Use | Legacy systems, some industrial | Modern microprocessors, mobile devices |
Levels of Integration — How Complex Is the IC?¶
| Level | Abbreviation | Gate Count | Examples |
|---|---|---|---|
| Small-Scale Integration | SSI | 1–20 | Logic gates, flip-flops |
| Medium-Scale Integration | MSI | 20–200 | Counters, multiplexers, decoders |
| Large-Scale Integration | LSI | 200–2,000 | Memory chips, simple microcontrollers |
| Very-Large-Scale Integration | VLSI | 2,000–1,000,000+ | Microprocessors, FPGAs |
| Ultra-Large-Scale Integration | ULSI | 1,000,000+ | Advanced CPUs, GPUs |
Package Styles¶
DIP (Dual In-line Package): - Through-hole technology - Pins extend straight down through the circuit board - Older, larger designs - Easy to use on breadboards
SOIC (Small Outline Integrated Circuit): - Surface-mount technology - Pins extend outward from the sides - Smaller, lighter, better for automated manufacturing - Used in most modern electronics
Part 5: Reading IC Packages and Datasheets¶
Identifying Pin 1 on an IC¶
Every IC package has a pin 1 marker. You must identify pin 1 to correctly orient the chip:
| Package Type | Pin 1 Indicator |
|---|---|
| DIP | Notch at top, dot next to pin 1 |
| SOIC | Dot in corner near pin 1 |
| PLCC | Cut corner on package |
| QFP | Dot or chamfered corner |
Counting Pins¶
IC pins are numbered counter-clockwise when viewed from the top, starting from pin 1.
------
1 | | 14
| |
2 | | 13
| |
3 | | 12
... ...
| |
11 | | 4
| |
12 | | 3
| |
13 | | 2
| |
14 | | 1
------
The 74-Series TTL Logic Family¶
Standard TTL ICs follow a naming convention:
74XXNN
74 = Commercial temperature range
XX = Subfamily (HC, HCT, ALS, etc.)
NN = Function number (00 = NAND, 02 = NOR, 04 = NOT, etc.)
Common examples: - 7400 — Quad 2-input NAND gate - 7402 — Quad 2-input NOR gate - 7404 — Hex inverter - 7408 — Quad 2-input AND gate - 7432 — Quad 2-input OR gate - 7486 — Quad 2-input XOR gate
Reading Datasheets¶
A datasheet is a manufacturer's document containing all technical specifications for a component. Key sections include:
- Pin Configuration — Shows the function of each pin
- Function Table — Describes how outputs change with inputs
- Electrical Characteristics — Voltage, current, and timing specifications
- Package Dimensions — Physical size and pin spacing
Key insight: Always consult the datasheet before using an unfamiliar IC. The datasheet is the authoritative source for pin functions, voltage limits, and operating conditions.
Part 6: Practice Problems¶
Practice Problem 1 — Truth Table Completion¶
Create the truth table for a 2-input OR gate. A 2-input OR gate outputs 1 if either input A OR input B is 1.
Show Solution
| A | B | Y = A + B |
|---|---|---|
| 0 | 0 | 0 |
| 0 | 1 | 1 |
| 1 | 0 | 1 |
| 1 | 1 | 1 |
Practice Problem 2 — IC Identification¶
A logic chip is marked "74HC08". Using the 74-series naming convention, answer: 1. What type of logic family is this? 2. What function does this IC perform?
Show Solution
- HC = High-Speed CMOS (a modern CMOS subfamily)
- 08 = Quad 2-input AND gate (the "08" function number indicates AND operation in the 7400 family)
Practice Problem 3 — Integration Level¶
Categorize each component by its integration level: - A flash memory chip with 16 megabits of storage - A single NAND gate in a 6-pin package - A microcontroller with 32 KB of memory and 20 GPIO pins - A smartphone processor with 11 billion transistors
Show Solution
- Flash memory (16 Mbit) — LSI (Large-Scale Integration; memory chips typically fall in this range)
- Single NAND gate — SSI (Small-Scale Integration; simple gates)
- Microcontroller (32 KB) — LSI (contains processor, memory, and peripherals)
- Smartphone processor (11B transistors) — VLSI or ULSI (very complex processors)
Practice Problem 4 — Pin Identification¶
You are holding a 14-pin DIP IC with the notch facing up. Pin 1 is to your left. How many total pins does this package have, and what is the number of the pin in the bottom-right corner?
Show Solution
- Total pins: 14 (standard DIP size for many logic gates)
- Bottom-right pin: Counting counter-clockwise from pin 1 (left side, top):
- Left column, top to bottom: 1, 2, 3, 4, 5, 6, 7
- Right column, bottom to top: 8, 9, 10, 11, 12, 13, 14
- Pin 7 is the bottom-left; Pin 14 is the top-right
- Pin 8 is the bottom-right corner
Summary¶
| Topic | Key Points |
|---|---|
| Transistor | Semiconductor switch with ON (1) and OFF (0) states |
| Logic Gate | Circuit that performs Boolean operations (AND, OR, NOT, etc.) |
| Truth Table | Lists all input combinations and outputs; 2^n rows for n inputs |
| TTL | Faster, higher power, not ESD-sensitive |
| CMOS | Lower power, ESD-sensitive, higher density |
| SSI/MSI/LSI/VLSI | Increasing levels of circuit complexity |
| DIP vs SOIC | Through-hole vs surface-mount packages |
| 74-Series | Standard TTL logic family numbering system |
| Pin 1 | Identified by notch or dot; pins numbered counter-clockwise |
Quick Reference — Common 74-Series ICs¶
| IC Number | Function |
|---|---|
| 7400 | Quad 2-input NAND |
| 7402 | Quad 2-input NOR |
| 7404 | Hex Inverter |
| 7408 | Quad 2-input AND |
| 7432 | Quad 2-input OR |
| 7486 | Quad 2-input XOR |
Key Reminders¶
- Transistors are the fundamental building blocks of all digital circuits, acting as electronic switches with two states.
- Logic gates use Boolean algebra to perform logical operations on binary inputs.
- Truth tables list all possible input combinations in binary order; a circuit with n inputs has exactly 2^n rows.
- TTL uses more power but is faster and ESD-safe; CMOS uses less power but requires careful ESD handling.
- Integration levels (SSI through VLSI) describe circuit complexity, from a few gates to billions of transistors.
- IC pins are numbered counter-clockwise from pin 1, which is marked by a notch or dot.
- Always consult the manufacturer datasheet for accurate pin configurations and specifications.
Custom activity — adapted from PLTW Digital Electronics