View Single Post
  #3   Spotlight this post!  
Unread 21-08-2006, 21:46
Noah Kleinberg Noah Kleinberg is offline
Registered User
FRC #0395 (2TrainRobotics)
Team Role: Driver
 
Join Date: Jan 2006
Rookie Year: 2006
Location: New York
Posts: 196
Noah Kleinberg is a splendid one to beholdNoah Kleinberg is a splendid one to beholdNoah Kleinberg is a splendid one to beholdNoah Kleinberg is a splendid one to beholdNoah Kleinberg is a splendid one to beholdNoah Kleinberg is a splendid one to behold
Send a message via AIM to Noah Kleinberg
Re: Reading an encoder with interrupts

Quote:
Originally Posted by GlennGraham
In the interrupt handler, EncoderDataFlag.bit1 is set but I don't see anywhere that it is cleared. The comment says it indicates that data is ready to be read.
I haven't used the code or encoder that you're talking about, but it sounds like the bit is used as a signal to the encoder or interrupt service routine that you are done looking at the last signal from the encoder and are ready to look at a new one. This would be cleared by the firmware the next time that the handler is called, similarly to the way that the interrupt flag works.
Reply With Quote