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

using the millis() timer0 alternative #8

Open
alto777 opened this issue Mar 19, 2022 · 0 comments
Open

using the millis() timer0 alternative #8

alto777 opened this issue Mar 19, 2022 · 0 comments

Comments

@alto777
Copy link

alto777 commented Mar 19, 2022

Any sense I made of using the millis() compare A and B mechanism seemed to need an additional ISR, in fact it did not work until I added the following nearly identical function in the section marked "/* Alternative using timer 0 that is used for millis()":

SIGNAL(TIMER0_COMPB_vect) 
{  
  computeEncoder();
}

I write in case that was your intent and it got dropped somewhere in an editing mistake. With both ISRs it seems like I am getting 2000 Hz attention to the pins, but I have not verified this yet until I figure out how. To.

a7

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