Mike Singer wrote: > At 20 MHz PIC16F877A you have only 40 instructions per 10 microsecond > period. 50 actually. That should be enough to take a CPP capture interrupt and compute the time since the last one, but it won't leave much for any other processing. If I remember right, there is a prescaler on the capture events (don't have that manual in front of me here). With 4x that gives you a minimum of 200 instructions per event, which is quite a lot. ***************************************************************** Embed Inc, embedded system specialists in Littleton Massachusetts (978) 742-9014, http://www.embedinc.com _______________________________________________ http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist