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
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
Bookmarks