the duty cycle is a 10 bit value at best for that chip, not all frequencies can have the full 10bit range available
it totally depends on choices made with regard to prescaler and period.
no matter what bit resolution is possible the CPRxL value is the upper 8 bits of the duty cycle word valueCCP1CON bit 4 and 5 are the lower two bits




Bookmarks