Measuring Pulse Width

Sorry for the persistence, but why doesn't anyone ever use timer1 input capture for this type of thing ?

just to give some reasons:

  1. in software you can use (almost) any pin
  2. there are far more SW examples how to do the counting (good bad and ugly)
  3. not everyone understand in detail how to program the timers as counter ( few examples)
  4. 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 -