Quote Originally Posted by Melanie View Post
naga

Go back to your post #17

In it you are changing a variable Vduty. This part is good.

You then call a subroutine HpwmSet. Explain to me how in your code Vduty changes the HPWM setting?

Go to the PICBASIC manual, look up HPWM and how it is used, an then install Vduty correctly so it actually changes your PWM setting.
@Melanie, Should i change " HPWM 1,25,1000" TO " HPWM 1,127,1000" ? as per the PBPManual. And please let me know if any other value needs to be changed.. Actaully i'll have to finish this project as soon as possible..

Thank you verymuch..