Hi,
It measures one pulse only. Once it sees the "end" of that pulse the code continues on the line following the PULSIN statement.
/Henrik.
Hi,
It measures one pulse only. Once it sees the "end" of that pulse the code continues on the line following the PULSIN statement.
/Henrik.
The PULSIN command would measure the first complete high going, or low going pulse width it encounters, and then moves on to the next statement.
If there is no pulse (or is wider than the timeout define), a value of 0 would be assigned to the variable.
To answer the earlier question, it doesnt matter how many pulses are received during the time-out duration; only the first one would be measured, and the rest would be lost as the program moves on to the next line.
Regards,
Anand Dhuru
Hi,
Also think, when giving PULSIN_MAX value, it also will be the maximum time for PULSIN to wait for an incoming pulse ...
Alain
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
Thanks to all,
helped me very much to solve my problem!
Best Regards
Norbert
Bookmarks