Home | | Microprocessors and Microcontrollers | 8251 USART-Universal Synchronous Asynchronous Receiver Transmitter

Chapter: Microprocessor and Microcontroller - Peripheral Interfacing

Study Material, Lecturing Notes, Assignment, Reference, Wiki description explanation, brief detail

8251 USART-Universal Synchronous Asynchronous Receiver Transmitter

8251 USART-Universal Synchronous Asynchronous Receiver Transmitter
The 8251 is a USART (Universal Synchronous Asynchronous Receiver Transmitter) for serial data communication. As a peripheral device of a microcomputer system, the 8251receives parallel data from the CPU and transmits serial data after conversion.

8251 UNIVERSAL SYNCHRONOUS ASYNCHRONOUS RECEIVER  TRANSMITTER

(USART)

 

The 8251 is a USART (Universal Synchronous Asynchronous Receiver Transmitter) for serial data communication. As a peripheral device of a microcomputer system, the 8251receives parallel data from the CPU and transmits serial data after conversion. This device also receives serial data from the outside and transmits parallel data to the CPU after conversion.

 

1 Block Diagram of 8251


Fig 3.7 Block diagram of the 8251 USART (Universal Synchronous Asynchronous Receiver Transmitter)

 

2 Control Words

 

There are two types of control word.

 

ü Mode instruction (setting of function)

ü Command (setting of operation)

 

1) Mode Instruction

 

Mode instruction is used for setting the function of the 8251. Mode instruction will be in "wait for write" at either internal reset or external reset. That is, the writing of a control word after resetting will be recognized as a "mode instruction."

 

Items set by mode instruction are as follows:

 

ü Synchronous/asynchronous mode

ü Stop bit length (asynchronous mode)

 

ü Character length

ü Parity bit

ü Baud rate factor (asynchronous mode)

ü Internal/external synchronization (synchronous mode)

ü Number of synchronous characters (Synchronous mode)

 

The bit configuration of mode instruction is shown in Figures 3.8 and 3.9. In the case of synchronous mode, it is necessary to write one-or two byte sync characters. If sync characters were written, a function will be set because the writing of sync characters constitutes part of mode instruction.


 

2) Command

 

Command is used for setting the operation of the 8251. It is possible to write a command whenever necessary after writing a mode instruction and sync characters.

 

Items to be set by command are as follows:

 

ü Transmit Enable/Disable

 

ü Receive Enable/Disable

 

ü DTR, RTS Output of data.

 

ü Resetting of error flag.

 

ü Sending to break characters

 

ü Internal resetting

 

ü Hunt mode (synchronous mode)

 


 

3 Status Word

 

It is possible to see the internal status of the 8251 by reading a status word.

 



Study Material, Lecturing Notes, Assignment, Reference, Wiki description explanation, brief detail


Copyright © 2018-2020 BrainKart.com; All Rights Reserved. Developed by Therithal info, Chennai.