??? 05/29/05 18:30 Read: times |
#94094 - Software Delay Loops Responding to: ???'s previous message |
Vignesh:
Some have said that software loops in C are not predictable in terms of delay time. I want to clarify that this is somewhat misleading to have this stated in this manner. The part that is unpredictable is when you compare the loop times you currently experience with those that are created when you process your c program software delay under conditions of the following types:
A very effective means to measure the time delay of a C code loop is to use a spare port bit as a singal flag. Set the bit as the time delay routine starts and clear it again after the delay routine is finished. Then use an oscilloscope to observe this resulting pulse on the spare port pin while the program is running. You can very quickly see exactly how long the delay is. Michael Karas |
Topic | Author | Date |
Keil: getting input | 01/01/70 00:00 | |
If it works in ASM it Works in C | 01/01/70 00:00 | |
Why C?! | 01/01/70 00:00 | |
Irrelevant | 01/01/70 00:00 | |
Of Course | 01/01/70 00:00 | |
key scan | 01/01/70 00:00 | |
Delay.. | 01/01/70 00:00 | |
Delay | 01/01/70 00:00 | |
Software Delay Loops | 01/01/70 00:00 | |
Software Delay Loops | 01/01/70 00:00 | |
Learning 'C' | 01/01/70 00:00 | |
to be precise.. | 01/01/70 00:00 | |
Debounce | 01/01/70 00:00 | |
completely missed it.. | 01/01/70 00:00 | |
to be precise... | 01/01/70 00:00 | |
Sorry Leo ! | 01/01/70 00:00 | |
Inferences | 01/01/70 00:00 | |
Right answer, wrong reason | 01/01/70 00:00 | |
and therefore | 01/01/70 00:00 | |
Congratulations | 01/01/70 00:00 | |
to: Raghu Sir![]() | 01/01/70 00:00 | |
BIts! | 01/01/70 00:00 |