Have you checked the output of your potentiometer? It works just as expected for me from 0 to 100% duty-cycle on an 18F4431 @ 20MHz.

Try the attached without making any changes.

PCPWM_AD.txt