Design of Handshake Mode With 8255 Using 8086
Design of Handshake Mode With 8255 Using 8086
Declaration:
I declare that this Term paper is my individual work. I have not copied from any other student’s work or
from any other source except where due acknowledgment is made explicitly in the text, nor has any part
Evaluator’s comments:
_____________________________________________________________________
3. Whenever the printer receives the data it MOV AH,[SI] ;get a character
informs the sender by activating an output CMP AH,'$' ;is it the end?
providing another byte of data to the printer. IN AL,DX ;get status byte from port C
AND AL,08 ;is INTRa high?
JZ BACK ;if no, keep checking • Port a
MOV DX,PA ; if yes, make DX=300 data
• Port b
port
MOV AL,AH ;addressand • Port c
OUT DX,AL ;send char to printer
o Port c upper
INC SI ;increment the data pointer
JMP AGAIN ;keep doing it o Port c lower
OVER: ... ;go back to DOS
operating modes of 8255A PPI :
it has 2 versions : The 8255 has two 8 bit ports and two 4 bit
ports. The RD#, WR#, A0 and A1 (Port
• INTEL8255
Select 0 and Port Select 1) signals are input
• INTEL 8255A-5 into the device. The Read/Write Control
Logic issues control words to the device
There are some differences in their electrical
Group A and Group B Controls. The Group
characteristics.its main function are to
A and Group B Controls, in turn, issue
interface peripheral devices to the
commands to the associated ports. The
microcomputer.it has three 8 bit ports
Control Groups are defined as:
namely
Control Group A: Port A and Port C upper MODE 1
(C7-C4).
• Simple I/O with handshaking capabilities
Control Group B: Port B and Port C lower
• Ports A and B can be used as input or
(C3-C0).
output ports with handshaking capabilities
• Handshaking signals are provided by the
The specifications for the peripheral device
bits of port C (the device provides the
are examined to determine the control and
handshaking
data signals which must be supported by the
Signals)
8255A/82C55A. The 8255A/82C55A is then
programmed to provide the correct I/O and
data paths.
input/output feature in Mode 0 for the
8255A PPI :
_ Outputs are latched
_ Inputs are not latched
_ Ports do not have handshake or interrupt
capability
EXAMPLE:
Program PC4 of the 8255 in the following
Figure to generate a pulse of 50 ms with
50% duty cycle.
The signals are as follows:
REFERENCES:
1. www.wikipedia.com
2. www.ask.com