Hector Martin wrote: > But for a 255-value PWM you need *255* cycles, Not quite. A *256* value PWM needs 255 cycles. The kind of off by one issue you mention is common to most quantized dithering schemes. ***************************************************************** 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