Interrupt structure

The interrupt structure in the 8085 microprocessor is a complex mechanism that allows the processor to handle various interrupt requests efficiently. It consists of several components and performs a specific set of operations.

Interrupt sources

The 8085 microprocessor has five hardware interrupt sources, which can be divided into two types:

Non-maskable interrupt


TRAP: This is a non-maskable interrupt with the highest priority. It is used for critical events that require immediate attention, such as a power failure or a system reset. The vector address for TRAP is 0024h.

Maskable interrupts


RST 7.5: its priority is lower than that of TRAP and it is maskable. The vector address is 003Ch.

RST 6.5: this interrupt has a priority lower than that of RST 7.5 and is also maskable. Its vector address is 0034h.

RST 5.5: its priority is lower than that of RST 6.5, it is a maskable interrupt and it has the vector address 002Ch.

INTR: this is a general-purpose maskable interrupt with a programmable priority. External devices use the INTR pin to request an interrupt.

Interrupt control registers

Interrupt enable flag (IFF)


The 8085 has an interrupt enable flag in the program status word (PSW). When the IFF bit is set (IFF = 1), the microprocessor is allowed to respond to maskable interrupts. When this bit is cleared (IFF = 0), maskable interrupts are disabled.

Interrupt mask register (IMR)


The IMR is used to selectively mask or unmask the RST 7.5, RST 6.5 and RST 5.5 interrupts. Each bit in the IMR corresponds to one of these interrupts. If the bit is set, the corresponding interrupt is masked; if it is cleared, the interrupt is enabled.

Interrupt vector table

The 8085 microprocessor has an interrupt vector table in memory. Each interrupt has a fixed vector address in this table. When an interrupt occurs, the microprocessor jumps to the corresponding vector address to execute the interrupt service routine (ISR). The vector addresses of the interrupts are as follows:

Interrupt Vector address
TRAP 0024H
RST 7.5 003CH
RST 6.5 0034H
RST 5.5 002CH
INTR Depends on the interrupt controller used