a8259 Programmable Interrupt Controller Data Sheet
Interrupt Registers
The a8259contains two interrupt registers:
■
■
Interrupt request register (IRR)
In-service register (ISR)
Interrupt Request Register
The IRR stores all interrupts that are requesting service. In edge-triggered
mode (when bit 3 of ICW 1 is low), each irpin is synchronized to the clk
signal. Positive-edge detection is performed, and the result is clocked into
the IRR.
In level-triggered mode (when bit 3 of ICW 1 is high), each irsignal is
clocked directly into the IRR. The falling edge of the first nintasignal
from the microprocessor freezes the IRR so all interrupts can be evaluated.
The level of an irsignal from the microprocessor must be maintained
until after the falling edge of the nintasignal. Interrupt handshaking
protocol must be completed before the next interrupt can be received.
Table 15 shows the IRR format.
Table 15. IRR Format
Bit
Decode
0
1
2
3
4
5
6
7
IR0
IR1
IR2
IR3
IR4
IR5
IR6
IR7
In-Service Register
The ISR stores the interrupt level currently being serviced. Data is enabled
by the first nintasignal of the interrupt acknowledge sequence. In AEIO
mode, data is reset upon the final rising edge of the nintasignal in the
interrupt sequence. Otherwise, the microprocessor must issue an EOI
command by writing the appropriate value to the OCW 2 command
register. Table 16 shows the ISR format.
Altera Corporation
69