Quote:
Originally Posted by joshyboy9987
So, this is my first year using MPLab instead of EasyC and I was wondering if there was a way to access a hardware timer at all. I know it can be done, cuz EasyC has a function to do it, but I couldn't find anything on the forums.
|
It's relatively easy. Which version of the code are you using (Kevin's new code, or the 2007 default code)?
The basics are in
http://www.ifirobotics.com/docs/time...004-jan-14.pdf
But basically you setup the timer, create an ISR that updates some timer variables, and a set of functions that let you read the timer values.