Hi, Patrice
The problem is Pulsin needs a leading and a falling edge to work ... so 0 and 100 % do not trigger it ...
the way is test your input as soon as pulsin sends a zero ... ( after timeout, tho )
suppose pulse High :
Code:
Pulsin Portpin, 1 , result
IF result = 0 THEN
IF PortPin THEN
LCDOUT $FE,2 " Pulse > 900 "
ELSE
LCDOUT $FE,2 " No Pulse "
ENDIF
ENDIF
no need to tweak the Pulsin Command ... just use logics !
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 " !!!
*****************************************
Bookmarks