Module 3 Notes
Module 3 Notes
Modes of operation
1. Input-Output mode –
If MSB of control word (D7) is 1, PPI works in input-output mode.
Mode 0
• The ports in mode 0 are used to interface DIP switches, Hexa-keypad ,LEDs etc
During data transfer, the communicating devices exchange request and acknowledge
control signals with each other.
In this mode, Ports A and B pins are used for data transfer while 4 bits of each of port C
are used for generating the hand shaking signals for each of the 8 bit ports.
STB (strobe) : The peripheral send a data byte to 8255 and indicates
this by lowering the strobe line.
IBF (Input Buffer Full): This is the acknowledge signal sent by 8255 to
indicate data is received
OBF (Output Buffer Full) : When a processor writes data byte to 8255 ,this signal goes low. It indicates
that this data can be read into the peripherals.
INTR (Interrupt Request) : This signal goes after the acknowledge signal is
removed.
Example:
• The computer send the data to the printer large speed compared to the printer.
• When computer send the data according to the printer speed at the time only, printer can
accept.
• If printer is not ready to accept the data then after sending the data bus , computer uses
another handshaking signal to tell printer that valid data is available on the data bus.
• The PORT C can be Set or Reset by sending OUT instruction to the CONTROL registers.