The counter in a timer is software readable. In other words, a program
can check on the counter from time to time. As a result, a timer can
be used as a stop watch by software:
- processor resets the counter of a timer
- processor wait for signal to time
- signal received, start the mentioned timer to count
(using internal clock)
- processor wait for signal to stop the stopwatch
- signal received, stop timer and read the counter
In this case, the counter value is a measurement of the duration between
the start signal and the stop signal.
Copyright © 2006-02-15 by Tak Auyeung