Intel 8251 USART
Intel 8251 USART
Intel 8251 USART
Objectives
Upon completion of this chapter, you will be able to: List the advantages of serial communication over parallel communication Explain the difference between synchronous and asynchronous communication Define the terms simplex, half duplex, and full duplex and diagram their implementation in serial communication Describe how start and stop bits frame data for serial communication Compare the measures baud rate and bps (bits per second) Describe the RS232 standard Compare DTE (data terminal) versus DCE (data communication) equipment Describe the purpose of handshaking signals such as DTR, RTS, and CTS Describe the operation of a USART and use and 8251 IC 4/29/2011 Diwakar Yagyasen 2
Simplex vs Duplex
In Simplex Mode data flow is in one direction only. In Half Duplex Mode data flows in one direction, at a given time, A protocol and switches connect the devices both to receive and also to transmit.
In Full Duplex mode, transmitted data and received data goes simultaneously through two channels.
4/29/2011
Diwakar Yagyasen
Asynchronous vs Synchronous
How can the receiver get each data bit when it is delivered by the transmitter? In synchronous transmission an explicit clock signal describes the instants of valid data.
A single data bit is sent at each clock. Minimum three signal lines required for full duplex,
Receive-DATA, Transmit-DATA, and CLOCK. In asynchronous transmission clock is derived using apriory parameters and a start bit.
Transfer rate known, internal clock starts to pulse with the start bit, at the known transfer rate. Ony two signal lines required for full duplex
Start bit is required to synchronize the internal clock of receiver. Stop bit is required to test the clock frequency. Only DATA is transmitted, internal clock is
4/29/2011
Diwakar Yagyasen
4/29/2011
Diwakar Yagyasen
4/29/2011
Diwakar Yagyasen
4/29/2011
Diwakar Yagyasen
10
4/29/2011
Diwakar Yagyasen
11
4/29/2011
Diwakar Yagyasen
12
UART 8251
A processor may transmit/receive data in serial format without any extra hardware.
But it costs to the processing time of the processor.
A UART (Universal Asynchronous Receiver Transmitter) is a hardware device that shifts out data bits to transmit a data byte, and also shifts-in data bits to receive a data byte.
4/29/2011 Diwakar Yagyasen 13
4/29/2011
Diwakar Yagyasen
14
4/29/2011
Diwakar Yagyasen
15
4/29/2011
Diwakar Yagyasen
16
4/29/2011
Diwakar Yagyasen
18
4/29/2011
Diwakar Yagyasen
19
4/29/2011
Diwakar Yagyasen
20
4/29/2011
Diwakar Yagyasen
21