I use timer with input capture mode, to be able to measure time period of an optical encoder pulse. I experienced that measured value rarely is twice as the expected one. I tried with different timer prescaler values, but same problem remained. Suspe...