Hi, Santa ( de bois )

1) Just the usual gag with PORTA.4 ...

Did you place an external pullup resistor or something to drive the pin to HIGH state ???


2) I note 10 Mhz need a HS Osc ... ( but generally works with XT !!! )


3)
Code:
MAIN1:
        PULSIN PORTA.4,0,W1            ' Measure pulse-width in 4µS resolution
        GOTO MAIN
you'd better try

Code:
MAIN1:
        RCTIME PORTA.4,0,W1            ' Measure pulse-width in 4µS resolution
        GOTO MAIN

4) your Mathematics are really bad for INTEGERS using ...


W1 = W1 * 4 ' Convert µS to mS
W1 = (60000 / W1) ' Revs in 60 mS
W1 = W1 * 1000 ' Revs in 60 sec
you'd much better use DIV32 ...



That's the first hits ...

Alain