View Single Post
  #12   Spotlight this post!  
Unread 18-11-2003, 16:27
WizardOfAz's Avatar
WizardOfAz WizardOfAz is offline
Lead Mentor
AKA: Bill Bennett
FRC #1011 (CRUSH)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Tucson, AZ
Posts: 101
WizardOfAz will become famous soon enough
Send a message via AIM to WizardOfAz
using 18F8520 timers

That's a good suggestion, don't set up the timers, just try reading them to see if one is already running in a usable mode. My thought was to mask off most of the lower order bits to get ticks at a managable speed, then use a change in the remaining bits to increment a static counter that wouldn't overflow (or at least not too often). Ultimately, knowing how much time has passed since some particular event (like start of autonomous mode) is the goal, and that should accomplish it.

Thanks, Bill