Go to Post Honesty and Integrity is the key to success. - team4384 [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 12-02-2004, 16:39
Ryan M. Ryan M. is offline
Programming User
FRC #1317 (Digital Fusion)
Team Role: Programmer
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Ohio
Posts: 1,508
Ryan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud of
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.
__________________

  #2   Spotlight this post!  
Unread 12-02-2004, 16:48
FotoPlasma FotoPlasma is offline
\: |
no team
 
Join Date: Jul 2001
Rookie Year: 2001
Location: San Jose
Posts: 1,900
FotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond repute
Send a message via AIM to FotoPlasma
Re: Library timers

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.
__________________
I played hacky sack with Andy Baker.

2001-2004: Team 258, The Sea Dawgs
2005: Team 1693, The Robo Lobos
  #3   Spotlight this post!  
Unread 12-02-2004, 16:51
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,722
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Library timers

Quote:
Originally Posted by Texan
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/FIRST...ite_papers.htm

and at Kevin Watson's site
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 -- Modified version of clock demo that extends the elapsed time output to include tenths of seconds. Updated 12-22-03.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
  #4   Spotlight this post!  
Unread 13-02-2004, 09:02
Ryan M. Ryan M. is offline
Programming User
FRC #1317 (Digital Fusion)
Team Role: Programmer
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Ohio
Posts: 1,508
Ryan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud of
Re: Library timers

Thanks guys, that will help. Didn't know what to pass in to them, exactly. Couldn't tell from the prototypes.
__________________

Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
The New and Improved FIRST CAD Library Ed Sparks General Forum 22 03-02-2007 18:03
How do you program timers? roberthan Programming 5 04-02-2004 02:18
math.h library mightywombat Programming 24 17-01-2004 13:10
Pneumatic Valves Posed in First Cad Library Ed Sparks Inventor 0 19-01-2003 17:33
Gear Box Parts Posted on First Cad Library Ed Sparks Inventor 1 10-01-2003 01:54


All times are GMT -5. The time now is 10:48.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi