Thanks Steve,

There was also the variable in the middle of the code which states:

x = 5 to 7

I have changed this to x = 0 to 2 along with your recommendation of

ledPWM:
for y = 0 to 2
pwm PORTC.0[y], rbgarray[y], 1
next

However, still no ouptut at all. Is there anything else set, which says the Output is on PORTB and not PORTC as required.

Cheers.

Steve