Computer Hardware and Fundamentals Flashcards

Binary Fundamentals and Data Representation

  • Definition of Binary System:

    • Binary is a base-2 positional numeral system written exclusively using combinations of two digits: 00 and 11.

    • Computers utilize binary to process data, execute instructions, perform calculations, and handle system functions.

    • Any input provided to a computer (text, keystrokes, signals) is processed by internal hardware translators that convert the data into binary sequences.

  • Bits and Bytes:

    • Bit: The foundational, smallest unit of digital data, representing a single binary value of either 00 or 11.

    • Byte: A contiguous group of 8 bits8\,\text{bits} combined into a single standard unit (e.g., 10100000210100000_2).

Byte and Bit representation
  • Binary to Decimal Conversion Principles:

    • Positional values in a binary number correspond to powers of 22 (2n2^n), increasing exponentially from right to left starting at position 00 (Least Significant Bit, LSB).

    • In an 8 bit8\,\text{bit} binary number (byte), the positional weight values from left (Most Significant Bit, MSB) to right (LSB) are:

    • Position 7: 27=1282^7 = 128

    • Position 6: 26=642^6 = 64

    • Position 5: 25=322^5 = 32

    • Position 4: 24=162^4 = 16

    • Position 3: 23=82^3 = 8

    • Position 2: 22=42^2 = 4

    • Position 1: 21=22^1 = 2

    • Position 0: 20=12^0 = 1

    • Each digit state acts as a switch:

    • 00 indicates the positional value is "Off".

    • 11 indicates the positional value is "On".

    • Decimal (base-10) positional values operate on powers of 1010 (10n10^n):

    • 104=1000010^4 = 10000

    • 103=100010^3 = 1000

    • 102=10010^2 = 100

    • 101=1010^1 = 10

    • 100=110^0 = 1

  • Step-by-Step Conversion Example (00001101200001101_2):

    • Given the 8 bit8\,\text{bit} binary value 00001101200001101_2:

    • Bit 7 (27=1282^7 = 128): 0→Off0 \rightarrow \text{Off}

    • Bit 6 (26=642^6 = 64): 0→Off0 \rightarrow \text{Off}

    • Bit 5 (25=322^5 = 32): 0→Off0 \rightarrow \text{Off}

    • Bit 4 (24=162^4 = 16): 0→Off0 \rightarrow \text{Off}

    • Bit 3 (23=82^3 = 8): 1→On (8)1 \rightarrow \text{On } (8)

    • Bit 2 (22=42^2 = 4): 1→On (4)1 \rightarrow \text{On } (4)

    • Bit 1 (21=22^1 = 2): 0→Off0 \rightarrow \text{Off}

    • Bit 0 (20=12^0 = 1): 1→On (1)1 \rightarrow \text{On } (1)

    • Summation of active positional values: 8+4+1=138 + 4 + 1 = 13.

    • Therefore, 000011012=131000001101_2 = 13_{10}.

Binary to decimal conversion table for 00001101

Character Encoding and ASCII

  • ASCII Background and Standards:

    • ASCII stands for American Standard Code for Information Interchange.

    • Standardized originally as a 7 bit7\,\text{bit} character encoding scheme proposed by the American National Standards Institute (ANSI) in 19631963 and finalized in 19681968 under ANSI Standard X3.4.

    • Created to establish a uniform standard for encoding printed and control symbols across hardware platforms.

    • By 20072007, ASCII became the predominant character encoding standard used across the Internet.

  • Character Mapping Mechanics:

    • Maps standard numeric values (decimals 00 through 127127) to specific characters, including uppercase and lowercase English letters, numerals 00 through 99, punctuation marks, and non-printing control characters.

    • Key Decimal Equivalents:

    • Space character: Decimal 3232 (Binary 00100000200100000_2).

    • Uppercase character 'A': Decimal 6565 (Binary 01000001201000001_2).

    • Uppercase character 'M': Decimal 7777 (Binary 01001101201001101_2).

  • Extended ASCII and Byte Storage:

    • Most systems extend standard ASCII to use an 8 bit8\,\text{bit} byte capacity (256256 character slots, values 00 through 255255).

    • The upper 128128 slots (values 128128 to 255255) accommodate foreign language accent marks, technical graphics, and specialized symbols.

    • Text handling in applications (e.g., Notepad in Windows XP/2000):

    • Text files reserve exactly 1 byte1\,\text{byte} of storage or memory per character, including spaces (character 3232).

    • Sentence structure size example: The string "Four score and seven years ago" uses 1 byte1\,\text{byte} per visible character and 1 byte1\,\text{byte} for each separating space character.

    • Binary text data is frequently formatted in Hexadecimal notation to reduce display overhead.

Full ASCII lookup table
  • ASCII Control and Printable Mapping Table Summary:

    • Control Characters (00 to 3131): Includes NUL (00), SOH (11), STX (22), ETX (33), EOT (44), ENQ (55), ACK (66), BEL (77), BS (88), TAB (99), LF (1010), VT (1111), FF (1212), CR (1313), SO (1414), SI (1515), DLE (1616), DC1 (1717), DC2 (1818), DC3 (1919), DC4 (2020), NAK (2121), SYN (2222), ETB (2323), CAN (2424), EM (2525), SUB (2626), ESC (2727), FS (2828), GS (2929), RS (3030), and US (3131).

    • Punctuation & Symbols (3232 to 4747): Space (3232), ! (3333), " (3434), # (3535), $ (3636), % (3737), & (3838), ' (3939), ( (4040), ) (4141), * (4242), + (4343), , (4444), - (4545), . (4646), / (4747).

    • Numeric Digits (4848 to 5757): 0 (4848) through 9 (5757).

    • Uppercase Alphabet (6565 to 9090): A (6565) through Z (9090).

    • Lowercase Alphabet (9797 to 122122): a (9797) through z (122122).

    • Special Character: DEL (127127).

Central Processing Unit (CPU) Architecture

  • Core Definition and Purpose:

    • The Central Processing Unit (CPU) is the core operational component of a computer system, referred to as the "brain of the computer", "central processor", "main processor", or "processor".

    • Primary operational duties:

    1. Executes all data processing tasks and compute operations.

    2. Temporarily stores operational data, program instructions, and execution results.

    3. Controls, manages, and coordinates all hardware sub-systems.

  • Processor Performance Metrics & Multi-Core Configurations:

    • Processor Chip: The physical integrated silicon chip inside the CPU housing processing cores.

    • Dual-core Processor: A CPU containing 22 independent physical processing cores.

    • Quad-core Processor: A CPU containing 44 independent physical processing cores.

    • Clock Speed: The rate at which a processor executes instruction cycles, measured in Megahertz (MHz) or Gigahertz (GHz).

Intel Core i7 Processor Chip
  • Four Basic Operational Steps (CPU Execution Cycle):

    1. FETCH: Retrieves program instructions stored in system memory.

    2. DECODE: Translates retrieved instructions into machine-level binary control signals.

    3. EXECUTE: Carries out the specified command, mathematical calculation, or logic operation.

    4. STORE: Writes computation results back to memory or directs them to output devices.

  • Major Internal Sub-units of a CPU:

    • Arithmetic Logic Unit (ALU):

    • Subdivided into two operational units:

      • Arithmetic Unit (AU): Executes mathematical arithmetic operations including addition, subtraction, multiplication, and division.

      • Logic Unit (LU): Executes boolean logic and evaluation functions including data comparison, sorting, selecting, matching, and merging.

    • Control Unit (CU):

    • Orchestrates and directs processing operations across all computer components.

    • Does not perform actual data processing or store application data.

    • Functions include managing instruction/data flow, fetching instructions from main memory, interfacing with I/O devices, and synchronizing system timing.

    • Memory Unit:

    • Internal storage component (also referred to as primary storage, main memory, internal storage, or RAM) holding raw data, active instructions, and intermediate computation outputs.

    • Processor Registers:

    • Ultra-fast, temporary storage cells located directly inside the CPU.

    • Store operational operands, memory addresses, and active status instructions.

    • Key CPU Registers:

      • PC (Program Counter): Tracks memory address of the next instruction to fetch.

      • CIR (Current Instruction Register): Holds the instruction currently undergoing decoding/execution.

      • AC (Accumulator): Stores intermediate arithmetic and logical results.

      • MAR (Memory Address Register): Holds memory locations currently being read from or written to.

      • MDR (Memory Data Register): Holds data being transferred to or from memory.

Central Processing Unit Functional Architecture Diagram

System on Chip (SoC) Integration

  • SoC Concept and Architecture:

    • A System on Chip (SoC) is an Integrated Circuit (IC) that consolidates all or most major components of an entire computing system onto a single silicon die.

    • Replaces discrete multi-chip board architecture (separate CPU, RAM, graphics, I/O controllers) with a single compact package.

    • Driven by Very Large Scale Integration (VLSI) semiconductor advances, allowing millions to billions of transistors to inhabit one die.

  • Key Hardware Components Integrated in an SoC:

    • CPU: Main processing core running operating system code and applications.

    • GPU: Graphics hardware handling image rendering, UI display, and parallel task compute.

    • Embedded Memory: High-speed on-chip cache and integrated RAM.

    • I/O Interfaces: Built-in system controllers for USB, PCIe, HDMI, audio, and network links.

    • Specialized Hardware Accelerators: Dedicated silicon modules for Machine Learning/AI, Digital Signal Processing (DSP), or cryptographic operations.

    • Power Management Unit: Integrated power control circuitry maximizing energy efficiency.

  • SoC System Triad Definition:

    • An SoC is defined by three interconnected operational layers:

    • SoC=Chip+Software+Integration\text{SoC} = \text{Chip} + \text{Software} + \text{Integration}

    • Chip Hardware: Embedded processors, custom ASIC logic circuits, embedded memory blocks, and analog/RF components.

    • Software Layer: Operating systems, compilers, hardware drivers, system firmware, protocol stacks, application code interfaces (C/C++, Assembly), and IDE toolchains (debuggers, linkers, In-Circuit Emulators [ICE]).

    • System Integration: Turnkey product solutions, foundry/manufacturing consultancy, and technical implementation infrastructure.

Memory Hierarchy and Storage Systems

  • Random Access Memory (RAM):

    • Primary memory allowing direct, random access to any storage cell in equal time regardless of sequence.

    • Classified as Volatile Memory: data persists only while receiving power and clears instantly when power is cut.

    • RAM Operation Mechanism:

    • The CPU initiates data retrieval by sending a binary address sequence (00s and 11s) over address wires.

    • The memory array evaluates the address when the CPU activates the SET or ENABLE control line.

    • When ENABLE is active, RAM senses stored state bits corresponding to the requested address and sends stored data back to the CPU across data lines.

    • Types of RAM:

    • Static RAM (SRAM): Holds stored binary states without requiring continuous electrical refresh cycles. Features extremely fast access speeds, but each memory cell takes up substantial physical space on silicon (requiring multiple transistors per cell), making SRAM high-cost and lower in capacity.

    • Dynamic RAM (DRAM): Requires continuous electrical refresh cycles to maintain charge on integrated memory capacitors. If unrefreshed, charge dissipates and stored data is lost. Offers high density and lower cost per bit.

Random Access Memory Sticks
  • Primary Storage Comparison: ROM vs. RAM:

    • Read-Only Memory (ROM):

    • Permanent, non-volatile primary storage that cannot be modified or deleted during standard operation.

    • Retains code when system power is off.

    • Contains critical boot software (BIOS/firmware) directing the hardware to load the Operating System from storage into active system RAM.

    • RAM Capacity Impact:

    • Volatile working memory used to load active programs (e.g., MS Word).

    • Directly determines system multi-tasking performance, operational execution speed, and max concurrent software load.

    • Standard personal computers typically ship equipped with 8 GB8\,\text{GB} to 16 GB16\,\text{GB} of RAM.

  • Data Capacity Units Scale:

    • Bit: Smallest binary data unit (00 or 11).

    • Byte: 8 bits8\,\text{bits}.

    • Kilobyte (KB): 1024 bytes1024\,\text{bytes} (approximated standard: 1000 bytes1000\,\text{bytes}).

    • Megabyte (MB): 1024 KB1024\,\text{KB} (1000 KB1000\,\text{KB} display standard).

    • Gigabyte (GB): 1024 MB1024\,\text{MB} (1000 MB1000\,\text{MB} display standard).

    • Terabyte (TB): 1024 GB1024\,\text{GB}.

  • Secondary and Backing Storage Devices:

    • Hard Disk Drive (HDD):

    • Non-volatile primary backing store inside computers.

    • Utilizes rotating rigid platters coated with magnetic material read/written via electro-magnetic heads.

    • External hard drives connect via external cabling (e.g., USB) for backup and expanded capacity.

    • Floppy Disk:

    • Portable magnetic media format introduced in the 1980s1980\text{s}.

    • Max capacity: 1.44 MB1.44\,\text{MB} (roughly equivalent to 300 pages300\,\text{pages} of plain text).

    • Incapable of storing modern image graphics or WordArt due to capacity constraints.

3.5-inch Floppy Disk
  • Zip Disk:

    • Magnetic storage medium developed as a high-capacity backup tool prior to consumer CD-R drives.

    • Thicker format than floppy diskettes, holding roughly 100 MB100\,\text{MB} of data (70×70\times floppy disk capacity).

Iomega Zip Disk
  • Magnetic Tape:

    • Sequential access magnetic backing media utilized primarily by enterprise organizations for daily archiving.

    • Operates like analog audio/video tape; retrieving data requires physical sequential winding from the beginning of the ribbon, causing slow data search speeds.

Open reel magnetic tape storage
  • Compact Disk (CD):

    • Optical storage medium written to and read from by precision optical laser beams inside a disk drive.

    • Standard CD capacity: ∼650 MB\sim 650\,\text{MB} (equivalent storage capacity of 450450 standard floppy disks).

Optical Compact Disk CD
  • Flash Memory (USB Flash Drives):

    • Compact, lightweight, non-volatile, rewritable solid-state storage.

    • Built around a printed circuit board (PCB) encased in metal/plastic with a protected USB interface.

    • Commercial sizes range from 1 GB1\,\text{GB} up to 2 TB2\,\text{TB}.

USB Flash Memory Drive

Input/Output Ports, Connectors, and Interconnects

  • Definitions:

    • Port: A designated physical socket or aperture on a computer system designed to accept cable connections or peripheral interfaces.

    • Connector: The physical plug attached to a cable or peripheral designed to mate with a specific port standard.

  • I/O Port Categorization and Standards:

    • Audio Interfaces:

    • Audio In / Line In (3.5mm blue jack / RCA).

    • Headphones / Speaker Out (3.5mm lime green jack).

    • Microphone In (3.5mm pink jack).

    • Surround Sound Jacks: Center/subwoofer (orange), Side surround (grey), Rear surround (black).

    • S/PDIF In & Out: Optical/coaxial digital audio connectivity.

    • Video Interfaces:

    • VGA Port: 15-pin analog video connection for monitors.

    • DVI (Digital Video Interface): High-density digital display connector.

    • HDMI Port: High-Definition Multimedia Interface delivering uncompressed digital video and multi-channel audio.

    • Legacy Video: Composite Video In (RCA yellow), S-Video (mini-DIN).

    • Legacy Connectivity:

    • PS/2 Ports: 6-pin Mini-DIN interfaces for mouse (green) and keyboard (purple).

    • Serial Port: DB-9 connector used historically for dial-up modems.

    • Parallel / LPT1 Printer Port: DB-25 port for legacy printers.

    • Game Port: 15-pin interface used for legacy joysticks.

    • Data and Storage Interfaces:

    • eSATA Port: External Serial ATA connection for external storage drives.

    • FireWire (IEEE 1394): High-speed legacy serial transfer interface.

    • Network Communication Ports:

    • Ethernet Port (RJ-45): Wired Network interface connection.

    • Telephone Line In (RJ-11): Dial-up modem phone port.

    • Coaxial/RF Interfaces: Cable TV, FM Reception.

Back panel computer port identificationComputer Port Types Reference Chart
  • Universal Serial Bus (USB) Generations & Form Factors:

    • USB 2.0 Forms: Type-A, Type-B, Micro-B, Type-C, Apple Lightning.

    • USB 3.0 Forms: Type-A (blue internal plastic tab), Type-B, Micro-B, Type-C.

USB 2.0 and USB 3.0 Connector Standard Types

Wireless Communication Standards

  • Wi-Fi Technology:

    • Generic designation referring to the IEEE 802.11 communication standard set for Wireless Local Area Networks (WLANs).

    • Operates across the Physical Layer and Data Link Layer of the OSI networking model.

    • Connects computers to local networks, fellow nodes, and external Internet infrastructure without physical cabling.

    • Operational Objectives:

    • Abstracts hardware networking complexity for users.

    • Provides cross-manufacturer hardware compatibility.

    • Eliminates structural wiring, adapters, switches, and pin connectors.

Wi-Fi Wireless Technology Symbol
  • Bluetooth Standard:

    • Short-range radio frequency communication technology designed to eliminate physical cables between computers and peripheral devices.

    • Functions explicitly as a low-cost, low-power Cable Replacement Technology.

Operating System (OS) Fundamentals

  • Definition and Purpose:

    • An Operating System (OS) is an essential layer of system software managing computer hardware resources and supplying standardized platform execution services for application programs.

    • Acts as an abstraction layer between user applications and bare physical hardware (CPU, RAM, drives, display monitors, keyboards, printers).

Operating System Hardware Abstraction Diagram
  • Core Functions of an Operating System:

    1. User Interface Provision: Provides a Graphical User Interface (GUI) or Command-Line Interface (CLI) for system manipulation.

    2. Application Management: Manages program loading, execution, memory allocation, and CPU task scheduling.

    3. Utility Support: Integrates built-in system tools for file management, disk maintenance, and security.

    4. Hardware Control & Resource Allocation: Controls underlying hardware, monitors device operations, and manages input/output routing.

  • Major Personal Computer Operating Systems:

    • Microsoft Windows:

    • Developed by Microsoft; dominant desktop operating system over the last two decades.

    • Features a GUI desktop enabling users to manage folders and files inside visual windows.

    • Single-user, multi-tasking operating environment.

    • Apple Mac OS X:

    • Version 10 of Apple's Macintosh operating system.

    • Built as a modular platform overhaul succeeding Mac OS 9 to streamline system updates.

    • Core operating codebase compiled using C, C++, and Objective-C.