Look if this code it works to measure two signals...
if portb.1=1 then
T1CON=1 " start timer
while portb.2 = 0
if portb.2=1 then
T1CON=0 " stop timer
var = TMR1 " my variable comes with the value of the time diference in microseconds
endif
wend
endif
Bookmarks