Quote Originally Posted by Darrel Taylor View Post
The maximum dutycycle value is (PR2 + 1) * 4 because of the CCPxCON.4,5 bits.
(124 + 1) * 4 = 500
So 500 is the "Always On" point (100%), and anything above that is 100% too.
Is that calculation dependent somehow on the prescaler? I'd like to programmatically determine the max duty cycle available to me with PR2=249 and prescaler of 1:1 (16Mhz OSC, 16,000Hz freq). With Mister E's MultiCalc it shows me '1000' is the max duty cycle for these paramters, which also works with (PR2 + 1)*4 where PR2 = 249 but is that always the rule?