Hi,

According to you when your CCP pin is floating (there is no load connected) you are experiencing the same problem. This perhaps indicates that your HPWM is not playing anything with the VDD line as this is Vref as well (I assume). A schematic post (with layout if possible) would be appreciated. By that time try playing with the sampling frequency (use the RC clock) and a bit more time for the sampling.