Hi everyone,
I need to measure the length of a pulse from a hall sensor that outputs only 2.5V
rather than using a comparator or amp to increase the output to logic level 1, I wondered if I could use "analog in" and a byte variable to input PULSIN as per code.
I need to measure the length of a pulse from a hall sensor that outputs only 2.5V
rather than using a comparator or amp to increase the output to logic level 1, I wondered if I could use "analog in" and a byte variable to input PULSIN as per code.
Code:
main:
readadc 1,b0
if b0>10 then let b1=1 else let b1=0 endif
pulsin b1,1,w1
goto main