View Single Post
  #5   Spotlight this post!  
Unread 02-05-2007, 21:26
Qbranch Qbranch is offline
wow college goes fast.
AKA: Alex
FRC #1024 (Kil-A-Bytes)
Team Role: Alumni
 
Join Date: Apr 2006
Rookie Year: 2006
Location: Indianapolis
Posts: 1,174
Qbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond repute
Re: quick/stupid question

Quick Side Note: One nice thing about the user_routines_fast() function is that it makes a great %load monitor on the processor while you are writing your code if you have an oscilloscope. Just set one of the digital IO pins as an output, and then not (!) it every time you go through the user_routines_fast() loop. any blocks of timing discrepancies in the frequency that gets outputted are places where the processor was busy, so by using your oscilloscope you can figure how much %load your processor has... the more stable high frequency, the lower %load, the less stable frequency, the higher %load.

this measurement can be made most accurately with a digital storage oscilloscope (use the cursors) but can also be done on a normal oscilloscope with a ruler or just an eyeball.

if you need any help on this methodology, just let me know.

-q
__________________
Electrical Engineer Illini
1024 | Programmer '06, '07, '08 | Driver '08