Shawn,

Oops, 1 more thing.

Code:
DEFINE CCP2_REG PORTD 'Hpwm 2 pin port 
DEFINE CCP2_BIT 4     'Hpwm 2 pin bit
That let's the compiler know which pin to set as an output for HPWM. It defaults to PORTC.1
<br>