View Single Post
  #6   Spotlight this post!  
Unread 14-02-2006, 15:29
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,854
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: Interrupt Maximum before the RED light DEATH?

It does depend on your code of course and the worst case time it takes you to execute a fast loop including your maximum # of interrupts. Unless the slow loop is really bloated I doubt you'd be bound by that time, but if your time to complete a fast loop approaches slow loop speed you'll be in trouble.

When the slow loop becomes impacted you get the Red Light of Death.

You can also get an approximation by counting the number of fast loops per second with minimal interrupts, then running your interrupts at max and comparing, both times looking for the worst case.
I think we measured the streamlined camera code at a worst case of 65,000 loops per second without other interrupts.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 14-02-2006 at 15:37.