SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 22 | Next

Jan Axelson

"Serial Port Complete: COM Ports, USB Virtual COM Ports, and Ports for Embedded Systems"


11
2


This chapter introduces formats and protocols used in asynchronous serial
communications including low-level data formats, encoding methods for
binary and text data, and protocols to ensure reliable data transfer.



A serial port output that functions as a transmitter, or driver, sends bits one at a
time to a serial-port input that functions as a receiver, typically on a different
computer. The cable between the computers typically has a dedicated data path
for each direction. Some serial interfaces have a single, shared data path for both
directions, with the transmitters taking turns.
5

5





The serial communications described in this book use an asynchronous protocol.
In an asynchronous protocol, the interface doesn??™t include a clock line.
Instead, each computer provides its own clock to use as a timing reference. The
computers must agree on a clock frequency, and the actual frequencies at each
Chapter 2
12
computer must match within a few percent. A transmitted Start bit synchronizes
the transmitter??™s and receiver??™s clocks.
In contrast, in a synchronous protocol, the interface includes a clock line typically
controlled by one of the computers, and all transmitted bits synchronize to
that clock. Each transmitted bit is valid at a defined time after a clock??™s rising or
falling edge, depending on the protocol.


Pages:
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34