โ Microprocessors & Microcontrollers learning pathMicroprocessors & Microcontrollers ยท Module 5 of 10
Interrupts
Letting devices get the processor's attention.
๐ Key ideas
- An interrupt pauses the current program, runs an interrupt service routine (ISR), then returns.
- 8085 hardware interrupts: TRAP (non-maskable, highest priority), RST 7.5, RST 6.5, RST 5.5 and INTR.
- Maskable interrupts can be disabled with DI and enabled with EI; TRAP cannot be masked.
- Vectored interrupts jump to a fixed address; non-vectored ones need the device to supply it.
- Interrupts are more efficient than polling, which repeatedly checks a device.
๐ก Real-life example: Like a doorbell: you keep working and only stop when it rings, instead of walking to the door every minute to check (polling).
InterruptSignal that pauses normal execution
ISRRoutine that handles an interrupt
Non-maskable interruptInterrupt that cannot be disabled
PollingRepeatedly checking a device's status