Eagle timers counter Example
From Manuals
Using Timers as Counters (timers)
Compatibility Eagle 50, 50E, 100
This example application demonstrates the use of timers to count falling edges.
Timer 0A is set up to count falling edges on CCP0 (PB0). Every 1000 times a falling edge occurs on CCP0 an interrupt occurs to increment the count. Timer 0B is set up to count falling edges from pressing the User button (CCP1). Everytime the User pushbutton is pressed an interrupt occurs to update the count. The latest counts are displayed through COM1.

