Introduction to Personal Computer Systems

Computer System Components & Architecture

  • Hardware: Physical components of a computer including the CPU, motherboard, RAM, storage drives, power supply, case, and external peripherals.
  • Software: Programs, scripts, and operating systems that instruct hardware to access, process, and store data.
  • Basic Architecture: Data flows from input devices into the Central Processing Unit (CPU) and Memory Unit, and results are sent to output devices.

Basic Computer Architecture Diagram

Cases and Power Supplies

  • Computer Cases: Enclosures (desktop or tower) made of plastic, steel, or aluminum that protect components and facilitate cooling via vents and case fans.
  • Electricity Terms & Formulas:
    • Voltage (VV): Force required to push electrons through a circuit (measured in volts).
    • Current (II): Rate of electron flow through a circuit (measured in amperes/amps).
    • Power (PP): Electric energy rate measured in watts (WW), where P=VIP = VI.
    • Resistance (RR): Opposition to current flow measured in ohms; related via Ohm's Law V=IRV = IR
  • Power Supply: Converts AC power from a wall outlet into DC power at lower voltages. Typical ratings range from 200 W200\,W to 500 W500\,W (and up to 800 W800\,W for high-performance systems).
  • Power Connectors: Keyed connectors including Molex (optical/hard drives), Berg (floppy drives), 20-pin or 24-pin slotted (motherboard), and 4-pin to 8-pin auxiliary connectors.

Motherboards, Processors, and Cooling

  • Motherboard: The central printed circuit board (PCB) connecting all components via buses. Form factors include AT, ATX, Mini-ATX, Micro-ATX, LPX, NLX, and BTX.
  • Chipset: Integrated circuits controlling component communication:
    • Northbridge: Controls access to RAM, video card, and CPU speed.
    • Southbridge: Controls communication with I/O ports, hard drives, and sound cards.
  • Central Processing Unit (CPU):
    • Control Unit (CU): Manages data transfer and interprets instructions without storing or processing data directly.
    • Arithmetic Logic Unit (ALU): Executes arithmetic and bitwise logic operations on integer binary numbers.
    • Architectures: RISC (small instruction set, fast execution) vs CISC (broad instruction set, fewer steps per operation).
    • Form Factor & Performance: Mounts via sockets (PGA with Zero Insertion Force) or expansion-style slots. Speeds are measured in MHzMHz or GHzGHz across 32-bit or 64-bit data buses. Supports single-core, dual-core, and hyperthreading.
  • Cooling: Combines case fans, CPU heat sinks/fans, GPU fans, and liquid cooling systems (water block, pump, radiator) to prevent thermal damage.

Memory Systems: ROM, RAM, and Cache

  • Read-Only Memory (ROM): Non-volatile storage containing boot instructions (firmware).
    • PROM: Programmable once after manufacture.
    • EPROM: Erasable using strong ultraviolet light.
    • EEPROM: Electrically erasable flash memory re-writable without removal.
  • Random-Access Memory (RAM): Volatile main memory storing active data and programs.
    • Dynamic RAM (DRAM): Requires periodic electrical refresh cycles (capacitors/transistors); includes FPM, EDO, SDRAM (up to 133 MHz133\,MHz), DDR, DDR2, and RDRAM.
    • Static RAM (SRAM): High-speed flip-flop memory requiring no refresh; used for CPU cache and registers.
  • Memory Modules: DIP (individual chips), SIMM (30-pin/72-pin, 32-bit), DIMM (168-pin/184-pin/240-pin, 64-bit), and RIMM (184-pin).
  • Cache Memory: High-speed SRAM buffer categorized into L1 (internal CPU), L2 (integrated/external), and L3 (workstation/server).
  • Error Checking: Nonparity (no checking), Parity (8 data bits + 1 parity bit for error detection), and ECC (detects multi-bit and corrects single-bit errors).

Adapter Cards, Expansion Slots, and Storage Drives

  • Adapter Cards: Expand system capabilities (NIC, Wireless NIC, Sound, Video/GPU, Modem, SCSI, RAID, USB, Parallel, Serial).
  • Expansion Slots: ISA, EISA, MCA, PCI, AGP, and PCIe (x1, x4, x8, x16 serial slots); LPX cases use riser cards.
  • Storage Media:
    • Floppy Drive: Magnetic 3.5-inch media storing 720 KB720\,KB or 1.44 MB1.44\,MB
    • Hard Disk Drive (HDD): Non-volatile magnetic platters measured in gigabytes (GBGB) and rotational speeds (rpmrpm
    • Optical Drives: Laser-read media including CDs (700 MB700\,MB capacity) and DVDs (8.5 GB8.5\,GB capacity per side).
    • Flash Drives: Portable USB non-volatile memory.
  • Drive Interfaces: IDE/ATA (40-pin), EIDE (40-pin with DMA support), PATA, SATA (7-pin), and SCSI (50-pin, 68-pin, or 80-pin).

Ports, Cables, and Input/Output Devices

  • Ports and Cables:
    • Serial: DB-9/DB-25 male transferring 1 bit at a time (max length 50 feet50\text{ feet}/15.2 m15.2\,m
    • USB: Hot-swappable interface supporting up to 127 devices per port using hubs.
    • FireWire (IEEE 1394): Hot-swappable interface for up to 63 devices; IEEE 1394a (400 Mbps400\,Mbps, max 15 feet15\text{ feet}/4.5 m4.5\,m) and IEEE 1394b (800 Mbps800\,Mbps
    • Parallel: DB-25 female / Centronics 36-pin transmitting 8 bits at a time (IEEE 1284).
    • SCSI: Transmits over 320 Mbps320\,Mbps for up to 15 devices (max cable length 80 feet80\text{ feet}/24.4 m24.4\,m single, 40 feet40\text{ feet}/12.2 m12.2\,m multi-device).
    • Network (RJ-45): Ethernet (10 Mbps10\,Mbps), Fast Ethernet (100 Mbps100\,Mbps), Gigabit Ethernet (1000 Mbps1000\,Mbps); max length 328 feet328\text{ feet}/100 m100\,m
    • PS/2: 6-pin mini-DIN for keyboard and mouse connections.
    • Audio: Line In, Mic In, Line Out, Aux In, Game/MIDI.
    • Video: VGA (15-pin analog), DVI (24/29-pin digital/analog), HDMI (19-pin digital audio/video), S-Video (4-pin), Component/RGB.
  • Input Devices: Mouse, keyboard, digital camera, biometric scanner, touchscreen, document scanner, bar code reader.
  • Output Devices: CRT, LCD (active TFT or passive matrix), DLP projectors, printers, speakers, headphones.

System Resources

  • Interrupt Requests (IRQ): 16 hardware lines (00 to 1515) used by devices to request CPU service; managed automatically in modern plug-and-play systems.
  • I/O Port Addresses: 65,535 hexadecimal addresses (0000h0000\text{h} to FFFFh\text{FFFF}\text{h}) assigned to exchange data between software and specific hardware components.
  • Direct Memory Access (DMA): 8 hardware channels (00 to 77) enabling high-speed peripherals (e.g., SCSI host adapters, sound cards) to transfer data directly to RAM without involving the CPU.