The microprocessor
system may be measuring temperatures in the Sahara desert.
Once a year it
receives a radio signal telling it to stop measuring temperatures and send
all last year's data to base.
The cpu completes
it current instruction.
It then jumps to a routine which services the interrupt. Once the interrupt routine is completed, it pulls the saved data from the stack and carries on measuring temperatures. There are two pins on the cpu which, when taken low, cause a hardware interrupt. IRQ can be sensed or ignored depending the value of the interrupt flag in the status register. NMI cannot be
ignored.
|