High Speed Tickless timers?
Posted: Sat Nov 10, 2018 9:32 am
Thoughts triggered by some work on a 32L071, with systick 1000usec, which is fine for 99% of use.
I need to generate one-shot time intervals in the range of 100-5000usec, with a resolution of, say, 10usec. Potentially I could have several timers running in parallel (although that would be unusual). Obviously out of the range of polledDelay() function.
Essentially what it needs is to clone the virtual timer code, but running off a faster hardware timer.
Any thoughts on the practicalities of this?
(I can see the obvious - that these timers would need to be used sparingly, otherwise the overhead would become very significant)
I need to generate one-shot time intervals in the range of 100-5000usec, with a resolution of, say, 10usec. Potentially I could have several timers running in parallel (although that would be unusual). Obviously out of the range of polledDelay() function.
Essentially what it needs is to clone the virtual timer code, but running off a faster hardware timer.
Any thoughts on the practicalities of this?
(I can see the obvious - that these timers would need to be used sparingly, otherwise the overhead would become very significant)