Skip to content

using the millis() timer0 alternative #8

Description

@alto777

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions