Applications of Handshake Mode
Applications of Handshake Mode
Applications of Handshake Mode
Introduction
This report is based on the application of the 8255 in the handshake mode. There are a many applications
using the hand shake mode and a few are listed in this report. 8255 is a widely used general purpose
programmable devices, can be compatible with any microprocessor. The 8255 includes three programmable
ports, one of which can be used for bidirectional data transfer. This is an important additional feature in
comparison with the 8155 I/O ports. The 8255 has 24 I/0 pins that can be grouped primarily in two 8 bit
parallel ports. A & B, with the remaining eight bits as port c. the eight ports of port c can be used as individual
bits or be grouped in two 4-bit ports. The figure shows all the functions of 8255, classified according to two
modes: the BSR mode and I/P mode. The BSR mode is used to set or reset the bits in port c. the I/O mode is
further divided into three modes: mode 0, mode 1 and mode 2. In mode 0, all the ports function as simple
I/O ports. Mode 1, is a handshake mode where by ports A and/or B use bits from port C as handshake signals.
In the handshake mode, two types of I/P data can be transferred implemented: status check and interrupt. In
mode 2, port A can be set up for bidirectional data transfer using handshake signals from port C, and port B
can be used to set up either in mode 0 or mode 1.
20
4. The SLCT signal on pin13, which goes high if the printer is selected for
receiving data
5. The ERROR signal on pin32, which goes low for a variety of problem
conditions in the printer.
with 8255