|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Newbie here. I need some help on how to program timers for the Frc.
|
|
#2
|
||||
|
||||
|
Re: How do you program timers?
Quote:
so if we use 26ms as our reference, 10 sec = approx. .026s * 385 or 385 program loops.... If you need code examples just ask Cheers, Joel |
|
#3
|
|||
|
|||
|
Re: How do you program timers?
Thanks alot, I could use some examples and does it work for the autonomus mode?
|
|
#4
|
||||
|
||||
|
Re: How do you program timers?
Quote:
Read MPLAB C18 C COMPILER LIBRARIES, section 2.9 to learn about Microchip's provided libraries for initializing, reading, and writing any of the four available timers on the PIC18F8520. Timer0 is used by IFI for some stuff, I believe, but other than that, you can interact with Timers 1-4, two of which are 16 bits wide, and the other two of which are 8 bits wide. If you have any questions, please feel free to ask. |
|
#5
|
||||
|
||||
|
Re: How do you program timers?
what exactly is the problem with this method?
|
|
#6
|
||||
|
||||
|
Re: How do you program timers?
Quote:
-Kevin |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| 2-week FIRST summer program @ WPI | ColleenShaver | General Forum | 20 | 31-05-2009 03:02 |
| Fried program slots? | Jeff Waegelin | Programming | 18 | 19-03-2003 18:08 |
| Ahh! Program trick confusing! | archiver | 2001 | 9 | 24-06-2002 02:26 |
| Credits for FIRST program. | archiver | 2000 | 6 | 24-06-2002 00:16 |
| An invitation for HS Juniors | archiver | 2000 | 0 | 23-06-2002 22:51 |