8251 Interfacing with 8086 :
The 8251 is a USART (Universal Synchronous Asynchronous Receiver Transmitter)
for serial data communication. As a peripheral device of a microcomputer system,
the 8251 receives 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.
fig.8251 Block Diagram
PIN Diagram of 8251 :
As shown in below pin diagram of 8251,
fig.IC 8251
Control Words :
There are two types of control word.
1. Mode instruction (setting of function)
2. 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)
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)
No comments:
Post a Comment