Programmable Communication Interface
Programmable Communication Interface
COMMUNICATION INTERFACE
(8251)
1. 8251 INTRODUCTION
• The 8251 microprocessor is a Universal Synchronous Asynchronous
Universal Transmitter (USART) that acts as a mediator between
microprocessor and peripheral to transmit serial data into parallel
form and vice versa.
• 8251 chip converts the parallel data into a serial stream of bits
suitable for serial transmission. It is also able to receive a serial
stream of bits and convert it into parallel data bytes to be read by a
microprocessor.
1.1 GENERAL FUNCTION
•It takes data serially from peripheral (outside devices) and converts into parallel data.
•After converting the data into parallel form, it transmits it to the CPU.
•Similarly, it receives parallel data from microprocessor and converts it into serial form.
•After converting data into serial form, it transmits it to outside device (peripheral)
1.2 BASIC MODES OF TRANSMISSION
• The basic modes of data transmission are:
a) Simplex
b) Duplex
c) Half Duplex
CONTINUATION
• 1.2.1 Simplex mode
Data is transmitted only in one direction over a single communication channel. For
example, the processor may transmit data for a CRT display unit in this mode.
• 1.2.2. Duplex Mode
In duplex mode, data may be transferred between two trans receivers in both
directions simultaneously.
• 1.2.3. Half Duplex mode
In this mode, data transmission may take place in either direction, but at a time
data may be transmitted only in one direction. A computer may communicate with
a terminal in this mode. It is not possible to transmit data from the computer to
the terminal and terminal to computer simultaneously.
2. 8251 ARCHITECTURE
2.1. 8251 BLOCK DIAGRAM
2.1.1. DATA BUS BUFFER
• It is a tri-stated bidirectional, 8-bit buffer
• it helps in interfacing the internal data bus of 8251 to the system data bus.
• The direction of data transfer ids determined by the RD’ and WR̅
• If RD’ is low data is transferred from internal data bus to D0-D7 pins
• If WR’ is low, data is transferred from D0-D7 to internal data bus.
• The data transmission is possible between 8251 and CPU by the data bus buffer
block depending on the signal given by R/W control logic.
2.1.2. READ/WRITE CONTROL LOGIC
• It controls the overall working by selecting the operation to be done.
• It contains four registers: two 8-bit data buffer registers
• one 16-bit control word register
• One 8-bit status register
• The operation selection depends upon input signals as shown.
2.1.3. MODEM CONTROL
(MODULATOR/DEMODULATOR)
•It is a device converts analog signals to digital signals and vice-versa and helps the
computers to communicate over telephone lines or cable wires.
• The following are active-low pins of Modem.
•DSR - Data Set Ready signal is an input signal.
•DTR -Data terminal Ready is an output signal.
•CTS - It is an input signal which controls the data transmit circuit.
•RTS - It is an output signal which is used to set the status RTS.
MODEM CONTINUATION
•The modem can be connected in two different ways:
a) The terminal to modem connections
•In the terminal to modem connection, the RS232 cable is used to
achieve the connection.
MODEM CONTINUATION
b) Full duplex system connection
Both the terminals are supporting full duplex communication so both
will generate appropriate control signals and check the signals and will
perform the data transfer in both directions.
2.1.4. TRANSMIT BUFFER
•This block is used for parallel to serial converter that receives a parallel byte for conversion into serial signal
and further transmission onto the common channel.