Hi,
Solution is evident:
pulsin measures a pulse, beginning with the Low to high transition ... in your example, the signal is already high when Pulsin begins ...
No L>H transition ... Pulsin = 0 !!! ( cause overflow ...)
The solution : Use RC Time command and add to the result the time needed by the test on RFCOD ...
Alain
PS: take care to carefully verify the PULSIN_MAX define ...
Bookmarks