Unit 3 · Session 7
I/O Ports and System
IT 231: IT and Application (BBM)
Learning Objectives 🎯
By the end of this chapter, you will be able to:
- ✅ Define an I/O port and its function.
- ✅ Identify common I/O ports like USB and HDMI.
- ✅ Define the system bus and its role in the computer.
Connecting Peripherals: What is an I/O Port?
An I/O (Input/Output) port is a physical connector on a computer that allows you to connect external peripheral devices.
Think of them as the doors and windows of your computer, letting information in and out.
Common I/O Ports 🔌
USB (Universal Serial Bus)
- The most common and versatile port.
- Connects keyboards, mice, printers, external drives, and more.
- Provides both data transfer and power.
HDMI (High-Definition Multimedia Interface)
- Transmits high-definition video and audio.
- Connects your computer to monitors, TVs, and projectors.
- A single cable for both picture and sound.
🎬 Watch: One Port, Three Jobs
🚀 Same Plug, Different Speeds
- USB 2.0: 480 Mbps
- USB 3.2 Gen 1 (formerly USB 3.0): 5 Gbps
- USB 3.2 Gen 2: 10 Gbps
- USB4: up to 40 Gbps (80 Gbps with USB4 Version 2.0)
The plug shape doesn't tell you the speed. A cheap USB-C cable may only carry USB 2.0 speeds.
🧮 Worked Example: Copying a 10 GB Folder
Port speeds are in bits, but file sizes are in bytes. 1 byte = 8 bits, so 10 GB = 80,000 megabits.
- USB 2.0: 80,000 ÷ 480 ≈ 167 s, almost 3 minutes
- USB 3.2 Gen 1: 80,000 ÷ 5,000 = 16 seconds
- USB 3.2 Gen 2: 80,000 ÷ 10,000 = 8 seconds
These are best cases. Real transfers are slower, and the slower of the drive and the port sets the limit.
Why USB Won 🏆
Before 1996, a PC needed a different port for almost everything: serial for modems, parallel for printers, PS/2 for keyboard and mouse, a game port for joysticks.
- One standard: USB 1.0 (January 1996) came from an industry group including Intel, Microsoft, Compaq and IBM.
- Plug and play, hot-pluggable: connect while the PC is on; the OS finds the driver.
- Power on the same cable: charges phones and runs mice, keyboards and small drives.
- Backward compatible and expandable: old devices still work, and hubs allow up to 127 devices per controller.
- USB-C (2014): one small, reversible plug for data, charging and video.
🇪🇺 Case Study: One Charger for Everything
- The European Union requires USB-C charging on new phones, tablets, cameras and headphones sold from 28 December 2024, and on laptops from 28 April 2026.
- Apple moved the iPhone from its own Lightning port to USB-C with the iPhone 15 in 2023.
- The aim: less e-waste and fewer chargers in every drawer.
Discuss: Who wins and who loses when a government standardises a port: users, manufacturers, or accessory sellers?
More Common I/O Ports 🎧🌐
Audio Jacks (3.5mm)
- Used for connecting headphones, speakers, and microphones.
- Often color-coded:
- Green: Audio Out (speakers/headphones)
- Pink: Mic In
Ethernet Port (RJ-45)
- For a wired network connection.
- Provides a faster and more stable connection than Wi-Fi.
- Essential for gaming and large file transfers.
🎬 Watch: Wi-Fi vs Ethernet, Tested
Video Ports: VGA, HDMI and DisplayPort 🖥️
| Port | Signal | Carries | Where you'll see it |
| VGA (1987) | Analog | Video only | Old projectors and monitors in many classrooms |
| HDMI (2002) | Digital | Video + audio | TVs, monitors, projectors, set-top boxes |
| DisplayPort (2006) | Digital | Video + audio, several screens from one port | PC monitors, graphics cards; also runs over USB-C |
Got a new laptop and an old VGA projector? You need an HDMI-to-VGA or USB-C-to-VGA adapter, which converts digital to analog.
🗣️ Discussion: Should Laptops Keep the Old Ports?
In 2016 Apple's MacBook Pro dropped HDMI, the SD card slot, USB-A and the MagSafe charger, keeping only USB-C (Thunderbolt 3) ports and a headphone jack. In 2021 the new MacBook Pro brought back HDMI, the SD card slot and the MagSafe charger.
Discuss: why would a company remove ports, and why add them back?
- Remove: thinner, lighter laptops; one universal port; sell more adapters and docks.
- Add back: users hated carrying "dongles", especially photographers (SD cards) and teachers plugging into HDMI projectors.
- Your turn: a teacher in a Nepali college with old VGA projectors: which laptop ports matter most to them?
Ports Without Plugs: Wireless I/O 📶
| Technology | Typical range | Used for |
| NFC | A few centimetres | Tap-to-pay cards and phones, transit cards |
| Bluetooth | About 10 metres | Earbuds, wireless keyboards and mice, smartwatches |
| Wi-Fi | Tens of metres indoors | Internet, wireless printers, screen casting |
Wireless saves cables, but it adds battery charging, pairing and interference, and it is usually slower and less stable than a wired port.
Serial vs Parallel: One Lane or Many?
➡️ Serial
- Sends bits one after another down a single line
- Thin cables, fewer pins
- Examples: USB, SATA, PCIe, Ethernet
⏸️ Parallel
- Sends several bits side by side on many wires at once
- Thick cables, big connectors
- Examples: the old 25-pin printer (LPT) port, IDE ribbon cables, the internal data bus
Why serial won: at high speeds, bits on parallel wires arrive at slightly different times and interfere with each other. One very fast lane beats eight slow ones.
🔍 Activity: Port Spotting in Nepal
Look around you!
Examine your laptop, a desktop in the lab, or even a smart TV. How many of these ports can you find?
- USB (Type-A, Type-C?)
- HDMI
- Ethernet
- Audio Jack
Context: In many offices and homes in Nepal, the Ethernet port is valued for a stable internet connection, because a cable avoids the interference and crowding that make Wi-Fi drop. (Nepal ended scheduled "load shedding" in 2018.)
🔌 Activity: Which Cable Do I Need?
Name the port or cable for each job, then reveal.
- Laptop to a TV or modern projector. Answer: HDMI
- Charging a recent Android phone or an iPhone 15. Answer: USB-C
- Wired internet for a lab PC. Answer: Ethernet (RJ-45)
- Wired headphones on a laptop. Answer: 3.5 mm audio jack (or a USB-C adapter)
- One cable for charging, data and a 4K monitor. Answer: USB-C, if the port and cable support video
⚠️ Port Safety: Think Before You Plug In
- Unknown USB sticks: in a 2016 University of Illinois study, researchers dropped 297 USB drives around campus. Files were opened on at least 45% of them.
- Public charging ports: in April 2023 the FBI's Denver office warned travellers to avoid free public USB charging stations, because a USB port carries data as well as power ("juice jacking").
- Safer habits: carry your own charger or power bank, use a charge-only cable, and never plug in a USB stick you found.
A port is a door into the computer: it lets in data, and it can let in malware.
From Ports to the Core ⚡
So, these ports let us connect devices to the computer.
But how do the ports, the CPU, and the RAM all talk to each other inside the machine?
Answer: The System Bus
The System Bus: The Computer's Highway 🛣️
The system bus is the communication pathway that connects all the major components of a computer, including the CPU, RAM, and I/O ports.
It is the data superhighway built into the motherboard, allowing data to travel between all the different parts of the computer.
Anatomy of the System Bus
The system bus is actually made of three separate buses working together:
1. Data Bus
Carries the actual data being transferred.
2. Address Bus
Carries the information about where the data is supposed to go (the memory address).
3. Control Bus
Carries control signals from the CPU to coordinate all activities.
Three buses, one highway
🎬 Watch: One Memory Read, Three Buses
System Bus Analogy: A Postal Service 📮
Data Bus is the...
Package
(The actual information)
Address Bus is the...
Delivery Address
(Where the package is going)
Control Bus is the...
Postman's Instructions
('Deliver', 'Sign Here', etc.)
🧮 How Wide Is the Highway? Bus Width
- Data bus width is like the number of lanes. A 64-bit data bus carries 8 bytes in each transfer.
- Address bus width sets how many addresses exist. Each extra wire doubles the count.
Try it: a 16-bit address bus gives 216 = ? addresses. 65,536, or 64 KB of memory.
A 32-bit address bus gives 232 ≈ 4.3 billion addresses, which is why 32-bit Windows couldn't use more than about 4 GB of RAM.
🧮 Worked Example: How Much Can the Memory Bus Carry?
A DDR4-3200 RAM module has a 64-bit data bus and makes 3,200 million transfers per second.
Step 1: 64 bits = 8 bytes per transfer
Step 2: 8 bytes × 3,200 million = 25,600 MB/s ≈ 25.6 GB/s
Step 3: with two modules in dual channel: 2 × 25.6 = 51.2 GB/s
Wider bus × faster transfers = more data per second. That is why two RAM sticks can beat one stick of the same total size.
🔎 Trace It: From a Key Press to the CPU
You press A on a USB keyboard. Put the steps in order, then reveal.
- The keyboard sends a code for "A" down the USB port (serial).
- The USB controller signals the CPU with an interrupt on the control bus: "new input!"
- The CPU puts the controller's address on the address bus.
- The key code travels to the CPU on the data bus.
- The CPU processes it, and the letter is sent out through the HDMI/display port to appear on the screen.
Ports connect the outside world; the three buses carry everything inside.
Discussion: The Bottleneck Effect
Using the highway analogy, what would happen if the system bus was too slow for the CPU?
It creates a bottleneck.
A fast CPU with a slow bus is like a Ferrari stuck in Kathmandu's traffic. The overall system performance is limited by its slowest component.
A fast car is only as fast as the slowest lane
🧮 Worked Example: Find the Bottleneck
Copying files from a laptop's NVMe SSD (about 3,500 MB/s) to an external SSD (about 1,000 MB/s) through a USB 3.2 Gen 1 port (5 Gbps).
Step 1: convert the port to bytes: 5,000 Mbps ÷ 8 = 625 MB/s
Step 2: the slowest link wins: min(3,500, 1,000, 625) = 625 MB/s, so the port is the bottleneck
Step 3: move to a USB 3.2 Gen 2 port (10 Gbps = 1,250 MB/s): now the external SSD (1,000 MB/s) is the limit
Upgrading anything except the slowest link changes nothing. Fix the bottleneck first. (Best-case figures; real copies are slower.)
Summary & Key Takeaways 📊
- I/O ports are the physical sockets that allow us to connect external devices to a computer.
- USB is the most common and versatile I/O port, handling both data and power for many devices.
- The System Bus is the internal highway on the motherboard connecting the CPU, RAM, and I/O ports.
- The bus is composed of a Data Bus, an Address Bus, and a Control Bus.
Exam Practice: Short Answer
- What is an I/O port? Name four common ports and their uses.
- Differentiate between serial and parallel ports.
- What is bus width?
Exam Practice: Long Answer
- Explain the system bus and its three components.
- Describe common I/O ports found on modern computers and explain why USB has become the most popular.
Revise the chapter note before writing these answers.
Image & Video Credits (1/2)
Images
- Rear I/O panel of a desktop PC (labelled): Hitachi-Train ("ASUS P5Q-EM back panel"), public domain, via Wikimedia Commons; labels added for IT231 (BBA)
- Common connectors montage (USB-A, Micro-B, USB-C, HDMI): built for IT231 (BBA) from public-domain, CC BY-SA 4.0 and CC BY-SA 2.0 photos by Calbookaddict, Tobiasfalk42, Santeri Viinamäki and TAKA@P.P.R.S, via Wikimedia Commons
- Computer system bus diagram: W Nowicki, CC BY-SA 3.0, via Wikimedia Commons
- Traffic jam, Federal Highway, Malaysia: Countryball mys123, CC BY 4.0, via Wikimedia Commons
Image & Video Credits (2/2)
Videos (YouTube)
- Marques Brownlee, "USB Type-C: Explained!" (1:48–2:44), https://www.youtube.com/watch?v=ZrZISyPucMg
- Peezs, "Wireless (Wi-Fi) vs Wired (Ethernet) Connection - Speed/Latency Tests & Gaming Comparison" (2:19–3:35), https://www.youtube.com/watch?v=ZMk-1sBj4CA
- TeachingCS, "Computer Architecture - System Bus (address, data & control)" (2:33–3:46), https://www.youtube.com/watch?v=alYwqzO6ZEQ
Sources
- End of load shedding: The Kathmandu Post, "Entire country is now free of loadshedding" (14 May 2018), https://kathmandupost.com/money/2018/05/14/entire-country-is-now-free-of-loadshedding
Teaching content © Arjan KC. Third-party media remain the property of their owners.
📖 Read first (chapter notes)