Bruce, thanks for the idea. Your idea would need some adjusting to make it run in the background in my application, but it has got me to thinking about using the timer as a counter and setting it just a couple of counts from overflowing and then my program will need to see it overflow because of the transitions or else jump to a fault routine. I am just used to the smooth operation of timers and counters in PLC programming and the PIC timers just seem awkward to use.
Bookmarks