Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
In the latest version of MPASM the __CONFIG directive has been deprecated for PIC18 devices. MPASM now expects to see CONFIG followed by the list of options.
The default config fuse directive in your PBP 18F device header files still use the old __CONFIG approach. It will still work (until Microchip makes it fail), but MPASM issues the warning to remind us to use the new CONFIG directive.
This way;
__CONFIG _CONFIG1H, _OSCS_OFF_1H & _XT_OSC_1H
__CONFIG _CONFIG2H, _WDT_ON_2H & _WDTPS_128_2H
__CONFIG _CONFIG4L, _LVP_OFF_4L
Should now look like this;
CONFIG OSCS=OFF,OSC=XT,WDT=ON,WDTPS=128,LVP=OFF
Look in your MPLAB installation directory at device specific P18Fxxx.INC header files for fuse options available for the 18F part you're using.
It's just a warning for now, and the old method still works, but I wouldn't be surprised if a new version of MPASM pops up one day and starts rejecting the older __CONFIG directive.
Do you mean to say that
Q1 this statements should be copied into the code or the .inc file??
Q2 and both works fine with mpasm??
This way;
__CONFIG _CONFIG1H, _OSCS_OFF_1H & _XT_OSC_1H
__CONFIG _CONFIG2H, _WDT_ON_2H & _WDTPS_128_2H
__CONFIG _CONFIG4L, _LVP_OFF_4L
Should now look like this;
CONFIG OSCS=OFF,OSC=XT,WDT=ON,WDTPS=128,LVP=OFF
Bookmarks