BIT101 Introduction to Information Technology

Introduction to Information TechnologyUnit 312 min read

Computer Hardware & Peripherals: Components, Functions & Real-World Devices

Unit 3 of Introduction to Information Technology explores the physical and logical architecture of computers, from core hardware (CPU, memory, storage) to input/output peripherals, explaining their functions, classifications, and real-world applications in Nepal’s tech ecosystem (e.g., NTC routers, Daraz servers, Khalt

TAKEAWAYS:

  • Understand the five key hardware components (CPU, memory, storage, input/output, and system bus) and their roles in processing data.
  • Learn how peripherals (keyboard, printer, scanner) extend a computer’s functionality, with examples from Nepal’s digital economy (e.g., Ncell’s SIM card readers).
  • Compare generations of hardware (e.g., 4G vs. 5G chips) and their impact on speed, miniaturization, and energy use.
  • Solve binary-to-decimal conversions and hexadecimal addition (critical for low-level programming and network protocols like IP addresses).
  • Analyze real-world hardware failures (e.g., overheating CPUs in Kathmandu’s data centers) and preventive measures.
  • Apply bus architecture (data, address, control buses) to explain how components communicate, using a worked example of a Khalti payment transaction.

1. Core Computer Hardware Components

Computers are built from five fundamental hardware units, each with distinct roles. Below is a block diagram of a typical digital computer system, showing how these components interact:

flowchart TD
  A["Power Supply"] -->|"+5V/12V"| B["Motherboard"]
  B --> C["CPU (Central Processing Unit)"]
  B --> D["RAM (Memory)"]
  B --> E["Storage (HDD/SSD)"]
  B --> F["Input Devices (Keyboard, Mouse)"]
  B --> G["Output Devices (Monitor, Printer)"]
  C -->|"Processes data"| H["System Bus"]
  D -->|"Temporary storage"| H
  E -->|"Permanent storage"| H
  F -->|"User input"| H
  G -->|"Displays results"| H
  H["System Bus"] -->|"Data/Address/Control"| I["Connects all components"]

1.1 Central Processing Unit (CPU)

The brain of the computer, the CPU executes instructions from programs. It consists of:

  • Arithmetic Logic Unit (ALU): Performs calculations (addition, multiplication) and logical operations (AND, OR).
  • Control Unit (CU): Fetches instructions, decodes them, and coordinates data flow.
  • Registers: Tiny high-speed memory (e.g., Program Counter, Accumulator) for temporary storage.

Why CPUs Matter in Nepal:

  • NTC’s routers use multi-core CPUs to handle thousands of internet connections simultaneously.
  • Pathao’s ride-hailing app relies on CPUs to process real-time GPS data and match drivers to riders.

Worked Example: A CPU processes the instruction ADD A, B as follows:

  1. Fetches A and B from RAM.
  2. ALU adds them, stores result in Accumulator.
  3. CU writes the result back to RAM.

1.2 Memory Hierarchy

Computers use multiple layers of memory, each balancing speed and cost:

Memory Type Speed Capacity Volatility Example Use in Nepal
Registers Nanoseconds Bytes Non-volatile CPU’s temporary storage for calculations
Cache (L1/L2/L3) Picoseconds KB–MB Non-volatile Intel Xeon servers in NEPSE trading systems
RAM (DRAM) Nanoseconds GB–TB Volatile Running Daraz’s order-processing software
ROM/Flash Microseconds MB–GB Non-volatile BIOS firmware in laptops
HDD/SSD Milliseconds TB–PB Non-volatile Storing Khalti’s transaction databases
00000Cache (L1/L2/L3)1e-9RAM (DRAM)1e-7ROM/Flash0.000001HDD/SSD0.001
Memory hierarchy speed comparison (time in seconds) with real-world Nepali applications.

Key Concept: Volatility

  • Volatile memory (RAM): Loses data when power is off (e.g., closing a browser tab deletes unsaved work).
  • Non-volatile memory (SSD): Retains data without power (e.g., your operating system survives a reboot).

Worked Example: If a Daraz order is processed:

  1. RAM holds the customer’s cart data temporarily.
  2. If the server crashes, the order is lost unless written to SSD first.

1.3 Storage Devices

Store data permanently (even when powered off). Compare HDDs and SSDs:

flowchart TD
    A["HDD (Hard Disk Drive)"] -->|"Mechanical"| B["Platters + Read/Write Head"]
    C["SSD (Solid State Drive)"] -->|"Electronic"| D["Flash Memory Chips"]
    B -->|"Slower but cheaper"| E["1TB–10TB capacity"]
    D -->|"Faster but expensive"| F["500GB–2TB capacity"]
    E -->|"Used in:"| G["NEPSE servers"]
    F -->|"Used in:"| H["Khalti’s payment gateways"]

Advantages/Disadvantages:

Feature HDD SSD
Speed ~100 MB/s ~500 MB/s
Durability Fragile (moving parts) Shock-resistant (no moving parts)
Cost Cheaper per GB More expensive
Power Use Higher (fans, motors) Lower (no moving parts)

Real-World Use in Nepal:

  • Ncell’s data centers use SSDs for low-latency mobile network routing.
  • Banks (NMB, Global IME) still use HDDs for archival transaction logs due to cost.

1.4 Input/Output (I/O) Devices

Input Devices: Send data to the computer. Output Devices: Receive processed data.

Input Device Function Nepal Example
Keyboard Text/keyboard input Khalti’s payment terminal keyboards
Mouse Pointer control Daraz’s inventory management systems
Scanner Digitizes documents NTC’s ID verification scanners
Microphone Voice input Pathao’s customer service chatbots
Output Device
Monitor Visual output NEPSE traders’ screens
Printer Physical document output Government’s tax invoice printers
Speaker Audio output YouTube videos (streamed via NTC)

Worked Example: When you pay via eSewa:

  1. Input: Your phone’s keyboard enters the amount.
  2. Processing: CPU validates the transaction.
  3. Output: eSewa’s app displays a confirmation receipt.

2. System Bus: The Computer’s Nervous System

The system bus is a set of parallel electrical pathways that connect hardware components. It consists of three buses:

Data BusTransports databetween CPU and memoryAddress BusIdentifies memorylocations for data accControl BusCoordinatesoperations via signals
System bus components and their functions in a typical computer architecture.

Functions:

  1. Data Bus: Transfers actual data (e.g., binary 1010) between CPU and memory.
  2. Address Bus: Specifies where data is stored (e.g., memory location 0x4000).
  3. Control Bus: Carries control signals (e.g., "Read," "Write," "Interrupt").

Worked Example: A Khalti payment involves:

  1. Address Bus: CPU requests data from RAM (address 0x5000).
  2. Data Bus: RAM sends the customer’s card details.
  3. Control Bus: CPU sends a "Process" signal to the payment gateway.

3. Peripherals: Extending Computer Functionality

Peripherals are external devices that enhance a computer’s capabilities. Classify them by function:

Real-World Example: NTC’s Network Equipment

  • NIC (Network Interface Card): Converts digital signals to Ethernet cables for internet connectivity.
  • Modem: Converts digital data to analog signals for phone-line internet (still used in rural Nepal).

4. Generations of Computer Hardware

Hardware evolves in five generations, each improving speed, miniaturization, and efficiency. Compare the 4th and 5th generations:

1940s1st Gen: VacuumTubes (ENIAC)1950s2nd Gen:Transistors (IBM 1401)1960s3rd Gen:Integrated Circuits (I1970s4th Gen:Microprocessors (Intel2020s5th Gen:AI/Nanotech (NVIDIA GP
Timeline of computer hardware generations with Nepali relevance (e.g., NEPSE trading systems).
Feature 4th Generation (1970s–1990s) 5th Generation (2010s–Present)
Technology Microprocessors (Intel 8086) Nanotechnology (Intel Core i9)
Speed MHz (e.g., 8 MHz) GHz (e.g., 3.6 GHz)
Size Large (e.g., IBM System/360) Ultra-small (e.g., Raspberry Pi)
Parallel Processing Limited (single-core) Multi-core (e.g., 8+ cores)
Nepal Example Old bank ATMs (486 processors) NEPSE’s high-frequency trading servers

Key Innovation: 5th Generation

  • Quantum Computing: Uses qubits (quantum bits) for exponential speedup (e.g., cracking encryption in seconds).
  • AI Acceleration: GPUs (Graphics Processing Units) like NVIDIA’s Tensor Cores power AI in apps like Pathao’s route optimization.

5. Binary Encoding and Number Systems

Computers use binary (base-2) because:

  1. Electronic switches (transistors) are on (1) or off (0).
  2. Efficient for logic gates (AND, OR, NOT operations).

5.1 Binary Addition (Worked Example)

Add 1011 (11) and 0110 (6) in binary:

  1011 (11)
+ 0110 (6)
-------
 10001 (15)

Verification in Decimal:

  • 1011₂ =
  • 0110₂ =
  • Sum: → 10001₂ = ✅

Why Hexadecimal/Octal?

  • Hexadecimal (base-16): Shorter representation for memory addresses (e.g., 0xA5F instead of 101001011111111).
  • Octal (base-8): Used in Unix permissions (e.g., 755).

6. Real-World Applications in Nepal

In the Real World

  1. Khalti’s Payment Terminals

    • Idea: Binary encoding and CPU processing validate transactions in milliseconds.
    • How: The terminal’s CPU reads your card’s magnetic stripe (binary data), encrypts it, and sends it to Khalti’s servers.
  2. NTC’s 5G Network Rollout

    • Idea: 5th-generation hardware (small cells, MIMO antennas) enables faster speeds.
    • How: NTC’s new 5G base stations use multi-core CPUs to handle 1000+ simultaneous connections.
  3. Daraz’s Warehouse Automation

    • Idea: Sensors and I/O devices (barcode scanners, conveyor belts) track inventory.
    • How: When you order a product, a CPU-controlled robot picks it using RAM-stored inventory data.

Exam Tip

  • Focus on these high-weightage topics:
    1. Block diagram of a digital computer (mandatory for 5–8 marks).
    2. Binary addition (always verify with decimal conversion).
    3. Bus architecture (data vs. address vs. control bus roles).
    4. Peripheral examples (link to Nepal’s tech ecosystem: Khalti, NTC, Daraz).
  • Common Pitfalls:
    • Confusing RAM (volatile) with ROM (non-volatile).
    • Forgetting to label all parts in diagrams (e.g., ALU, CU in CPU).
    • Miscounting binary addition (carry over errors).
  • Question Patterns:
    • Short answer: "List 3 input devices used in Nepal’s banking sector." (Answer: Keyboard, Biometric scanner, MICR reader.)
    • Long answer: "Explain how a CPU processes a loan application request from a bank’s server." (Include fetch-decode-execute cycle.)
    • Calculation: "Convert 0x3A to decimal and binary." (Answer: 58 in decimal, 111010 in binary.)

Final Visual Recap:

From RAM/StorageFetch InstructionALU/CU interpretationDecode InstructionArithmetic/Logic operationsExecute InstructionBack to RAM/RegistersStore ResultCPU Processing Flow
CPU fetch-decode-execute cycle for processing a loan application request.

Based on the TU BIT syllabus for Introduction to Information Technology (BIT101), unit 3.

Discussion

Loading…