Hi,
You won't get a full 10bit resolution at that frequency but it'll be pretty close. But you do
Code:
Duty VAR WORD
Duty = 500  'Or whatever

CCP1CON.4 = Duty.0
CCP1CON.5 = Duty.1
CCPR1L = (Duty >> 2)
/Henrik.