Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please answer 'a' and 'b'. Thank you! 4. [10 pts] ISR (interrupt service routine) can be used with Time Capture to record event times. Assume
Please answer 'a' and 'b'. Thank you!
4. [10 pts] ISR (interrupt service routine) can be used with Time Capture to record event times. Assume that the ISR merely reads the time value from the Capture Register and then saves it to memory, and each execution of the ISR takes 50 CPU clock cycles (including the overhead of CPU stacking and unstacking). The CPU clock rate is 50 MHz. [5 pts] If the frequency of the events is 1 KHz and 100 KHz, respectively, what percentage of CPU time will be spent on executing the ISR? a. [5 pts] If the frequency of the events is too high, the CPU will be overloaded, i.e. | ISR would use 100% or more of the CPU time if all events would be processed (that won't happen). Under that condition, some events will have to be lost in the system. What is the minimum frequency of events for the CPU to be overloaded? bStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started