AQA 7517, section 4.9.1.1
Data sent between devices travels as bits. There are different ways of sending those bits, and you need to know the two main choices: serial or parallel, and synchronous or asynchronous.
Serial and parallel transmission
Serial transmission
In serial transmission, bits are sent one after another, down a single wire (or channel).
Parallel transmission
In parallel transmission, several bits are sent at the same time, each down its own wire. An 8-bit parallel link has 8 wires, so a whole byte goes in one go.
At first it seems that parallel must be 8 times faster. In practice, serial is usually the better choice.
Advantages of serial over parallel
- Skew. In parallel transmission, the bits travel on different wires, and some arrive slightly later than others. Over longer distances or at high speeds, the bits get out of step, so the receiver can't tell which bits belong together. Serial has only one wire, so there's no skew.
- Crosstalk. Signals on closely packed wires interfere with one another. Parallel cables have many wires, so there's more interference. Serial has less.
- Faster clock rates. Because serial doesn't suffer from skew, it can be run at much higher speeds, which often makes it faster in total than parallel.
- Cheaper and thinner cables and connectors. Fewer wires are needed, and it is easier to make, plug in and fit into small devices.
- Longer distances. Serial works reliably over longer cables.
That's why modern connections such as USB, SATA, Ethernet and HDMI are serial, whereas old printer ports (parallel) have gone.
| Serial | Parallel | |
|---|---|---|
| Bits sent at once | 1 | Several (such as 8) |
| Wires | 1 (per direction) | Many |
| Skew and crosstalk | Little | A problem |
| Maximum speed | High | Limited by skew |
| Cost of cable | Low | Higher |
| Distance | Long | Short |
| Examples | USB, Ethernet, SATA | Old printer port, internal buses |
Synchronous and asynchronous transmission
These describe how the sender and receiver stay in step, so that the receiver knows when each bit begins.
Synchronous transmission
In synchronous transmission, the sender and receiver share a common clock signal (sent on a separate line, or built into the data). Bits are sent in a continuous, steady stream or large blocks, at a rate set by the clock, so the receiver knows exactly when to read each bit.
- No gaps or extra bits between characters.
- Fast and efficient for large amounts of data.
- Needs synchronising at the start of each block, and more complex hardware.
Asynchronous transmission
In asynchronous transmission, there is no shared clock. The data is sent in small groups (often one character or byte at a time), at any time, and each group is wrapped with a start bit and a stop bit so the receiver can tell where it begins and ends.
- Simple and cheap.
- Suited to data that is sent irregularly, such as keystrokes.
- Less efficient, because the extra start and stop bits are overhead with each group.
Comparison
| Synchronous | Asynchronous | |
|---|---|---|
| Clock | Shared clock | None |
| Data sent as | Continuous stream or large blocks | Small groups (such as one byte) |
| Start and stop bits | No | Yes, for every group |
| Efficiency | High (low overhead) | Lower (overhead for each group) |
| Complexity | Greater | Simple |
| Suitable for | Large, continuous transfers | Irregular, small amounts of data |
| Example | High-speed data links | Keyboard to computer, serial ports |
Start and stop bits
In asynchronous transmission, the line is idle (held at 1) when nothing is being sent. The receiver must know when a group of bits starts, and when it ends.
- The start bit (a 0) is sent first. The change from idle to 0 wakes up the receiver and starts its clock, so the receiver's clock is synchronised with the sender's for this group.
- The stop bit (a 1) is sent last. It returns the line to the idle state, so that the next start bit can be recognised, and it gives the receiver time to process the bits it has just received.
The start and stop bits must have opposite values. Real serial links use an idle line of 1, a start bit of 0 and a stop bit of 1, as shown here, but some textbooks show it the other way round. AQA accepts either, as long as the start and stop bits are different.
Here the byte 01000001 (the letter A) is framed as 10 bits: 1 start bit, 8 data bits and 1 stop bit.
Efficiency: only 8 of the 10 bits carry data, which is . The other 20% is overhead.
Worked example
Task: a keyboard sends each key code as one byte using asynchronous serial transmission with one start bit and one stop bit. How many bits are sent for a 20-character message? What percentage of them are overhead?
- Bits per character: .
- For 20 characters: bits.
- Overhead: 2 bits per character, so .
A synchronous link sending the same 160 bits of data in one block would have only a small header, and so far less overhead, but it needs a shared clock.
Exam tip: for serial versus parallel, skew and crosstalk are the key reasons that serial is better. For asynchronous, say the start bit synchronises the receiver's clock with the sender's, and the stop bit lets the next start bit be recognised and gives the receiver time to process the data. Saying only that the stop bit "shows the end of the data" is not enough.
Check yourself
What is the difference between serial and parallel transmission?
Serial sends bits one after another along a single wire. Parallel sends several bits at the same time along separate wires.
Give two advantages of serial over parallel transmission
Any two of: no skew; less crosstalk; can run at higher clock speeds; cheaper and thinner cables; works over longer distances.
What is the purpose of start and stop bits?
The start bit wakes up the receiver and synchronises its clock with the sender's. The stop bit returns the line to idle so the next start bit can be recognised, and gives the receiver time to process the data.
Why is synchronous transmission more efficient than asynchronous?
It sends data in continuous blocks without start and stop bits for every character, so there is less overhead.