Got it! I had a DEFINE OSC 8 line in the programme with a 4Mhz resonator! Duh!! Only taken me about 4 hours to find.....!!

Adrian