Preview Part B: Hardware · Chapter 10 · 14 min read · 55 practice questions
After this chapter you will be able to
explain what a port is and the difference between serial and parallel ports
identify common external ports by shape, colour and use
recall USB versions and connector types
name internal interfaces such as SATA, PCIe and M.2
explain plug-and-play and hot-swapping
Chapter 10 at a glance A port is the socket; the interface is the standard that talks through it. Learn the shape and colour of each port.
10.1 Ports and Interfaces
Serial vs parallel: one lane or manySerial sends one bit at a time on one line. Parallel sends several bits together on many wires, but they interfere at high speed. That is why fast ports are serial.
A port is a socket on the computer where a device or cable is plugged in.
An interface is the standard (hardware + rules) that lets two parts communicate.
A connector is the plug at the end of a cable (male = pins; female = holes).
Feature
Serial port
Parallel port
Data sent
One bit at a time over one line
Several bits (usually 8) at once over many lines
Distance
Longer cables possible
Short cables (signals interfere)
Old standard
RS-232 / COM port, 9-pin (DB-9)
LPT / Centronics printer port, 25-pin (DB-25)
Old uses
Mouse, modem
Printers
Today
USB, SATA, PCIe, HDMI are all serial
Obsolete
⚡ QUICK FACT — Parallel sounds faster, but at high speeds the wires interfere (crosstalk, timing skew). That is why modern high-speed links — USB, SATA, PCIe — are all serial.
A serial port is also called a COM port. It moves data one bit at a time and can send and receive.
Serial connectors come in two sizes: DB-9 (9 pins, the common one) and DB-25 (25 pins).
Old serial devices included dial-up modems, GPS receivers and small LED/LCD text displays.
The parallel port is also called the printer port or LPT (Line Printer) port. Its standard connector has 25 pins.
Asynchronous serial transfer frames each byte with a start bit (low), 5 to 8 data bits, an optional parity bit, and 1 or 2 stop bits (high). The sender and receiver must agree on this frame.
A socket is a software endpoint for two-way communication between two programs on a network. It is identified by an IP address and a port number; it is not a physical port.
10.2 External Ports
Back-panel connectors Each connector has its own shape and colour. Blue USB ports are USB 3.x; the PS/2 colours are purple for keyboard and green for mouse.Common plugs and sockets Same scale, front view of the plug. Shape and pin count tell the connectors apart: USB-C is reversible, PS/2 is round with 6 pins, RJ-11 is narrower than RJ-45.Audio jack colours Audio jacks: green = line-out (sound goes out to speakers), pink = microphone (sound is picked up), blue = line-in (sound is brought in).FigureRear Panel of a Desktop PC
PS/2 portspurple = keyboard, green = mouse
USB-Ablack = USB 2.0, blue = USB 3.x
USB-Creversible connector
HDMI · DisplayPortdigital video + audio
VGAblue 15-pin, analog video
DVIwhite, digital video
RJ-45Ethernet network port
Audio jacksgreen = line-out, pink = mic, blue = line-in
Serial DB-9older boards
Power socketon the SMPS
USB — Universal Serial Bus
Common port for almost every peripheral: keyboard, mouse, pen drive, printer, phone, camera.
Developed in 1996 by a group of companies; Ajay Bhatt (Intel) is known as the father of USB.
Supports plug-and-play and hot-swapping; supplies power to devices.
One USB host controller can support up to 127 devices (using hubs).
A USB hub splits one USB port into several ports; this is how more devices can share one port.
Connector shape does not show speed. A USB 3.x plug works in a USB 2.0 port, but it then runs at USB 2.0 speed.
USB is platform independent: the same device works across different operating systems and hardware platforms.
USB port colours are only an informal convention: white or black for USB 1.x and 2.0, blue for USB 3.0, and teal for USB 3.1 (Gen 2).
Version
Year
Speed
USB 1.0 / 1.1
1996 / 1998
1.5 Mbps (Low) / 12 Mbps (Full)
USB 2.0
2000
480 Mbps (High Speed)
USB 3.0 (now “USB 3.2 Gen 1”)
2008
5 Gbps (SuperSpeed)
USB 3.1 (Gen 2)
2013
10 Gbps
USB 3.2 (Gen 2×2)
2017
20 Gbps
USB4
2019
40 Gbps (USB4 v2: 80 Gbps)
Connector
Look
Used for
Type-A
Flat rectangle
Computer end of most cables, pen drives
Type-B
Square with bevelled top
Printers, scanners
Mini-USB
Small trapezoid
Old cameras, MP3 players
Micro-USB
Thin trapezoid
Older Android phones
Type-C
Small oval, reversible
Modern phones, laptops, charging, video (2014 onward; common charger standard in India and the EU)
★ EXAM POINT — USB is a serial interface. USB Type-C is reversible. USB 2.0 = 480 Mbps; USB 3.0 = 5 Gbps. Blue USB ports usually mean USB 3.x.
Display Ports
Port
Signal
Pins / look
Note
VGA (Video Graphics Array)
Analog video only
15-pin, D-shaped, usually blue
Old monitors, projectors
DVI (Digital Visual Interface)
Digital (some analog) video
White, 24+5 pins
Transition from VGA
HDMI (High-Definition Multimedia Interface)
Digital video + audio in one cable
19-pin, flat
TVs, monitors, set-top boxes (2002/03)
DisplayPort
Digital video + audio
One corner cut
PC monitors, high refresh rates
Thunderbolt
Data + video + power (Intel with Apple, 2011)
Uses USB-C shape from version 3
High-speed docks, displays
VGA was introduced by IBM in 1987. It carries analog video only.
HDMI Type-A plug has 19 pins. It is the common standard for TVs and monitors.
DVI can carry both digital and analog video on one cable, but it does not carry audio.
Legacy and Other Ports
Port
Details
PS/2 (Personal System/2)
IBM, 1987; 6-pin mini-DIN; purple = keyboard, green = mouse
Serial (COM / RS-232)
9-pin DB-9 (male on PC); modems, old mice, lab equipment
Parallel (LPT)
25-pin DB-25 (female on PC); old printers
FireWire (IEEE 1394)
Apple; also called i.LINK (Sony’s name); fast serial port with isochronous (guaranteed, real-time) transfer for cameras and audio/video devices; can move large files directly between two devices — obsolete
Game port
15-pin; old joysticks and game controllers
Modem port
Connects a PC’s modem to the telephone line
Infrared (IR) port
Sends and receives data by infrared light; usually on the side or back of a laptop
eSATA
External SATA drives
SCSI (Small Computer System Interface)
Servers, older scanners and drives; early Apple Macintosh computers used it for disks and peripherals
GPIB (General-Purpose Interface Bus, also called IEEE-488)
Parallel bus that connects test and measurement instruments to a computer
Network and Audio Ports
Port
Use
RJ-45 (Registered Jack-45)
Ethernet LAN cable; 8 pins
RJ-11
Telephone line / DSL modem; smaller, 4–6 pins
3.5 mm audio jacks
Green = line-out (speakers/headphones), pink = microphone, blue = line-in
S/PDIF (optical/coaxial)
Digital audio to home theatre
Coaxial (F-type)
Cable TV, cable internet
MIDI (Musical Instrument Digital Interface)
Connects musical instruments and keyboards to a sound card; carries notes and timing, not recorded sound
★ EXAM POINT — RJ-45 → LAN/Ethernet; RJ-11 → telephone. VGA → analog; HDMI → digital audio + video. PS/2: purple keyboard, green mouse.
What the full chapter covers
The full chapter has these sections:
10.1 Ports and Interfaces
10.2 External Ports
10.3 Internal Interfaces and Expansion Slots
10.4 Wireless Interfaces
10.5 Plug-and-Play and Hot-Swapping
10.6 I/O Addresses of Legacy Ports
10.7 More Exam Facts
Chapter Quick Revision
Most Important Terms
Common Confusions
Rapid Recall
Sample questions from this chapter
1. Maximum devices per USB host controller?
256
127
25
65,536
Show answer
Answer: B. 127
One USB host controller can support up to 127 devices, using hubs.
2. Parallel port was mainly used for?
Speakers
Modems
Mice
Printers
Show answer
Answer: D. Printers
The parallel (LPT) port was mainly used to connect printers.
3. Fast serial port used by cameras and audio devices?
FireWire
eSATA
Infrared port
Game port
Show answer
Answer: A. FireWire
FireWire (IEEE 1394) is a fast serial port used by cameras and audio-video devices.
4. Which port carries both audio and video digitally?
DVI
HDMI
VGA
S/PDIF
Show answer
Answer: B. HDMI
HDMI carries digital video and audio in one cable; it is used by TVs and monitors.
5. Register of an I/O port that holds device status bits?
Status register
Control register
Data-in register
Data-out register
Show answer
Answer: A. Status register
The status register holds bits that show the device state, such as ready or busy.