Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nRF52 timer accuracy #2125

Closed
gfwilliams opened this issue Jan 6, 2022 · 0 comments
Closed

nRF52 timer accuracy #2125

gfwilliams opened this issue Jan 6, 2022 · 0 comments

Comments

@gfwilliams
Copy link
Member

gfwilliams commented Jan 6, 2022

Ref: #1444

Mentioned on http://forum.espruino.com/conversations/370215/ but also has been an issue for a while when using digitalPulse with arrays of pulses.

On nRF52 we use the 32kHz oscillator for system time, but this means that even though we use the Util Timer which is higher res, when it tries to realign itself with system time, timings can get messed up. I think this isn't helped by tasks being inserted into the timer using an absolute time rather than just a delay.

... so we probably need to adjust util timer functions to take just a delay (and maybe a timer task to set that delay from?), and then modify everything that uses it...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant