yokohama
Member level 3
Hi,
The definition of the "Pulsein" instruction in bascom help is:
Pulsein var , PINX , PIN , STATE
var: A word variable that is assigned with the result
PINX: A PIN register like PIND
PIN: The pin number(0-7) to get the pulse time of
STATE: May be 0 or 1. 0 means sample 0 to 1 transition and 1 means sample 1 to 0 transition.
In another pdf doc (in french) I found the another explanation of the last parameter (STATE).
Well, I want to know if when I put 0 on STATE I sample the high level (1) or the low level (0) of the input signal ?.
The definition of the "Pulsein" instruction in bascom help is:
Pulsein var , PINX , PIN , STATE
var: A word variable that is assigned with the result
PINX: A PIN register like PIND
PIN: The pin number(0-7) to get the pulse time of
STATE: May be 0 or 1. 0 means sample 0 to 1 transition and 1 means sample 1 to 0 transition.
In another pdf doc (in french) I found the another explanation of the last parameter (STATE).
Well, I want to know if when I put 0 on STATE I sample the high level (1) or the low level (0) of the input signal ?.