MICROPROCESSOR
PART 11
SIBIN K
Electrical Subject Matter Expert
Programmable Interrupt Controller 8259
● Used to increase the number of interrupts
● One 8259 has 8 interrupt pins,
● it can handle up to 64 interrupts
● Interrupts can be masked individually
8255 Programmable Peripheral Interface
● It is a programmable parallel I/O device
● Can be programmed to transfer data under various conditions
● It is a 40pin IC
● 24 I/O pins, 3 parallel ports
● Functions of this ports are defined by control word in the control register
ARCHITECTURE
● There are two basic modes of operation of 8255,
They are:
1. I/O mode.
2. BSR mode
● In I/O mode, the 8255 ports work as programmable I/O ports, while In BSR mode only
port C (PC0-PC7) can be used to set or reset its individual port bits.
● Under the IO mode of operation, further there are three modes of operation of 8255, So
as to support different types of applications, viz. mode 0, mode 1 and mode 2.
Mode 0
● Port A, Port B, Port C are used as I/O Ports
● Each port can be programmed as input or output individually
Mode 1
● Handshake signals are exchanged before data transfer.
● Port A and Port B are used as I/O Ports, port C is used for handshaking
Mode 2
● Port A works as I/O port, 5lines are taken from port C for bidirectional handshaking
● Port B works in mode 0 or mode 1