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

Timers: Support 16 bit timer writes and reset even when interrupts are disabled #478

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

F0bes
Copy link

@F0bes F0bes commented Jul 25, 2021

From my hardware tests, these are my findings.

EE Timers
Regardless of bit 8 (Compare Interrupt Enable), if bit 6 (Clear counter when it reaches compare value) is set, the timer will be reset.

IOP Timers
Bit 3 (Zero return - reset counter on interrupt) is incorrectly documented, regardless of interrupt setting, the timer count will be reset when it reaches the target if this bit is set.

Also, support 16 bit writes, they work on real hw (thanks, Ziemas)

F0bes added 2 commits July 25, 2021 19:00
The scheduler doesn't need to know if the timer (both IOP and EE) can target because the timer needs to reset regardless.
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

Successfully merging this pull request may close these issues.

1 participant