for pbp3
#CONFIG
__config _CONFIG1, _HS_OSC & _WDT_ON & _PWRTE_OFF & _MCLRE_ON & _CP_OFF & _CPD_OFF & _BOR_ON & _IESO_ON & _FCMEN_ON & _LVP_OFF & _DEBUG_OFF
__config _CONFIG2, _BOR40V & _WRT_OFF
#ENDCONFIG
for pbp 2.6
ASM
__config _CONFIG1, _HS_OSC & _WDT_OFF & _PWRTE_ON & _MCLRE_OFF & _CP_OFF & _CPD_OFF & _BOR_ON & _IESO_ON & _FCMEN_ON & _LVP_OFF & _DEBUG_OFF
__config _CONFIG2, _BOR40V & _WRT_OFF
ENDASM
I tried #CONFIG/#ENDCONFIG and #config/#endconfig and both work therefore its not case sensitive
this is just wrong for a PIC16F886
ps#config
__config1 _FOSC_HS & _WDTE_OFF & _PWRTE_ON & _MCLRE_OFF & _CP_OFF & _CPD_OFF & _BOREN_ON & _IESO_ON & _FCMEN_ON & _LVP_OFF & _WRT_OFF
#endconfig
I'm surprised it can compile
Bookmarks