True, I find the speed is fine too, just I seem to miss the first pulse occasionally. My 88 bit frame only come around every 48 seconds for about 100mS, so there is a long wait for a new frame and the PulsIn times out many many times while waiting.
I guess I'd best assume then that the remaining program loop could be overlapping the start of the first pulse occasionally and do some other methods to rectify it.
One thing I did think of is to actually increase the Pulsin timeout which will reduce the percentage of time spent in the rest of the loop, meaning the chances of a good first pulse leading edge go up I think.
Martin
Bookmarks