Question

ISR (interrupt service routine) can be used with Time Capture to record event times. Assume that...

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.

a. [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?

b. [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?

Need answers for both asap. please show steps.

Homework Answers

Know the answer?
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
Similar Questions
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT