James has put the variable PWM project up as a page http://www.piclist.com/techref/microchip/HV_PWM_Proto.htm If I say so myself, there are methods and sub-routines that would be useful in other code Not a completely finished work for my particular application - still undecided on final specs - but very nearly -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist