Hi Melanie,
I agree that the Watch Dog needs to be disabled. I used this line which I thought should do it:
@CONFIG.2 = 0 ' 0=Watch Dog Off
Also tried this too
@ CONFIG.2 = 0 ' 0=Watch Dog Off
Maybe the order or location which I have the line is not correct? Or if I try disabling the watch dog using either of these two lines instead of @CONFIG.2=0, I get an 'Illegal Opcode (WDT_OFF)' error from MPASM.
@DEVICE WDT_OFF => Illegal Opcode (WDT_OFF)
@ DEVICE WDT_OFF => Illegal Opcode (WDT_OFF)
Bookmarks