Hi, "Picstar"

Endly knowing what you try to do ...

the answer is quite simple : use TMR1 and the CCPx module in capture mode for each rising edge ( see relevant Pic datasheet chapter )...

that will trigger an interrupt for each pulse of your speedo ... or simply raise a " data ready " flag ...

just yours to read the CCPR1 registers and store the result elsewhere ...

BTW ... I do not remember having seen ONE compiler offering the " capture " function already cooked ... Flowcode included !!!

Alain