??? 04/13/08 12:36 Read: times |
#153186 - Timer Used For Delay Responding to: ???'s previous message |
One would use a timer for a delay to support the ability to measure out a fixed delay time when the time that the program uses to get through its sequence of instructions to the end of the delay time varies due to:
a) The path could vary due to other conditions that affect which code is executed such as conditional branches, interrupts and subroutines that may or may not be called. b) You keep adding or taking away code in the path during the coding refinement process and do not want to have to keep re-computing the length of the execution delay. c) You use development tools that produce code or pull in library routines that end up in the execution path but you do not have a clue before hand how long the code will take to actually execute. Michael Karas |
Topic | Author | Date |
Timers | 01/01/70 00:00 | |
Because ... | 01/01/70 00:00 | |
Are you serious ? | 01/01/70 00:00 | |
loop is like DOS , timer is like WIndows | 01/01/70 00:00 | |
Timer Used For Delay | 01/01/70 00:00 | |
Not in a high-level language, you can't | 01/01/70 00:00 | |
A Simple example![]() | 01/01/70 00:00 |