Code:
#CONFIG
cfg1 = _INTRC_IO               ; Internal Oscillator
cfg1&= _CP_OFF                 ; Code protection OFF
cfg1&= _CCP1_RB0               ; CCP1 function on RB0
cfg1&= _DEBUG_OFF              ; In-Circuit Debugger Disabled
cfg1&= _WRT_PROTECT_OFF        ; Flash Program Memory Write Enable bits
cfg1&= _CPD_OFF                ; Data EE Memory Code Protection Disabled
cfg1&= _LVP_OFF                ; Low Voltage Programming Disabled
cfg1&= _BODEN_OFF              ; Brown-out Reset Enable bit
cfg1&= _MCLR_OFF               ; Master Clear Reset Disabled
cfg1&= _PWRTE_ON               ; Power-up Timer Enabled
cfg1&= _WDT_OFF                ; Watch-Dog Timer Disabled
   __CONFIG    _CONFIG1, cfg1  ; -- Set config word 1

cfg2 = _IESO_OFF               ; Internal External Switchover Disabled
cfg2&= _FCMEN_OFF              ; Fail-Safe Clock Monitor Disabled
   __CONFIG    _CONFIG2, cfg2  ; -- Set config word 2 
#ENDCONFIG