Best way to time short bursts of 20KHz?

Started by silverfoxgmail May 29, 2009
What is the best way with a PIC 16F88 to time short bursts of 20KHz on an input line? I expect the bursts to be any one of 64 discrete time durations, where the shortest duration is 1.5 ms and the maximum duration is 127.5 ms. The possible durations are evenly spaced, which means that each duration differs from the next shortest or longest duration by 2 ms. I only need to know which of the 64 durations any given burst is, not the precise time of the duration. Is this feasible to do on a PIC 16F88, and if so what would be the best way to do it?