Question: onsider a system built on a 4 8 MHz processor with a main loop and an interrupt which occurs at a 1 0 kHz frequency.

onsider a system built on a 48 MHz processor with a main loop and an interrupt which occurs at a 10 kHz frequency. Assume the ISR take 14.9 us to execute and there is a total of 1 us of response and return time overhead.
What percentage of the processors time is spent in interrupt response and return overhead?
What percentage of the processors time is left for the main loop to execute?
If the main loop requires 37 ms of computation to execute one iteration, what is the minimum main loop update rate (in Hz)?
Consider the system above again, but now with the interrupt running at 25 kHz and the ISR taking 34 us to execute.
What percentage of the processors time is spent in interrupt response and return overhead?
What percentage of the processors time is left for the main loop to execute?
If the main loop requires 37 ms of computation to execute one iteration, what is the minimum main loop update rate (in Hz)?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!