From your version my suspicion is focused on my missing the DEFINE NO_CLRWDT 1
your suspicion is totally unfounded . i assumed you had a "valid" reason for not using the WDT
[DEFINE NO_CLRWDT 1 ] simply stops the compiler adding unnecessary CLRWDT commands to the resulting code
and potentially wasting code space .

to get the best possible results from the forum you need to post the actual code you are using {in code tags}
not some hacked up version full of typo's .


when it comes to programing rubbish in ..... rubbish out , and just 1 bit can do it