Sorry for the persistence, but why doesn't anyone ever use timer1 input capture for this type of thing ?
just to give some reasons:
- in software you can use (almost) any pin
- there are far more SW examples how to do the counting (good bad and ugly)
- not everyone understand in detail how to program the timers as counter ( few examples)
- not everyone oversees the consequences of using timers
- timer0 - 8 bit, used for clock
- timer1 - 16 bit, free (servo lib?)
- timer2 - 8 bit, free?
maybe you can post a reusable example how to do use Timer1 as counter?
Best I found sofar is : - Arduino Playground - HomePage -