Eagle timers counter Example
From Manuals
(Difference between revisions)
Support (Talk | contribs)
(Created page with '=Using Timers as Counters (timers)= ==Compatibility [http://www.micromint.com/index.php/SBC/eagle-50.html Eagle 50], [http://www.micromint.com/index.php/SBC/eagle-50.html 50E], […')
Newer edit →
(Created page with '=Using Timers as Counters (timers)= ==Compatibility [http://www.micromint.com/index.php/SBC/eagle-50.html Eagle 50], [http://www.micromint.com/index.php/SBC/eagle-50.html 50E], […')
Newer edit →
Revision as of 13:28, 11 April 2011
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 PB1. Every 1000 times a falling edge occurs on PB1 an interrupt occurs to increment the count.Timer 0B is set up to count falling edges from pressing the User's button. Everytime the User's pushbutton is pressed an interrupt occurs to update the count. The latest counts are displayed through COM1.
