yes for sure Here: goto here can be skip. just for testing purpose on a single task.

once you start the PWM it will run as long as you have power on the PIC.. DEUH!!!

For the HPWM statement... i always set register myself. Never tested this one. By the book it's suppose to work... or i'm missing something like a DEFINE something stuff.