could it be a ADCON1 issue, maybe its not justifing? are you using a crystal or internal osc? throwing ideas here.
Do you have to set CCP1CON
CCP1CON = %00??1111
see page 81
oh and you need to modify TRISB = %01000010 to TRISB = %01000011
see page 82, your pwm port must be configured as a input port.
Bookmarks