Hi,
If you want to set the CONFIG fuses in YOUR program they can't be set in the .inc file TOO, which they are by default. In order to be able to set them in YOUR you need to take them out of the .inc file.
Commenting out means convert the lines to comments so that they don't get compiled/assembled. You do that with a semicolon, like this:
Code:
LIST
LIST p = 18F4220, r = dec, w = -302, f = inhx32
INCLUDE "P18F4220.INC" ; MPASM Header
; __CONFIG _CONFIG1H, _XT_OSC_1H
; __CONFIG _CONFIG2L, _BOR_ON_2L & _BORV_20_2L & _PWRT_ON_2L
; __CONFIG _CONFIG2H, _WDT_ON_2H & _WDTPS_128_2H
; __CONFIG _CONFIG3H, _MCLRE_ON_3H & _CCP2MX_ON_3H
; __CONFIG _CONFIG4L, _STVR_ON_4L & _LVP_OFF_4L & _DEBUG_OFF_4L
See the semicolon at the beginning of the lines - this is effectively the same as deleting those lines from the file but "commenting them out" instead allows you to easily revert back if need be.
Here's what happens. When you compile a program the compiler automatically adds the .inc file that is located in the PBP folder. The code in this file automatically adds the .inc file located in the MPASM folder.
Bookmarks