If the chip only has one config word, you don't specify the word's name because it doesn't have one.
For chips with more than one config word, you must specify the word with _CONFIG1 or _CONFIG2 etc.
If you like commenting everthing really well, you can do the configs like this ...
Code:
#if __PROCESSOR__ = "16F1828"
#config
CFG = _FOSC_INTOSC ; Oscillator
CFG=CFG& _WDTE_ON ; Watch Dog Timer
CFG=CFG& _PWRTE_OFF ; Power-on Timer
CFG=CFG& _MCLRE_OFF ; Master Clear Reset
CFG=CFG& _CP_ON ; Code Protect
CFG=CFG& _CPD_OFF ; EEPROM Data Protect
CFG=CFG& _BOREN_OFF ; Brown-out Detect
CFG=CFG& _CLKOUTEN_OFF ; FOSC/4 Output
CFG=CFG& _IESO_OFF ; Internal External Switchover
CFG=CFG& _FCMEN_OFF ; Fail-Safe Clock Monitor
__CONFIG _CONFIG1, CFG
CFG = _WRT_OFF ; Flash table writes
CFG=CFG& _PLLEN_OFF ; 4xPLL OSC multiplier
CFG=CFG& _STVREN_OFF ; Stack Over/Underflow
CFG=CFG& _BORV_25 ; Brown-out voltage
CFG=CFG& _LVP_OFF ; Low Voltage Programming
__CONFIG _CONFIG2, CFG
#endconfig
#else
#IF __PROCESSOR__ = "16F690"
#config
CFG = _INTRC_OSC_NOCLKOUT ; Oscillator
CFG=CFG& _WDT_ON ; Watch Dog Timer
CFG=CFG& _PWRTE_OFF ; Power-on Timer
CFG=CFG& _MCLRE_OFF ; Master Clear Reset
CFG=CFG& _CP_ON ; Code Protect
CFG=CFG& _CPD_OFF ; EEPROM Data Protect
CFG=CFG& _BOD_OFF ; Brown-out Detect
CFG=CFG& _IESO_OFF ; Internal External Switchover
CFG=CFG& _FCMEN_OFF ; Fail-Safe Clock Monitor
__CONFIG CFG
#endconfig
#else
#error "Program does not support " + __PROCESSOR__
#endif
#endif
#msg "compiling for target " + __PROCESSOR__
Bookmarks