
Asynchronous serial communication is a form of
serial communication in which the communicating endpoints' interfaces are not continuously synchronized by a common clock signal. Synchronization (
clock recovery) is done by data-embedded signal: the data stream contains synchronization information in a form of start and stop signals set before and after each payload transmission. The start signal prepares the receiver for arrival of data and the
stop signal
In telecommunications
Telecommunication, often used in its plural form or abbreviated as telecom, is the transmission of information over a distance using electronic means, typically through cables, radio waves, or other communication techn ...
resets its state to enable triggering of a new sequence.
A common kind of start-stop transmission is
ASCII
ASCII ( ), an acronym for American Standard Code for Information Interchange, is a character encoding standard for representing a particular set of 95 (English language focused) printable character, printable and 33 control character, control c ...
over
RS-232
In telecommunications, RS-232 or Recommended Standard 232 is a standard introduced in 1960 for serial communication transmission of data. It formally defines signals connecting between a ''DTE'' (''data terminal equipment'') such as a compu ...
, for example for use in
teletypewriter
A teleprinter (teletypewriter, teletype or TTY) is an electromechanical device that can be used to send and receive typed messages through various communications channels, in both point-to-point and point-to-multipoint configurations.
Init ...
operation.
Origin
Mechanical
teleprinter
A teleprinter (teletypewriter, teletype or TTY) is an electromechanical device that can be used to send and receive typed messages through various communications channels, in both point-to-point (telecommunications), point-to-point and point- ...
s using 5-bit codes (see
Baudot code
The Baudot code () is an early character encoding for telegraphy invented by Émile Baudot in the 1870s. It was the predecessor to the International Telegraph Alphabet No. 2 (ITA2), the most common teleprinter code in use before ASCII. Each ch ...
) typically used a stop period of 1.5 bit times.
[Dead link: 2015-Oct-03] Very early electromechanical teletypewriters (pre-1930) could require 2 stop bits to allow mechanical impression without buffering. Hardware which does not support fractional stop bits can communicate with a device that uses 1.5 bit times if it is configured to send 2 stop bits when transmitting and requiring 1 stop bit when receiving.
The format is derived directly from the design of the
teletypewriter
A teleprinter (teletypewriter, teletype or TTY) is an electromechanical device that can be used to send and receive typed messages through various communications channels, in both point-to-point and point-to-multipoint configurations.
Init ...
, which was designed this way because the electromechanical technology of its day was not precise enough for
synchronous operation: thus the systems needed to be re-synchronized at the start of each character. Having been re-synchronized, the technology of the day was good enough to preserve bit-sync for the remainder of the character. The stop bits gave the system time to recover before the next start bit. Early teleprinter systems used five data bits, typically with some variant of the
Baudot code
The Baudot code () is an early character encoding for telegraphy invented by Émile Baudot in the 1870s. It was the predecessor to the International Telegraph Alphabet No. 2 (ITA2), the most common teleprinter code in use before ASCII. Each ch ...
.
Very early experimental printing telegraph devices used only a start bit and required manual adjustment of the receiver mechanism speed to reliably decode characters. Automatic synchronization was required to keep the transmitting and receiving units "in step". This was finally achieved by Howard Krum, who patented the start-stop method of synchronization (, granted September 19, 1916, then , granted December 3, 1918). Shortly afterward a practical
teleprinter
A teleprinter (teletypewriter, teletype or TTY) is an electromechanical device that can be used to send and receive typed messages through various communications channels, in both point-to-point (telecommunications), point-to-point and point- ...
was patented (, granted July 3, 1917).
Operation
Before signaling will work, the sender and receiver must agree on the signaling parameters:
* Full or half-
duplex operation
* The number of bits per character -- currently almost always
8-bit characters, but historically some transmitters have used a
five-bit character code,
six-bit character code
A six-bit character code is a character encoding designed for use on computers with word lengths a multiple of 6. Six bits can only encode 64 distinct characters, so these codes generally include only the upper-case letters, the numerals, some pun ...
, or a
7-bit ASCII.
*
Endianness
file:Gullivers_travels.jpg, ''Gulliver's Travels'' by Jonathan Swift, the novel from which the term was coined
In computing, endianness is the order in which bytes within a word (data type), word of digital data are transmitted over a data comm ...
: the order in which the bits are sent
* The speed or bits per second of the line (equal to the
Baud rate when each symbol represents one bit). Some systems use automatic speed detection, also called
automatic baud rate detection.
* Whether to use or not use
parity
** Odd or even parity, if used
* The number of stop bits sent must be chosen (the number sent must be at least what the receiver needs)
* Mark and space symbols (current directions in early telegraphy, later voltage polarities in
EIA RS-232
In telecommunications, RS-232 or Recommended Standard 232 is a standard introduced in 1960 for serial communication transmission of data. It formally defines signals connecting between a ''DTE'' (''data terminal equipment'') such as a compu ...
and so on, frequency-shift polarities in
frequency-shift keying
Frequency-shift keying (FSK) is a frequency modulation scheme in which digital information is encoded on a carrier signal by periodically shifting the frequency of the carrier between several discrete frequencies. The technology is used fo ...
and so on)
Asynchronous start-stop signaling was widely used for dial-up
modem
The Democratic Movement (, ; MoDem ) is a centre to centre-right political party in France, whose main ideological trends are liberalism and Christian democracy, and that is characterised by a strong pro-Europeanist stance. MoDem was establis ...
access to
time-sharing
In computing, time-sharing is the Concurrency (computer science), concurrent sharing of a computing resource among many tasks or users by giving each Process (computing), task or User (computing), user a small slice of CPU time, processing time. ...
computers and
BBS systems. These systems used either seven or eight data bits, transmitted
least-significant bit first, in accordance with the
ASCII
ASCII ( ), an acronym for American Standard Code for Information Interchange, is a character encoding standard for representing a particular set of 95 (English language focused) printable character, printable and 33 control character, control c ...
standard.
Between computers, the most common configuration used was "8N1": eight-bit characters, with one start bit, one stop bit, and no parity bit. Thus 10 Baud times are used to send a single character, and so dividing the signaling bit-rate by ten results in the overall transmission speed in characters per second.
Asynchronous start-stop is the lower
data-link layer used to connect computers to modems for many dial-up Internet access applications, using a second (encapsulating) data link
framing protocol such as
PPP to create
packets made up out of asynchronous serial characters. The most common physical layer interface used is RS-232D. The performance loss relative to synchronous access is negligible, as most modern modems will use a private synchronous protocol to send the data between themselves, and the asynchronous links at each end are operated faster than this data link, with
flow control being used to throttle the data rate to prevent overrun.
See also
*
Comparison of synchronous and asynchronous signalling
*
Degree of start-stop distortion
*
Synchronous serial communication
*
Universal asynchronous receiver/transmitter (UART)
References
Further reading
* Nelson, R. A. and Lovitt, K. M
''History of Teletypewriter Development'' (October 1963) Teletype Corporation, retrieved April 14, 2005
* Hobbs, Allan G. (1999
accessed 20 December 2007
* Edward E. Kleinschmidt.
1967, released Nov. 9, 2016 b
Project Gutenberg
External links
* {{Wikibooks-inline, Programming:Serial Data Communications
Synchronization
Data transmission
Digital electronics
Physical layer protocols
Broadcast engineering