View Index by Level
RANDOM PAGE

SITE SEARCH

LOG
IN

SIGN UP

HELP

Serial Communications


This is the AQA version closing after June 2019. Visit the the version for Eduqas instead.

To gain access to revision questions, please sign up and log in.

A2

 a

Signalling

 b

Serial Communications

The data is sent along a single wire with an earth wire (sometimes the actual earth). Pulses are sent down the line one after another. This link only works in one direction at a time. This is called Half Duplex. For Full Duplex, two wires are needed, one for each direction plus the earth wire.

This dates back to the telegraph. Morse code messages were sent between towns and cities. Then mechanical machines sent and received text using binary codes to represent the characters. Later computers used the same signalling methods. Most recently USB, FireWire and SATA connections have become common.

 c

Simplex and Broadcasting

One way communication including megaphones and broadcast radio and TV. The programmes are transmitted but no one can reply. Internet multicasts are one way simplex links. One simplex transmission uses one frequency or channel. Simplex transmissions can be to single or multiple recipients.

 d

Half Duplex

Two way traffic but not at the same time. Walkie talkies can transmit or receive but never at the same time. Contraflow roadworks are also like half duplex. Traffic flows both ways but never at the same time. Half Duplex transmissions use one frequency or channel for either transmitting or receiving.

 e

Full Duplex

Simultaneous two way communication. Mobile phones and many types of computer data links such as newer fully switched Ethernet networks. This is achieved by using separate frequencies or media for transmission and reception. Alternatively it can be achieved using time division multiplexing on a single channel, switching at high speed between transmit and receive.

Simplex-half-full.gif

 f

Parallel Links

To speed up the link, it's possible to run several (often eight) wires in parallel each carrying data. Computer printer ports worked like this and the fastest bus connections inside computers are usually parallel.

The latest 64 bit computers have 64 bus wires for data and addressing. The advantage is moving larger numbers of bits in one step. This improves the performance of the computer. The computer buses include IDE, SCSI and SATA for connecting disk drives and AT, ISA, EISA, PCI and PCI Express buses for interconnecting the processor, memory and graphics systems.

Bus technology and speed is still advancing rapidly.

 g

Serial Communication

A single data carrying wire is used. To transmit lots of bits, they have to be sent one at a time. This technology was invented back in the days of mechanical Teletype machines so start and stop bits were needed.

 h

Start and Stop Bits

Because the original serial communication systems were mechanical, time had to be allowed for the machinery to start up and shut down. This problem was solved by sending one or more start bits to allow the machine to start up. Then the data was sent. Finally one or more stop bits would be sent to allow the machine to shut down again. Modern digital systems don't need this start and stop time so although start and stop bits are still part of the serial communications standard, the channel is configured with zero start and stop bits. The start bit also allows the receiver to synchronise itself with the sender.

 i

The Parity Bit - Error Detection

A method was needed to detect transmission errors. To achieve this, an extra bit was transmitted called the parity bit. When using even parity, this bit was set to ensure that an even number of ones was transmitted for each text character sent. If the receiver picked up an odd number of ones, an error had been detected. Sometimes odd parity was used. This is the identical concept but the receiver would expect error free data to contain an odd number of ones.

Modern packet switched networks employ improved versions of parity error detection using mathematical techniques like header checksums.

 j

Example

One start bit, Seven data bits, Even parity, One stop bit

In binary, the seven bit ASCII code for "R" is 1010010. For even parity, the parity bit must be one because the data contains three ones (an odd number). One start bit is needed and also one stop bit. When the line is idle, a one is transmitted.

Serial-Start-Stop-R.gif

 k

Baud Rate and Bit Rate

The simple explanation

Both are measured in bits per second. Baud rate is named after Émile Baudot.

In the example above, seven useful data bits have been transmitted but ten bits need to be sent to achieve this.

 l

BIT-RATE

This is the number of data bits transmitted per second (seven in this example).

 m

BAUD-RATE

This is the total number of bits including start, stop and parity sent per second (ten in this example). Normal serial lines have a lower bit rate than baud rate.

If the line is configured with zero start bits, zero stop bits and no parity, the bit and baud rated are equal because no extra control bits are being sent.

Using QAM8, three bits are transferred per baud or symbol. Wikipedia has more information on this complex topic.

 n

Synchronous

All devices use the same clock signal.

The internal workings of computers, PICs and Microcontrollers are controlled and synchronised with a single clock signal. Data links between these devices also use this clock signal. This is known as Synchronous Communication. Some data links across long distances also use clock signals and both ends of the link are synchronised to the same clock.

 o

Asynchronous

Each device uses its own clock signal.

Other methods are needed to handle transferred data. For example you can't control when keys on a keyboard are pressed or when data packets will arrive from the internet. Serial communications described here are asynchronous and start and stop bits are needed. The start bit allows the receiving device preparation time ready for the incoming data. The bursts of data are short otherwise the receiver's clock might go out of step with the sender's clock.

 p

Selecting Serial or Parallel

For interconnecting portable devices, serial links are nearly always preferred for their lower cost and simplicity. Also speeds have improved so much that there are few disadvantages, even for high speed applications like disk access.

Parallel links are still preferred within the computer for shifting huge amounts of data as quickly as possible.

 

 

 

reviseOmatic V3     Contacts, ©, Cookies, Data Protection and Disclaimers Hosted at linode.com, London