Come on naga, are kidding us?

Where in the
Code:
HPWM 1,25,1000 '4.00khz
are setting the duty?

Put the variable Vduty in the HPWM statement... (instead of number 25) like this:

HPWM 1,Vduty,1000 '4.00khz

Ioannis