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

Timer0 interrupt driven timer has unstable and erratic timing #155

Open
LightningStalker opened this issue Jul 16, 2022 · 0 comments
Open

Comments

@LightningStalker
Copy link

The following code does not function as expected: https://gist.github.com/LightningStalker/ecaf6b26f6c48334a6190d6a4ce945c1

Oscilloscope probing shows pin transition points to be unstable. Simulating the above code in MPLAB X IDE confirms this. Something in the core is causing the interrupt vector routine to fire in a several µs window around the expected time. Trying a different Attiny core makes it mostly disappear. I say mostly because there is still something causing spurrious timing errors in that core as well. Also I am unable to flash the Digispark with that code.

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