Timer period error #2516
Unanswered
drmcnelson
asked this question in
Q&A
Replies: 2 comments
-
Hi @drmcnelson |
Beta Was this translation helpful? Give feedback.
0 replies
-
Nucleo-144 F722ZE |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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.
Beta Was this translation helpful? Give feedback.
All reactions