RobotC Timers


How did you guys create the timers on the RobotC firmware for the PIC?
I am trying to create a timer extension and I was wondering how you created them, I “hit the wall” with the 16-bit problem where the max number you could have was 32,767. I see that your Timers work a bit differently and would like to know how you have done it.

Stefan Andres Charsley

Hi Stefan,

We’re able to take advantage of certain things at the firmware level that you don’t have access to at the ROBOTC level. What you might consider is resetting your timer after 30,000, but keep track in a variable how many times 30,000 is reached.