PPA wrote: > Nevertheless, do you have any advice on IOC Do you mean "interrupt on change". If so, then it doesn't seem appropriate in this case. How do you expect to handle separate asynchronous interrupts from so many input pins without significant jitter, and therefore loss of resolution? ******************************************************************** Embed Inc, Littleton Massachusetts, http://www.embedinc.com/products (978) 742-9014. Gold level PIC consultants since 2000. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist