Christoph Klein wrote: > I would like to measure time intervals which are presented to > a Pic16C84 (possibly) as short TTL-compatible spikes. > Supposing that measuring the interval would be the pic's only task: > > What would be the best time resolution I could expect using a > 4 MHz pic with a Xtal? > > And how about accuracy? > > Is there a chance to measure with a resolution in the msec range or > isn't there? I haven't got a clue ... Christoph: Millisecond resolution is no problem whatsoever... In fact, you can measure the intervals to a resolution of better then 5 microseconds at 4 MHz, with fewer than a dozen lines of code. Accuracy will be dependent upon the precision and stability of your crystal, but even the cheapest crystals will give you better than 0.01% accuracy. -Andy === Andrew Warren - fastfwd@ix.netcom.com === Fast Forward Engineering - Vista, California === http://www.geocities.com/SiliconValley/2499