16-bit timer macros (timer16.bas)

Coding and general discussion relating to user created compiler modules

Moderators: David Barker, Jerry Messina

Post Reply
Jerry Messina
Swordfish Developer
Posts: 1246
Joined: Fri Jan 30, 2009 6:27 pm
Location: US

16-bit timer macros (timer16.bas)

Post by Jerry Messina » Sun Apr 26, 2015 2:58 pm

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.

Post Reply