Quote:
|
Originally Posted by IFI
Yes, all five timers can be available for you to use in your code.
Timers 1-4 are available by default.
Timer 0, however, is used by the Generate_Pwms() function if you use ifi_library.lib or FRC_library.lib. These libraries use Timer0 to synchronize any PWM outputs generated by the User processor to make sure they avoid any SPI interrupts.
If you want to use Timer0 yourself, then you can replace ifi_library.lib/FRC_library.lib with ifi_alltimers.lib/FRC_alltimers.lib in the project.
A white paper with an example of using a timer can be found here,
|
You can't use Timer0 because Generate_Pwms() is screwing it up according to the FAQ
here . You are probably getting the same counts every cycle (like I was when I was trying to tach my shooter). Use a different timer. I need to sleep now, since I have robots to fix/inspect in the morning