> PWM period = [(PR) + 1] * 4 * TOSC * (TMR2 prescale value) > > The maximum is when PR and TMR2 prescaler are at their highest values: > Longest PWM Period = [1023 + 1] * 4 * [ 1 / 4,000,000 ] * 16 What is "PR" and where did that 1023 come from? The only thing that fits is the timer 2 period value, which can cause a divide by 256 at most, not 1024. ***************************************************************** Embed Inc, embedded system specialists in Littleton Massachusetts (978) 742-9014, http://www.embedinc.com -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.