View Single Post
  #4   Spotlight this post!  
Unread 22-08-2006, 14:19
foobert foobert is offline
Registered User
no team
 
Join Date: May 2005
Location: oakland, ca
Posts: 87
foobert is a jewel in the roughfoobert is a jewel in the roughfoobert is a jewel in the rough
Re: Reading an encoder with interrupts

Quote:
Originally Posted by GlennGraham
Would you mind explaining how the encoder interrupt handler works with the timer2 interrupt handler?
the timer is used to determine the amount of time between encoder interrupts so you can determine the speed at which your bot is progressing.

the timer interrupt occurs when the timer overflows, so that you will know if and how many times that has occurred between encoder interrupts.

can't look at the code right now, but will if i have a minute later.
Reply With Quote