Thanks for the reply Skimask.

Here is a copy of the code:

main:

HPWM 1,127,245

HPWM 2,127,245

HPWM 3,127,245

HPWM 4,127,245

HPWM 5,127,245

GOTO main

When using a 5v supply, this produces 2.5v on CCP channels 1 and 2, and 0v on CCP channels 3,4 and 5 (which are on port G).

I also tried adding TRISG = 0 at the start, to force CCP 3,4 & 5 to outputs but nothing changed.

Andy