Skip to main content

Hardware vs software interrupts

Short answer

Hardware interrupts come from external devices (e.g., NMI, INTR) and are asynchronous and maskable. Software interrupts are caused by instructions (e.g., INT n) and are synchronous and non-maskable.

Differentiate between hardware and software interrupts.

BasisHardware interruptSoftware interrupt
SourceExternal device or signal on an interrupt pinAn instruction in the program
Examples8085: TRAP, RST 5.5/6.5/7.5, INTR; 8086: NMI, INTR8085: RST 0–7; 8086: INT n, INT 3, INTO
TimingAsynchronous: can happen at any timeSynchronous: occurs at a known place in the program
MaskingMost can be masked (except TRAP, NMI)Cannot be masked
AcknowledgeNeeds INTA' (for INTR)No acknowledge cycle
UseServicing I/O devices, emergenciesSystem calls, debugging, exceptions

✓ Answer checked by Claude Opus 5.5 (high effort)

All Microprocessor chapter 5 questions →