The problem we have here is that you're using Assembler and this is a PICBasic forum... if you had PICBasic, you could simply use the COUNT command and count the number of pulses in a set perod...