Associate CET · Competency 15.0

Computer Electronics

Underneath every computer is the same handful of building blocks: a processor that executes instructions, memory that holds data and programs, buses that move information between them, and a clock that keeps everything in step. This covers the hardware architecture — the counterpart to the Computer Applications page, which covers ports, networking, and software.

The processor (CPU / MPU)

The CPU (Central Processing Unit) — the microprocessor when built on one chip — is the brain that fetches, decodes, and executes instructions. Inside it are three core sections: the ALU (Arithmetic Logic Unit) that does the math and logic, the control unit that sequences operations, and a set of registers — tiny fast storage cells for the data being worked on right now.

The CPU runs a relentless fetch–decode–execute cycle: fetch the next instruction from memory, decode what it means, execute it, repeat — billions of times a second.

A computer's core: the CPU exchanges addresses, data, and control signals with memory and I/O over the system bus.
The system bus

The CPU connects to memory and I/O through the system bus — a set of parallel lines, traditionally grouped into three:

Address bus
Carries the location the CPU wants to read or write. Its width sets how much memory can be addressed — n lines = 2ⁿ locations. One-way (CPU → memory).
Data bus
Carries the actual data to/from that location. Bidirectional. Its width (8/16/32/64 bits) is a big factor in how much data moves per cycle.
Control bus
Carries timing and command signals — read, write, clock, interrupt, reset — that coordinate who uses the bus and when.
Key relationship: the address bus width determines the maximum addressable memory. A 16-line address bus can address 2¹⁶ = 65,536 locations (64K); a 20-line bus reaches 1 MB. The data bus width sets how many bits move at once.
The clock & timing

Everything in a synchronous computer marches to a clock — a steady square-wave from a crystal oscillatoriA quartz crystal vibrates at a precise frequency (the piezoelectric effect), giving the clock its stability. Clock speed is measured in Hz — MHz and GHz for modern CPUs. that synchronizes every operation. Each tick steps the processor through its cycle. Clock speed (in MHz/GHz) is roughly how many cycles run per second — higher generally means more instructions per second, though architecture matters too.

Period ↔ frequency: clock period and frequency are inverses — T = 1/f. A 4 MHz clock has a period of 250 ns. The crystal's stability comes from the piezoelectric effect (see Semiconductor Basics).
Memory types
TypeCharacteristics
RAMRandom Access Memory — fast read/write working memory, but volatile (contents lost when power is removed). Holds running programs and data.
ROMRead Only Memorynon-volatile, permanent storage that survives power-off. Holds firmware/boot code. Generally not changed in normal operation.
CacheSmall, very fast RAM close to the CPU that holds recently-used data to avoid slower main-memory fetches.
Flash / EEPROMNon-volatile but electrically rewritable — the middle ground used for BIOS, SSDs, and firmware updates.
Exam staple: permanent, non-volatile, non-removable storage in a computer is ROM. RAM is the volatile working memory that loses its contents when powered down.
Data representation

Computers represent everything — numbers, characters, instructions — as combinations of 0s and 1s (binary). A single 0/1 is a bit; 8 bits make a byte, which can represent 2⁸ = 256 distinct values. Characters are encoded in schemes like ASCII.

Exam numbers: a byte = 8 bits; an 8-bit code gives 256 combinations. Practice base conversions in the Binary Converter and gate logic in Digital / Logic.
Microprocessor vs. microcontroller

Microprocessor (MPU)

Just the CPU on a chip. Needs external memory, I/O, and support chips to form a working system. Used where flexibility and high performance matter — PCs, servers.

Microcontroller (MCU)

A whole computer on one chip — CPU plus RAM, ROM/flash, and I/O built in. Cheap, compact, low-power; runs the embedded devices a technician services everywhere.

Practice this topic: Computer Electronics questions are in the Study Hub quiz bank, number systems are in the Binary Converter, and ports/networking are on the Computer Applications page.