SEARCH
TOOLBOX
LANGUAGES
modified on 11 April 2011 at 13:28 ••• 20,560 views

Eagle timers counter Example

From Manuals

Revision as of 13:28, 11 April 2011 by Support (Talk | contribs)
(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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.