Académique Documents
Professionnel Documents
Culture Documents
Programmable Interrupt
Controller
8259 FEATURES
Standard chip which acts as an interrupt manager for a system
Depending on the size and requirements of the system ,there
can be one or more interrupt controllers .
The PIC has eight interrupt request lines IR0 to IR7 ,on which peripherals
can place their interrupt requests .
signal.
BLOCK DIAGRAM
Intel 8259A Programmable Interrupt Controller handles up to
eight vectored priority interrupts for the CPU.
It is cascadable for up to 64 vectored priority interrupts .
It is packaged in a 28-pin DIP.
Requires a single 5V supply.
Circuitry is static, requiring no clock input.
The 8259A is designed to minimize the software and real
time overhead in handling multi- level priority interrupts.
It
has
interrupt
Raising an IR input
(low
to
high),
and
acknowledged
(Edge
Triggered
Mode),
Just by a high level on
an
IR
input
(Level
Pin Functions
INT:
This output goes directly to processor interrupt input and
causes the processor to send back the
as an
acknowledgement.
IRR &ISR
Interrupts at the IR input lines are handled by two
registers in cascade.
PRIORITY RESOLVER
Determines the priorities of the bits set in the IRR.
The highest priority is selected and strobed into the
corresponding bit of the ISR(in service register) during
The associated three I/O pins (CAS 0-2) are outputs when the 8259A is used as a
master and are inputs when the 8259A is used as a slave.
R/W Logic:
Decoding logic on the
and A0 determine the addresses of the registers within
the chip ,and in conjunction with the
signals registers can be read
from or written into.
ICW2
ICW3 Master
and slave
ICW4
OCW
2
OCW
3
1
OCW
OCW1 0
1
To mask any of the interrupt
request IR0-IR7.
OCW2
Used to assign priorities to interrupt request.
There is a default priority assigned on initialization.
This can be changed based on the bit patterns of
OCW2.
Priority Options
Fully Nested
Automatic rotation
Specific rotation
Fully Nested
This mode is entered after initialization until another mode is
programmed.
Interrupt requests are ordered in priority from 0(highest) to
7(lowest).
If IR3 and IR4 requests occurs simultaneously, IR3 gets priority.
IR3 can be interrupted by a request on IR2, if the interrupt flag
has been enabled by software.
Automatic Rotation Mode
Used when a just and equitable distribution of service is
needed for devices which is considered to have equal priorities.
Once the interrupt for a device is serviced, it goes to
lowest priority status.
Specific Rotation Mode
Similar to previous mode (Automatic rotation).
OCW3
Can be read to get the status of ISR and IRR.
It is also used to enable some high level features of the chip.
Operational Control
Word(OCW) OCW1
OCW2
OCW3