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

Support for simulating ATtinyx5 (e.g. ATtiny85) timers #64

Closed
urish opened this issue Nov 14, 2020 · 0 comments
Closed

Support for simulating ATtinyx5 (e.g. ATtiny85) timers #64

urish opened this issue Nov 14, 2020 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@urish
Copy link
Contributor

urish commented Nov 14, 2020

ATtiny devices use a single TIFR that is shared among both timers. Same goes for TIMSK. Thus, the bit indices for these registers are different and are timer dependent. For instance, TOV0 is second least significant bit, while its current value is hardcoded to the least significant bit.

We need to make TOV / OCFA / OCFB bit positions configurable, as well as TOIE, OCIEA and OCIEB.

@urish urish added the enhancement New feature or request label Nov 14, 2020
@urish urish self-assigned this Nov 14, 2020
@urish urish closed this as completed in 0e4e8de Nov 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant