Page 1 of 1

16-bit timer macros (timer16.bas)

Posted: Sun Apr 26, 2015 2:58 pm
by Jerry Messina
Previously I've posted some macros for accessing the 16-bit timers of the PIC18. I've updated the routines to make them usable with more devices and posted them on the wiki page: Timer16

I added a new routine to add a value to a running timer. It's not as quick as I'd like, but it should work for all cases. You can do better if you have some knowledge as to the values you're dealing with.