Padu wrote: > Thanks for the example Bob, I don't know why but I had in my mind > that the CCP module didn't have enough resolution for this type of > signal. The CCP module can capture edges to instruction clock resolution. With a 18F the instruction period is 100nS, meaning it can resolve the 1-2mS pulse width to 1 part in 5000. Other sources of error probably overshadow that by a large margin. ****************************************************************** Embed Inc, Littleton Massachusetts, (978) 742-9014. #1 PIC consultant in 2004 program year. http://www.embedinc.com/products -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist