All Exams Test series for 1 year @ ₹349 only
Question

In 8086, example for non maskable interrupts is:

The correct answer is

TRAP

8086 Interrupts Overview

The 8086 microprocessor is designed to handle various types of interruptions, known as interrupts, to respond to internal or external events. These interrupts allow the processor to temporarily halt its current task, execute a specific routine (an interrupt service routine or ISR) to handle the event, and then resume its original task. Interrupts in 8086 can be broadly classified into two main categories: hardware interrupts and software interrupts. Hardware interrupts are further divided based on whether they can be controlled by software.

Non-Maskable Interrupt (NMI) in 8086

A non-maskable interrupt (NMI) is a type of hardware interrupt that, as its name suggests, cannot be "masked" or disabled by software instructions. This makes non-maskable interrupts critical for handling severe system events or urgent situations that require immediate attention from the processor, regardless of its current state or any software settings. Examples of scenarios where an NMI might be used include:

  • Detecting a power failure, allowing the system to save critical data before shutting down.
  • Responding to a memory parity error, indicating a serious memory fault.
  • Handling system malfunctions that necessitate a rapid and unavoidable response.

In the 8086 microprocessor, the non-maskable interrupt is triggered by a dedicated NMI pin. When an active signal is detected on this pin, the 8086 processor automatically acknowledges it. It then completes its current instruction, saves the essential state information (Flags register, Code Segment (CS) register, and Instruction Pointer (IP) register) onto the stack, and immediately jumps to the interrupt service routine associated with Interrupt Type 2. The vector address for this interrupt is 00008H in the interrupt vector table.

TRAP as a Non-Maskable Interrupt Example

Among the given options, TRAP is the correct example of a non-maskable interrupt in the context of the 8086 microprocessor. While "TRAP" can be a general term for certain types of exceptions or synchronous interrupts that are often unmaskable in computer architecture, for the 8086 specifically, the non-maskable interrupt (NMI) pin directly corresponds to Interrupt Type 2. This Type 2 interrupt is inherently non-maskable, making it a "TRAP" in the sense of being an unavoidable, high-priority system event.

Comparing TRAP with other 8086 Interrupts

Let's analyze the other options provided to understand why TRAP is the suitable choice:

  • INTR: This stands for Interrupt Request. INTR is the general-purpose maskable interrupt pin in the 8086. Unlike NMI, the processor will only respond to an INTR request if the Interrupt Flag (IF) in the Flags register is set. Software instructions like STI (Set Interrupt Flag) and CLI (Clear Interrupt Flag) can be used by programmers to enable or disable the recognition of INTR requests. Therefore, INTR is a maskable interrupt.
  • RST 6.5 and RST 6.6: These are specific interrupt instructions or pins typically associated with the 8085 microprocessor, not the 8086. The 8085 has a different set of hardware interrupts, including TRAP (which is non-maskable in 8085), RST 7.5, RST 6.5, RST 5.5, and INTR. In the 8085, RST 6.5 (and similarly RST 5.5, RST 7.5) are hardware interrupts but are maskable. The 8086 uses a more advanced interrupt architecture with a dedicated NMI pin for non-maskable interrupts and a single INTR pin for maskable interrupts.

Key Takeaway on 8086 Non-Maskable Interrupts

In summary, for the 8086 microprocessor, the principal example of a non-maskable interrupt is the one activated by the NMI pin, which triggers Interrupt Type 2. Among the given choices, TRAP is the term that accurately represents a non-maskable interrupt type due to its critical and unignorable nature in system operation.

Was this answer helpful?

Important Questions from Types of Interrupts

  1. Which interrupt in 8085 Microprocessor is non-maskable?

  2. Consider the following two statements about interrupt handling mechanisms in a CPU.

    S1: In non-vectored interrupt mechanism, it usually takes more time to start the Interrupt Service Routine (ISR) when compared to that in a vectored interrupt mechanism.

    S2: In daisy-chain interrupt mechanism, the CPU polls all the input devices individually to determine the source of the interrupt.

    Which one of the following options is correct with respect to S1 and S2 ?
  3. For switching from a CPU user mode to the supervisor mode following type of interrupt is most appropriate

  4. Which of the following is an interrupt according to temporal relationship with system clock ?

  5. System calls are usually invoked by using :

Need Expert Advice?

Start Your Preparation with Prepp Mobile App

Download the app from Google Play & App Store
Download the app from Google Play & App Store
Prepp Mobile App