Quote Originally Posted by mister_e View Post
The best way to know is to try, that for sure

Your code would work... but you're not going to have a 60 minutes ramp up but ~32 minutes instead. Remove the
Code:
DutyCycle=DutyCycle+1
line and you'll have a 64 minutes ramp-up.

Wanna make sure the PIN stay high? No big deal,

CCP1CON=0
HIGH PORTC.2

And nope, you can't use an alternative PIN alone, check the datasheet under CCP1CON section (pdf p126) & Enhanced Mode p134.
Thanks for the quick reply, so is this the right placing of your suggested code...

DutyCycle var byte
CCP1CON=0
TRISC= $00000000

For DutyCycle=0 to 255
HPWM 1,DutyCycle,1250
Pause 15000
Next

HIGH PORTC.2

End