Hi Darrel
The reason I used PortD.7 was because the data sheet said the pic18F458 has five PWM pins and Portd.7 is one of them.

So anyway what does the one stand for in HPWM 1,127,5600. I assumed it stood for a pin but I put an 8 in place of the one and the file still assembled in microcode studios.

What im doing with this is I need to PWM channels running at the same time.
I'm running 2 PWM motors from a kit I got. HPWM command I hope will work since the frequenct will stay the same but not the duty cyle. What else can I do.
Thanks