View Full Version : Library timers
For the MCC18 compiler, there is a library file that has timer funcitons in it. The file is timers.h, under the h directory of the compiler. I'm wondering if anyone can tell me how to use the functions that are in that file and/or point me to documentation that would tell me how. I'd like to use them to back up our encoders, so that we can have some sort of safty mechanism if one of them stops functioning.
Thanks in advance. :)
FotoPlasma
12-02-2004, 16:48
On Microchip's webpage for C18, there is an available PDF file named "C18 Libraries". In it, all of the Timers and their various functions are explained in very nice detail.
Hope this helps.
Mark McLeod
12-02-2004, 16:51
For the MCC18 compiler, there is a library file that has timer funcitons in it. The file is timers.h, under the h directory of the compiler. I'm wondering if anyone can tell me how to use the functions that are in that file and/or point me to documentation that would tell me how. I'd like to use them to back up our encoders, so that we can have some sort of safty mechanism if one of them stops functioning.
Thanks in advance. :)
In addition to the Microchip libraries there are also examples at
http://www.innovationfirst.com/FIRSTRobotics/white_papers.htm
and at Kevin Watson's site
http://kevin.org/frc/
edu_clock.zip (http://kevin.org/frc/edu_clock.zip) -- Example code that builds upon the code found in interrupts.zip to create a real-time clock that can be easilly modified to create sophisticated sequencers and state machines. Updated 12-22-03.
edu_clock 2.zip (http://kevin.org/frc/edu_clock2.zip) -- Modified version of clock demo that extends the elapsed time output to include tenths of seconds. Updated 12-22-03.
Thanks guys, that will help. :) Didn't know what to pass in to them, exactly. Couldn't tell from the prototypes. :)
vBulletin® v3.6.4, Copyright ©2000-2017, Jelsoft Enterprises Ltd.