Types of Interrupts

The 8085 microprocessor supports two types of interrupts:

  • Hardware Interrupts: Generated by external devices through dedicated pins on the CPU. 8085 has 5 hardware interrupts: i.e. TRAP, RST7.5, RST6.5, RST5.5, INTA.
  • Software Interrupts: Generated by the program itself using specific instructions (RST 0 to RST 7). Used for internal tasks like system calls.

Non-Vectored Interrupts:

  • In a non-vectored interrupt system, when an interrupt occurs, the processor transfers control to a fixed memory location where the interrupt service routine (ISR) starts.
  • The ISR must determine the source of the interrupt by checking status flags or polling external devices to identify which device generated the interrupt.
  • This method is simpler and requires less hardware support but may lead to longer interrupt response times since the ISR needs to identify the interrupt source.

Vectored Interrupts:

  • In a vectored interrupt system, when an interrupt occurs, the processor automatically determines the location of the ISR by using a unique vector address associated with each interrupt source.
  • The vector address is typically stored in a vector table located in a specific memory location.

For Hardware interrupts vector addresses are given by:

INTERRUPTVECTOR ADDRESS
TRAP (RST 4.5)24 H
RST 5.52C H
RST 6.534 H
RST 7.53C H

For Software interrupts vector addresses are given by:

INTERRUPTVECTOR ADDRESS
RST 000 H
RST 108 H
RST 210 H
RST 318 H
RST 420 H
RST 528 H
RST 630 H
RST 738 H
  • This method requires additional hardware to manage the vector table, but it offers improved efficiency and faster interrupt handling.

Maskable Interrupts:

  • Maskable interrupts are those interrupts that can be temporarily disabled or masked by the processor, preventing their immediate processing.
  • Examples of maskable interrupts include external hardware interrupts, timer interrupts, and I/O interrupts.
  • For example: RST7.5, RST6.5, RST5.5.

Non-Maskable Interrupts (NMI):

  • Non-maskable interrupts are interrupts that cannot be disabled or masked by the processor.
  • When a non-maskable interrupt occurs, the processor immediately suspends the execution of the current instruction and transfers control to the corresponding interrupt service routine (ISR).
  • Non-maskable interrupts are essential for handling critical events such as power failure, system reset, hardware malfunctions, or other emergencies.
  • For example: TRAP.
Design a site like this with WordPress.com
Get started