Question

A type of interrupt we did not cover in class is the hardware exception. This interrupt is generated by the CPU when the execution of an instruction produces a condition which prevents it from completing. Some examples are: an attempt to divide by zero an attempt to take the square root of a negative number an attempt to divide infinity by infinity a page fault 7) With respect to hardware exceptions a. What must be allowed to complete before the interrupt is serviced? b. What resources (CPU, buses, memory, etc.) is the ISR expected to use? c. What is the ISR typically expected to do? d. is the interrupted task expected to resume after the ISR runs? e. What must be saved before the ISR is run?

0 0
Add a comment Improve this question Transcribed image text
Answer #1

a. Five conditions must be true for an interrupt to be generated

1) device arm,
2) NVIC enable,
3) global enable,
4) interrupt priority level must be higher than current level executing, and
5) hardware event trigger.

d.As interrupts stop a currently running process, the state of which must be saved before the interrupt is handled, there is a lag between the interrupt being generated and the ISR being run.

Add a comment
Know the answer?
Add Answer to:
A type of interrupt we did not cover in class is the hardware exception. This interrupt...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • With respect to bus request interrupts: What must be allowed to complete before the interrupts is...

    With respect to bus request interrupts: What must be allowed to complete before the interrupts is serviced? What resources (CPU, buses, memory, etc..) is the ISR expected to use? What is the ISR typically expected to do? Is the interrupted task expected to resume after the ISR runs? What must be saved before the ISR is run?

  • IN JAVA: Write a class, ZeroException, which is an Exception, and is used to signal that somethi...

    IN JAVA: Write a class, ZeroException, which is an Exception, and is used to signal that something is zero when it shouldn't be. Write the class ArrayManipulator which creates an array and provides several methods to manipulate values taken from an array. ZeroException Task: Exceptions are used to signal many types of problems in a program. We can write our own as well to describe specific exceptional conditions which may arise. The advantage of doing so is that when exceptions...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT