Consider the following statements about interrupts.
1. Latency includes the time to save context 2. A non-maskable interrupt can be disabled by clearing a bit 3. An uncleared peripheral flag causes the handler to re-enter
Answer: A
Correct answer: 1 and 3 only are correct
Statements 1 and 3 are correct: latency includes saving the context as well as recognising the interrupt, and a peripheral flag left uncleared re-asserts the request the moment the handler returns, so it runs again immediately. Statement 2 contradicts the definition - a non-maskable interrupt is precisely one that cannot be disabled in software, which is why it is reserved for events such as power failure.
Please log in or register to report this question.