PIC18F252 with HPWM on C2... 20 Mhz osc.
Using A0 and A1 as analog input with internal 5 volt ref.
Fixed low Z analog input for testing.
All power is stable

HPWM 1,{0 to 255},17000

As I change the duty cycle of the HPWM my A to D results jump +/- 10 counts or so
If I delete the HPWM the A to D count is stable +/- 1 count
This holds true even when there is no load on the C2 PWM output.

What resources does the PB HPWM statement use that would affect the A to D function?

My code changes the HPWM duty cycle between each A to D read... If I do not change the HPWM duty cycle and hold it constant, The A to D result is stable.

Has anyone seen this on the 18F252?

tcbcats