View Single Post
  #3   Spotlight this post!  
Unread 13-01-2008, 16:06
kaszeta's Avatar
kaszeta kaszeta is offline
Registered User
FRC #0095 (Grasshoppers)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2002
Location: Lebanon, NH
Posts: 334
kaszeta is a glorious beacon of lightkaszeta is a glorious beacon of lightkaszeta is a glorious beacon of lightkaszeta is a glorious beacon of lightkaszeta is a glorious beacon of light
Re: Tracking Elapsed Time

Quote:
Originally Posted by Kevin Sevcik View Post
The PIC has several onboard hardware timers you could use for this, but I think just counting passes through the main loop would be much simpler for this application.
We've found using loop counters to be very inaccurate in the past. Writing a hardware timer isn't difficult. We've done it several ways, ranging from using someone else's pre-package code, to writing our own routines last year.

See http://www.chiefdelphi.com/forums/sh...ad.php?t=54948 for a previous discussion on the topic.