which thing doesn't work

no output on cp1 (portc.5) ?
or
adcin 6 yields an incorrect result ?

can I suggest try
duty1 = 128
hpwm 1 , duty1, 2000

is there an output ?


and

adcin 6, adval

debug #adval

is there a realistic result ?