Suppose you have a time-critical process that must be updated on a precise interval. Your colleage writes
Question:
Suppose you have a time-critical process that must be updated on a precise interval. Your colleage writes this code in the main loop of the microprocessor and makes some adjustments so that it operates properly. Then you add some additional code to the main loop and the process fails because of timing problems. What is the likely cause?
Most microprocessors have access to a timer interrupt service routine (ISR) that immediately executes its section of code whenever the timer expires, interrupting any other ongoing processes. Suppose you set up one of these timers to execute every 2 seconds. You have some code that reads a pushbutton. Should this code go in the 2-second timer? Explain.
Managerial Economics A Problem-Solving Approach
ISBN: b00btm8fk0
2nd Edition
Authors: Luke M. Froeb, Brain T. Mccann