Michael Watterson wrote: > So each pin that drives a coil has 2 x 16 bit software counters, one > for current position on 8Hz cycle 16 bits is not likely enough given the slow output frequency and therefore the small angle step each PWM pulse. My first knee jerk reaction is to use another word for the fraction. That will provide much more frequency resolution, although the OP didn't say what the frequency accuracy had to be. ******************************************************************** Embed Inc, Littleton Massachusetts, http://www.embedinc.com/products (978) 742-9014. Gold level PIC consultants since 2000. --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .