View Single Post
  #8   Spotlight this post!  
Unread 12-03-2004, 22:41
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,855
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: Differences programming ADXRS150EBs to BEI Gyrochips?

The fast loop is variable because different things will happen each time through. Sometimes it'll be executing more instructions than average, other times fewer instructions than average. For instance, if you have a few interrupts from clock timers or external sources, or if an event happens that your code decides to run a longer calculation on. Any of the conditional statements you have in your code mean that sometimes you'll go down one branch and at other times you'll choose a different branch through the code. This doesn't even count the timing changes due to printfs or IFI library code. All these code variations add up to variable time through the fast loop. That's why most of us use timers or the more dependable slow loop.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle