Ok thanks Richard, I will try.
For now I have just been setting duty cycle 100% and then using tris for the pin to toggle a transistor base.

Quote Originally Posted by richard View Post
ccpxcon = 0
would do it

although tris bit for cpx would remain cleared.
Thing works BTW