Ive just reprogrammed the PIC chip with my origional test code but setting the oscillator to HS and it works.

Thanx for your help