Yup, post your C18 pragma line and we will be able to help. seems to me that the CPUDIV is wrong... well i think...