2081 7

CSC167 ยท 2081 ยท 5 marks

What do you mean by vectored interrupt? Explain maskable and non-maskable interrupts in 8085 microprocessor.

What do you mean by vectored interrupt? Explain maskable and non-maskable interrupts in 8085 microprocessor. [5]

MicroprocessorChapter 5: Basic I/O, Memory R/W and Interrupt OperationsInterrupt Masking

Quick answer

A vectored interrupt is an interrupt in which the interrupting device not only signals the processor for attention but also identifies itself by providing the address (vector) of its Interrupt Service Routine (ISR) directly.

Vectored Interrupt, Maskable and Non-Maskable Interrupts in 8085


Vectored Interrupt

  • When a vectored interrupt occurs, the microprocessor automatically jumps to a fixed, pre-defined memory address associated with that interrupt, without needing to poll or search for the source.
  • This makes the response faster and more efficient.

Example: In the 8085, interrupts like TRAP, RST 5.5, RST 6.5, RST 7.5 are vectored interrupts because each one has a fixed call address in memory.

In contrast, a non-vectored interrupt (like INTR) does not provide the address directly; the processor must determine the ISR address through external hardware.


Interrupts in 8085 Microprocessor

The 8085 has 5 hardware interrupt pins:

InterruptType
TRAPNon-Maskable
RST 7.5Maskable
RST 6.5Maskable
RST 5.5Maskable
INTRMaskable

1. Maskable Interrupts

  • A maskable interrupt is one that can be enabled or disabled (masked) by the programmer using software instructions.
  • In 8085, the EI (Enable Interrupt) and DI (Disable Interrupt) instructions are used to enable or disable maskable interrupts.
  • When the processor is busy with a critical task, it can ignore (mask) these interrupts temporarily.
  • The response to a maskable interrupt can be immediate or delayed.

Maskable interrupts in 8085:

  • INTR - General purpose maskable interrupt; requires external hardware to supply the restart address.
  • RST 5.5 - Vectored; calls address 002CH
  • RST 6.5 - Vectored; calls address 0034H
  • RST 7.5 - Vectored; calls address 003CH (highest priority among maskable)

These can also be individually masked using the SIM (Set Interrupt Mask) instruction.


2. Non-Maskable Interrupt

  • A non-maskable interrupt is one that cannot be disabled or ignored by the programmer. The processor must respond to it immediately regardless of the state of the interrupt enable flag.
  • It is used for emergency or critical situations such as power failure.

Non-maskable interrupt in 8085:

  • TRAP - It is the only non-maskable interrupt in 8085.
    • It has the highest priority among all interrupts.
    • It is both edge-triggered and level-triggered (making it very reliable).
    • It calls the fixed address 0024H.
    • It cannot be masked by EI/DI instructions or SIM instruction.

Summary Table

FeatureMaskable InterruptNon-Maskable Interrupt
Can be disabled?Yes (using DI / SIM)No
Example in 8085INTR, RST 5.5, RST 6.5, RST 7.5TRAP
PriorityLowerHighest
Use caseGeneral I/O requestsCritical emergencies

Short on time? The 1, 5 and 10 mark versions of this answer, flashcards and practice sets come with a program pass.