Unit 2 - Notes

CAP321 8 min read

Unit 2: Configuring Hardware and the basic Input/Output System

1. BIOS Configuration and Settings

1.1 Understanding BIOS and UEFI

The BIOS (Basic Input/Output System) is firmware embedded on a chip on the computer's motherboard. It is the first software that runs when a computer is powered on. Modern systems use UEFI (Unified Extensible Firmware Interface), which is an advanced, GUI-based successor to legacy BIOS, offering faster boot times, larger drive support, and enhanced security (like Secure Boot).

Primary Functions of BIOS:

  • POST (Power-On Self-Test): Checks the hardware components (RAM, CPU, Keyboard, Drives) to ensure they are functioning correctly before loading the operating system.
  • Bootstrap Loader: Locates the operating system and passes control to it.
  • BIOS Drivers: Low-level drivers that give the system basic control over the computer's hardware.
  • CMOS Setup: A configuration program that allows users to alter hardware settings (time, date, boot order, passwords).

1.2 Accessing the BIOS

To enter the BIOS/UEFI setup, a specific key must be pressed repeatedly immediately after powering on the computer, during the POST phase.

TEXT
Common BIOS Entry Keys by Manufacturer:
- ASUS: F2 or DEL
- Dell: F2 or F12
- HP: F10 or ESC
- Lenovo: F1 or F2
- Acer: F2 or DEL

1.3 Key BIOS Configurations and Settings

  • Boot Sequence (Boot Order): Determines the order in which the system searches storage devices for an operating system. For example, setting the USB drive first is necessary when installing a new OS.
  • System Time and Date: Maintained by the CMOS battery when the PC is off. Incorrect time can cause SSL certificate errors in web browsers.
  • Virtualization Technology (VT-x / AMD-V): Must be enabled to run virtual machines (VMs) like VirtualBox or VMware.
  • Hardware Monitoring: Displays real-time data for CPU temperature, motherboard temperature, fan speeds, and voltages.
  • Security Settings:
    • Administrator Password: Prevents unauthorized access to the BIOS setup.
    • User/Boot Password: Prevents the computer from booting without a password.
    • Secure Boot: A UEFI feature that ensures only authorized, digitally signed operating systems can boot, preventing rootkits.
  • Overclocking and XMP/DOCP: Allows advanced users to manually adjust CPU multipliers, voltages, and RAM speeds.

2. The Motherboard

The motherboard is the primary printed circuit board (PCB) of the computer. It acts as the central nervous system, providing the electrical and logical connections by which all other hardware components communicate.

2.1 Form Factors

The size and layout of the motherboard are defined by its form factor:

  • ATX (Advanced Technology eXtended): Standard full-size board (12 × 9.6 inches), offering maximum expansion slots and features.
  • Micro-ATX (mATX): Smaller (9.6 × 9.6 inches), fewer expansion slots, cost-effective.
  • Mini-ITX: Very small (6.7 × 6.7 inches), typically allows only one expansion slot, used for compact builds.

2.2 Key Motherboard Components

  • CPU Socket: The receptacle housing the Central Processing Unit (e.g., LGA for Intel, PGA/LGA for AMD).
  • Chipset: Manages data flow between the CPU, memory, and peripherals. It dictates the motherboard's capabilities (e.g., whether it supports overclocking or multiple GPUs).
  • Expansion Slots (PCIe): Peripheral Component Interconnect Express slots used for graphics cards, sound cards, and network cards.
  • SATA & NVMe M.2 Ports: Connectors for storage devices.
  • VRMs (Voltage Regulator Modules): Clean and step down the power coming from the Power Supply Unit (PSU) to a usable voltage for the CPU.
  • I/O Panel: The rear-facing panel containing ports for USB, audio, ethernet, and video output.

3. Configuring RAM and Changing Slots

RAM (Random Access Memory) is the volatile, short-term memory of the computer. It stores active data and machine code currently being used by the CPU.

3.1 Understanding RAM Architecture

Modern motherboards utilize Dual-Channel or Quad-Channel memory architecture. This effectively doubles or quadruples the data transfer rate between the RAM and the memory controller by utilizing two or four channels simultaneously.

3.2 Rules for Changing and Populating RAM Slots

Motherboards typically have 2 to 4 RAM slots. Proper placement is critical for system stability and optimal performance.

TEXT
Standard 4-Slot Motherboard Layout (from left to right, moving away from the CPU):
[ CPU ] | Slot A1 | Slot A2 | Slot B1 | Slot B2 |

Optimal Population Rules:
- 1 Stick: Place in Slot A2.
- 2 Sticks (Dual-Channel): Place in Slot A2 and Slot B2.
- 4 Sticks: Populate all slots.

Note: Installing two sticks in A1 and A2 will result in single-channel operation, severely bottlenecking system performance.

3.3 Physical Installation of RAM

  1. Power Down and Unplug: Ensure the system is completely powered off and disconnected from the wall. Ground yourself to prevent ESD (Electrostatic Discharge).
  2. Open the Retention Clips: Push down the plastic clips at the ends of the RAM slot(s) you intend to use.
  3. Align the Notch: RAM sticks have a specific notch cut into the connector edge. Align this notch with the physical key in the motherboard slot. This prevents inserting the RAM backward or inserting the wrong generation of RAM (e.g., DDR4 into a DDR5 slot).
  4. Seat the RAM: Press down firmly and evenly on both ends of the RAM stick. The retention clips should automatically snap up and lock into place with a "click".

3.4 BIOS Configuration of RAM (XMP / EXPO)

By default, newly installed RAM will run at a base standard speed (JEDEC specification), which is often much slower than advertised.

  • To configure: Enter the BIOS and enable XMP (Extreme Memory Profile) for Intel systems or DOCP/EXPO for AMD systems.
  • This applies a pre-tested factory overclock profile, adjusting the RAM's voltage, clock speed, and timings to match its advertised maximum performance.

4. Input and Output Devices

I/O devices allow humans to interact with the computer (Input) and allow the computer to present data back to the human (Output). Storage devices often act as both.

4.1 Keyboard (Input)

The primary device for text input, functioning via a grid of circuits.

  • Membrane Keyboards: Use rubber domes beneath the keys. When pressed, the dome collapses, completing a circuit on a membrane below. They are quiet and inexpensive.
  • Mechanical Keyboards: Use individual, physical mechanical switches (e.g., Cherry MX) for each key. They offer tactile feedback, durability, and anti-ghosting (N-key rollover) features.
  • Interfacing: Historically used PS/2 ports, but modern keyboards connect via USB Type-A, USB Type-C, or wirelessly (Bluetooth/2.4GHz RF).

4.2 Mouse (Input)

A pointing device that detects two-dimensional motion relative to a surface.

  • Optical Mouse: Uses an LED light and a tiny camera (CMOS sensor) to take thousands of pictures per second of the surface below it. A Digital Signal Processor (DSP) analyzes changes in the images to calculate movement.
  • Laser Mouse: Uses an infrared laser diode instead of an LED, allowing it to track on glossy surfaces or glass.
  • Key Metrics:
    • DPI (Dots Per Inch): Measures mouse sensitivity. Higher DPI means the cursor moves further on the screen with less physical movement.
    • Polling Rate: How often the mouse reports its position to the PC (e.g., 1000Hz = 1 millisecond response time).

4.3 Scanner (Input)

A device that optically scans images, printed text, or objects and converts them to digital images.

  • Mechanism: A document is placed on a glass plate. A bright light illuminates the document, and a scan head (consisting of mirrors, lenses, and a CCD - Charge Coupled Device sensor) moves across the document. The sensor captures the reflected light and converts it into digital data.
  • OCR (Optical Character Recognition): Software frequently bundled with scanners that translates the scanned image of text into actual, editable digital text files.

4.4 Hard Disk Drive (Input/Output)

A non-volatile storage device that stores digitally encoded data on rapidly rotating rigid platters with magnetic surfaces.

  • Mechanism: Inside a sealed enclosure, magnetic platters spin at high speeds (commonly 5400 RPM or 7200 RPM). A read/write head, situated on a moving actuator arm, floats nanometers above the spinning platter to alter or detect the magnetic polarity of microscopic domains on the disk.
  • Connection: Usually connects to the motherboard via a SATA (Serial ATA) cable for data, and to the power supply via a SATA power cable.
  • Note on modern computing: HDDs are largely being replaced by SSDs (Solid State Drives) which use flash memory and have no moving parts, resulting in vastly superior speeds.

4.5 Pen-Drive / USB Flash Drive (Input/Output)

A portable, plug-and-play non-volatile data storage device.

  • Technology: Uses NAND flash memory, which retains data without requiring a power source. It consists of millions of floating-gate transistors that trap electrons to represent binary data (0s and 1s).
  • Interfaces: Utilizes Universal Serial Bus (USB) protocols. Performance depends on the generation (e.g., USB 2.0 is 480 Mbps; USB 3.2 Gen 2 is up to 10 Gbps).

4.6 CD Drives / Optical Drives (Input/Output)

Drives designed to read from and write to optical discs like CDs (Compact Discs), DVDs, and Blu-rays.

  • Reading Mechanism: The drive spins the disc while a laser beam is focused onto the underside of the disc. The surface of a CD contains microscopic bumps (pits) and flat areas (lands). As the laser moves over these pits and lands, the reflection of the light changes. A photodiode detects these changes in reflection and translates them into a digital binary signal (0s and 1s).
  • Types of CDs:
    • CD-ROM (Read-Only Memory): Data is permanently pressed into the disc during manufacturing; cannot be erased or rewritten.
    • CD-R (Recordable): Contains a layer of photosensitive dye. The optical drive's writing laser "burns" data by changing the opacity of the dye, which mimics pits and lands. Can only be written to once.
    • CD-RW (Rewritable): Uses a phase-change metal alloy layer. A high-powered laser melts the alloy to write data, and a medium-powered laser can revert the alloy back to its original crystalline state, allowing the disc to be erased and reused.