Thread: GTS Counting
View Single Post
  #4   Spotlight this post!  
Unread 21-02-2006, 21:21
teh_r4v3 teh_r4v3 is offline
Registered User
AKA: Rajeev Sharma
FRC #1511 (Rolling Thunder)
Team Role: Student
 
Join Date: Feb 2006
Rookie Year: 2005
Location: Penfield, NY
Posts: 15
teh_r4v3 is on a distinguished road
Send a message via AIM to teh_r4v3
Re: GTS Counting

A timer can go down to 100ns if you want I believe... but at that point the interrupts will be taking over way too many processor cycles. Plus you would have to deal with lots of overflows if incrementing a variable if you keep on the timer at all times. Our team also decided to skip the direction sensing. For us, it wasn't worth it. Although the robot has already been shipped, if you want to tinker around in the fix-it window or at your first competition, I would recommend taking a look at the timer documentation in the PIC18 reference manual to see your prescaler options.
__________________
Rajeev Sharma

Team 1511 Rolling Thunder

hoojamomma?