Thread: Using Timers
View Single Post
  #2   Spotlight this post!  
Unread 09-05-2005, 21:32
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,744
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Using Timers

IFI published a white paper last year on how to implement timers
http://www.ifirobotics.com/docs/time...004-jan-14.pdf
When the timer rolls over an interrupt is triggered, code execution is interrupted, and you can either perform your action (if it's VERY short), or set a flag your regular code can check whenever it's convenient to execute your special command.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle