Electrical Engineering › Section W · Signal conversion and data transmission › Topic W.5
Parallel buses, USB, and serial buses
Inside a computer and between devices, data moves over buses: shared sets of lines with agreed rules. The story of buses is a shift from wide parallel ribbons to fast serial links, and knowing both explains everything from a PC's graphics slot to the two wires that link a sensor to a microcontroller.
What a bus is
A bus is a set of lines shared by several devices, with rules for their use. Inside a computer, the processor's local bus links it to nearby memory, and the system bus links processor, memory and input/output. A system bus has three groups of lines: the address bus selects a location, the data bus carries the word, and the control bus carries signals such as read, write, clock and interrupt requests. External buses connect the computer to peripherals and instruments. In a parallel bus each bit has its own line; in a serial bus bits travel one after another on a line or differential pair.
Bus characteristics and protocol
Buses are described by their width, the number of data lines; their clock rate or transfer rate; and their bandwidth, the amount of data moved per second,
A protocol defines the rules: the order of address and data, who may drive the lines, and how transfers start and end. In a synchronous bus every transfer is timed by a shared clock. In an asynchronous bus devices use handshaking: the sender asserts a signal such as "data valid", and the receiver replies with an acknowledgement when it has taken the data. When several devices can start transfers, an arbitration scheme decides which becomes bus master.
Worked example: bandwidth of a parallel bus
A 64-bit parallel bus makes one transfer per clock cycle at 100 MHz. 1. Bits per second: \(64 \times 100 \times 10^6 = 6.4 \times 10^9\) b/s, or 6.4 Gb/s. 2. Bytes per second: \(6.4 \times 10^9 \div 8 = 800 \times 10^6\) B/s, or 800 MB/s in decimal units. 3. In binary units: \(800 \times 10^6 \div 2^{20} \approx 763\) MiB/s, so always say which units you mean. 4. A double-data-rate bus, which transfers on both clock edges, would reach 1600 MB/s at the same clock. 5. Check: the classic 32-bit PCI bus at about 33.3 MHz gives \(32 \times 33.3 \times 10^6 \div 8 \approx 133\) MB/s, its well-known figure.
Classic parallel buses
PCI (Peripheral Component Interconnect) was for years the standard expansion bus in PCs: a shared parallel bus, 32 bits wide at about 33 MHz, later 64 bits and 66 MHz, with PCI-X pushing the clock higher for servers. IEEE 488, also called GPIB, is an 8-bit parallel bus that links up to 15 devices, controller included, with handshaking; USB and Ethernet now largely replace it. Parallel SCSI connected disk drives and other devices on a shared bus of 8 or 16 data lines. All three have largely given way to serial links, because wide parallel buses suffer skew, where bits launched together arrive at slightly different times.
PCI Express
PCI Express (PCIe) replaced PCI with point-to-point serial links. Each lane is a pair of differential pairs, one for each direction, so a lane is full-duplex. A slot gathers 1, 4, 8 or 16 lanes, written ×1 to ×16, with graphics cards using ×16. Each generation has roughly doubled the transfer rate per lane: 8 GT/s (gigatransfers per second) for PCIe 3.0, 16 GT/s for 4.0, 32 GT/s for 5.0, 64 GT/s for 6.0, now in servers, and 128 GT/s for 7.0, published in 2025. Generations 3.0 to 5.0 code every 128 data bits as 130 line bits, so the useful rate is slightly below the transfer rate.
Worked example: a PCIe link
Find the usable bandwidth in each direction of a PCIe 3.0 ×4 link, as used by many solid-state drives. 1. Transfer rate per lane: \(8\,\text{GT/s}\), one bit per transfer. 2. Remove the coding overhead: \(8 \times 10^9 \times \frac{128}{130} = 7.88 \times 10^9\) b/s per lane. 3. In bytes: \(7.88 \times 10^9 \div 8 = 0.985\) GB/s per lane. 4. Four lanes: \(4 \times 0.985 = 3.94\) GB/s in each direction at once, before protocol overheads. 5. Check: PCIe 4.0 doubles the rate per lane, so a 4.0 ×4 link gives about 7.88 GB/s.
The Universal Serial Bus
USB connects peripherals to a host in a tiered star through hubs, with up to 127 devices per host controller; the host schedules every transfer. USB 2.0 runs at up to 480 Mb/s on a single differential pair, D+ and D−, plus the 5 V VBUS supply and ground. Later versions add more pairs: USB 3.2 offers 5, 10 or 20 Gb/s, USB4 40 Gb/s, and USB4 version 2.0 80 Gb/s. Connectors include Type-A, Type-B and Micro-B, but the reversible Type-C connector now dominates. USB Power Delivery negotiates higher voltages, up to 100 W at 20 V and 5 A, and newer extended-range cables up to 240 W at 48 V.
SPI and I²C
Two simple serial buses link chips on one board. SPI (Serial Peripheral Interface) uses a clock, a data line in each direction and an active-low chip-select line for each peripheral, \(\overline{SS}\) or \(\overline{CS}\); one controller selects one device at a time and data flows both ways at once, often at tens of MHz. I²C (inter-integrated circuit) needs only two lines, serial data SDA and serial clock SCL, shared by every device. The lines are open-drain with pull-up resistors, so any device can pull a line low but none drives it high. Each target has an address, usually 7 bits. Standard speeds are 100 kHz and 400 kHz, with faster modes of 1 MHz and above.
RS-232, RS-485, CAN and others
RS-232, the classic serial port, is single-ended: a logic 1 is a negative voltage and a 0 a positive one, typically between 3 and 15 V in size, and it links two devices over about 15 m. RS-423 is also single-ended. RS-422 uses differential pairs to send from one driver to several receivers over about 1200 m at lower rates, and RS-485 adds multiple drivers, so many devices share one pair, which makes it common in industrial control. CAN (controller area network) is a differential multi-master bus for vehicles and machinery: each message carries an identifier that sets its priority during arbitration. FireWire (IEEE 1394) is obsolete; serial attached SCSI (SAS) replaced parallel SCSI.
Bus interfacing
Many devices share one set of lines, so at any instant only one may drive them. Tri-state outputs make this possible: besides high and low, a tri-state output has a high-impedance state in which it is effectively disconnected. Enable signals, often from address decoders, turn on exactly one driver; two drivers fighting over a line, called bus contention, corrupts data and can damage chips. Open-drain outputs, as in I²C, avoid contention by only pulling low. A multiplexed bus saves pins by carrying address and data on the same lines at different times: the address goes out first and is latched, often by an address-latch-enable signal, and then the lines carry data.
Common mistakes to avoid
First, forgetting to divide by 8 when converting bits to bytes. Second, ignoring coding overhead: 8 GT/s per PCIe 3.0 lane yields about 0.985 GB/s, not 1 GB/s. Third, mixing MB and MiB in one calculation. Fourth, letting two tri-state drivers be enabled at once on a shared line. Fifth, assuming RS-232 logic 1 is a positive voltage: it is negative. Sixth, calling PCIe a shared parallel bus: it uses point-to-point serial lanes.
Key takeaways
A bus is a shared set of lines with a protocol; system buses carry address, data and control signals. Bandwidth = width × transfers per second. Asynchronous buses use handshaking. Wide parallel buses gave way to serial links because of skew. PCIe uses full-duplex lanes, ×1 to ×16, roughly doubling per generation. USB is host-controlled: 480 Mb/s for USB 2.0, up to 80 Gb/s for USB4 v2, with Type-C and Power Delivery. SPI and I²C link chips; RS-485 and CAN link machines. Tri-state and open-drain outputs prevent bus contention.
Flashcards
Flashcard
Address bus, data bus and control bus
Test your understanding
Question 1 of 5
A 32-bit bus makes one transfer per clock at 200 MHz. What is its bandwidth?
Question 2 of 5
About how much usable bandwidth does a PCIe 3.0 ×8 link offer in each direction, before protocol overheads?
Question 3 of 5
Which bus links many chips using just two shared open-drain lines with pull-up resistors?
Question 4 of 5
Why do devices on a shared data bus use tri-state outputs?
Question 5 of 5
A factory needs 20 devices on one pair of wires over several hundred metres. Which standard fits best?
