do you have any documentation of the settings and what to change for different freq and duty cycles
https://www.picbasic.co.uk/forum/showthread.php/4994
https://www.picbasic.co.uk/forum/showthread.php/26615
or use MCC

RICHARD I need to change porta4 hwpw to another port i tried ccp3con and ccpr3l changed the ccptmrs0 but nothing works I have something else on a4 on the boards im using
if you need porta.4 for another purpose then you cannot use CCP5

post the code you have tried