Using the Timer API, the clock consistently runs about 5% fast, periods of 50usecs, and produces errors above and below the programmed time interval for intervals in the range of 10 usec and below.
Hi @drmcnelson
Could you be more precise. Which board you used? Is it the default clock config?
Timer precision is linked to clock config. At this unit microsecond it is not surprising.
Describe the bug
Using the Timer API, the clock consistently runs about 5% fast, periods of 50usecs, and produces errors above and below the programmed time interval for intervals in the range of 10 usec and below.
To Reproduce Here is the code:
Here are some scope traces.
In this one we set the interval to 10usecs. Notice by the end of 200 usecs, the accumulated error is -10usecs.
And here we set the interval to 5usecs. Notice that the intervals are not constant, the first interval is shorter than the later intervals.