Yes it works now, thank you Alain
Changed the ADC resolution to match with HPWM and
I forgot to put PORTB = 0 to clear the PORTB

As for the ADC & HPWM , why is 8 bit better than 10 bit ?

Johan