DEFINE PULSEIN_MAX counts will specify the time to wait.
Thanks rmteo,PULSIN normally waits a maximum of 65535 counts before it determines
there is no pulse.
I kind of guessed that from the length of time it took, but I didn't find it in my search. The "help" file in MCS didn't really go there.
Dave,
Bingo!
"DEFINE PULSEIN_MAX counts" is exactly what I needed. I only need to look for 500 counts, so 65K+ was a bit much.
The DEFINE sped my loop up a LOT and works great. A bit embarrassed I didn't find it on my own. Thanks to both you guys for pulling the blindfold off .![]()
steve
Bookmarks