@ 4MHz, PULSIN has 10µs resolution.
If you need to capture 240msec, then you would have:
I did something similar and left PULSIN by side - I use TMR1 instead. Have a look to the "code" section here http://home.citycable.ch/flotulopex/...I_Frames_e.htmCode:if (pulse < 22) or (pulse > 26) then start
HTH
Bookmarks