Hi,

Thanks for the info regarding the DEFINE OSCCAL_1K 1
Adding that to the program code has solved my little problem.

I have found referances about this define in the pbp manual, for some reason I thought that DEFINE OSC 4mhz was correct.

I assume that DEFINE OSCCAL_1K 1 means

org 0
movwf OSCCAL

Thanks for your time........Nick