Try this;
Counter of course is always going to change every 5 seconds or so, but Revs shouldn't until you have pulses in on RA4.Code:Mainloop: TMR0 = 0 ' clear count before each pass PAUSE 5000 ' give it some time to count pulses Revs = TMR0 ' get TMR0 count Counter = Counter + 1 LCDOUT $FE,1,"Counter1: ", DEC Counter LCDOUT $FE,$C0, "Revs: ", DEC Revs GOTO Mainloop
Timer0 will automatically count pulses. You don't need to check any regs, bits, etc, just read it & clear it as required.




Bookmarks