Hi, Vlad XX

Just add to that resetting TMR1 after each measurement - OR - use the free running timer method : read TMR1 @ each interrupt and calculate the difference between two measurements.

BUT ... I think the 628 has a " Capture " feature with the CCP Module that avoids to use PortB.0 interrupt ...

Alain