Joel Rainville
New Member
Nigel Goodwin said:But how long is each iteration?, if you call the routine 10 times before the timer ends, then that's 60 cycles wasted, lots more than the interrupt routine overhead.
The iteration lasts whatever time the main program takes to do its normal processing.
My polling strategy's flaw is that it takes for granted that the 60 cycles (for example) or so used in polling aren't needed by the main program anyway, since the processing is done.
But once the main program takes too much time to allow for a good refresh rate, I will lose my display, or at least some quality. This solution, while it *can* be more efficient in some instances, will be more often than not more costly than the interrupt version. I get it now
Thanks!