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




Bookmarks