This document discusses serial communication using the 8085 microprocessor and 8251A USART chip. It describes the basics of synchronous and asynchronous serial transmission including start/stop bits and framing. It provides details on the RS-232 serial interface standard including voltage levels, connectors, and DTE/DCE roles. The 8251A USART chip is explained in detail, including its block diagram, pinout, registers for control, status, and data, and how it converts parallel to serial and vice versa. Modes of operation and initialization of the 8251A are also covered.
14. VOLTAGE LEVEL +3V TO +15 V LOGIC 0 VOLTAGE LEVEL -3V TO -15 V LOGIC 1 YEP…. THATS RIGHT….. HERE WE USE NEGATIVE TRUE LOGIC BUT USUSALLY LOGIC 1 +12V LOGIC 0-12V ????!!!!!!
30. Synchronization between MPU and slow peripheralUSART – Universal Synchronous /Asynchronous Receiver/ Transmitter It incorporates all the above features in a single chip and other sophisticated functions for serial communication. It is a programmable device i.e its functions and specifications for serial i/o can be determined by writing instructions to its internal registers 8251A USART device widely used for serial i/o
60. 8 BIT bidirectional register – addressed as input or output
61.
62. OUTPUT SIGNAL : TXD - TRANSMIT DATA SERIAL BITS ARE TRANSMITTED ON THIS LINE TxRDY – TRANSMITTER READY LOGIC 1 – BUFFER EMPTY; USART READY TO ACCEPT TO INTERRUPT MPU or INDICATE STATUS TxE – TRANSMITTER EMPTY LOGIC 1 – OUTPUT REGISTER IS EMPTY LOGIC 0 - BYTE IS TRANSFERRED FROM BUFFER TO REG.
63. RECEIVER SECTION RECEIVER - CONVERTS SERIAL TO PARALLEL TWO REGISTERS - INPUT REGISTER – TO HOLD SERIAL 8 BITS WITH START & STOP BITS AND CONVERT THEM TO PARALLEL - BUFFER REGISTER – TO STORE PARALLEL BITS TWO INPUT AND ONE OUTPUT SIGNALS INPUT SIGNAL : RXC’ - RECEIVER CLOCK CONTROLS THE RATE AT WHICH BITS ARE RECEIVED BY USART CLOCK FREQ – 1/16/64 TIMES THE BAUD
64. RXD - RECEIVE DATA SERIAL BITS ARE RECEIVED ON THIS LINE OUTPUT SIGNAL : RxRDY – RECEIVER READY LOGIC 1 – USART HAS A CHARACTER IN THE BUFFER REGISTER NAD READY TO TRANSFER TO MPU TO INTERRUPT MPU or INDICATE STATUS
65. 7 6 5 4 3 2 1 0 Mode register Number of Stop bits Baud Rate 00: Syn. Mode 01: ASYNC x1 10: ASYNC x16 11: ASYNC x64 00: invalid 01: 1 bit 10: 1.5 bits 11: 2 bits Character length 00: 5 bits 01: 6 bits 10: 7 bits 11: 8 bits 8251 mode register- MODE WORD PARITY CONTROL X0 – NO PARITY 01 – ODD PARITY 11 – EVEN PARITY