Microprocessor Lecture19
Microprocessor Lecture19
Sender Receiver
Sender Receiver
D7
1
Serial Data Communication Systems
Transmitter Receiver
Simplex
Transmitter Receiver
Half Duplex
Receiver Transmitter
Transmitter Receiver
Full Duplex
Receiver Transmitter
UART chips are used for serial communication. The 8250 series, which includes the
16450, 16550, 16650, & 16750 UARTS, are the most commonly used.
¾ The data coming in the receiving end of the data line in a serial data transfer is all 1s
and 0s; it is difficult to make sense of data unless the sender and receiver agree on a
set of rules, a protocol on how the data is packed, how many bits constitute a
character, and when the data begins and ends.
2
¾ In the Asynchronous method, each character is put between a start and stop bits. This
is called framing. In data framing, for asynchronous communications, the data such as
ASCII characters are packed in between a start bit and stop bit.
¾ The start bit is always one bit, but the stop bit(s) can be one or two bits. The start bit
is always a 0 (low) and the stop bit(s) is 1 (high)
¾ The example below gives the framing of the ASCII character “A”, where, binary
0100 0001, is framed in between the start bit and two stop bits. Notice that the LSB is
sent out first.
3
RS232 Pins
¾ Serial Ports come in two "sizes". There are the D-Type 25 pin connector and the D-
Type 9 pin connector both of which are male on the back of the PC, thus you will
require a female connector on your device. Below is a table of pin connections for
the 9 pin and 25 pin D-Type connectors.
4
Pin Functions