Question about the pulsin command. Lets sayd I do Pulsin portb.0,1,var. Does it have to see a low to high transition before it starts counting, and then it stops counting when it sees a high to low transition? Or does it start measuring as soon as it sees the pin is high until the high to low transition. I am just curious if I need something in my program to filter that out. Maybe put the pulsin comman in an if statement. something like:
If Portb.0=0 then
pulsin portb.0,1,var
end if
This way I only start the pulsin comman when my signal is at 0 assuring that I will capture the entire high signal. Any help would be appreciated. The manual doesn't seem to explain this well.