Hi Scott,
MPASM doesn't like it when you have config fuse settings in your source code,
and in the PBP device header file.
To insert them in your source you need to comment them out in 18F452.inc.
Open 18F452.INC in your PBP directory, comment these out, save it, then add
config fuse options in your source.
Code:
LIST p = 18F452, r = dec, w = -311, w = -230, f = inhx32
INCLUDE "P18F452.INC" ; MPASM Header
;__CONFIG _CONFIG1H, _OSCS_OFF_1H & _XT_OSC_1H
;__CONFIG _CONFIG2H, _WDT_ON_2H & _WDTPS_128_2H
;__CONFIG _CONFIG4L, _LVP_OFF_4L
Now you can drop them into your source;
Code:
asm
__CONFIG _CONFIG1H, _OSCS_OFF_1H & _XT_OSC_1H
__CONFIG _CONFIG2H, _WDT_ON_2H & _WDTPS_128_2H
__CONFIG _CONFIG4L, _LVP_OFF_4L
endasm
I'm not familiar with the device programmer you're using, but make sure you
always erase the target before trying to program it.
Bookmarks