Alain,

I was just wondering why is it that some use:

PULSIN, input, 1, Highpart
PULSIN, input, 0, Lowpart

and others:

PULSIN, input, 1, Highpart
RCTIME , input,0, lowpart

Is it just a matter of preference or is there some higher
concept advantage to one of these?

BTW, when you said that the offset @ 20MHz is 4 units,
you ment 4 x 200ns, right? Or am I mistaking here?

I still haven't had time to try this out but I guess the
following code should work:

Loop:

PULSIN, input, 1, Highpart
PULSIN, input, 0, Lowpart

PULSE = (Highpart + Lowpart + Offset) * 10 'pulse width in us

GOTO Loop