Code:
DEFINE PIC12F629, INTRC_OSC,INTRC_OSC_NOCLKOUT,WDT_ON,PWRT_ON,MCLR_OFF, BOD_ON , CPD_OFF , PROTECT_OFF
Define OSCCAL_1K 1 ' PIC12F675, Calibrate internal oscillator
DOES NOT WORK IN pbp3.xxx which is why I asked you, in fact it does not work in MPASM with ANY version of PBP as it is for the PB assembler which PBP3.xx does not support.
Code:
@ __CONFIG _INTRC_OSC_NOCLKOUT & _WDT_ON & _PWRTE_ON & _MCLRE_OFF & _BOR_OFF & _FCMEN_OFF & _IESO_OFF
above would be how to config MPASM in PBP versions earlier than PBP3.00
PBP 3.xx configs are done as in below:
Code:
#CONFIG
__CONFIG _INTRC_OSC_NOCLKOUT & _WDT_ON & _PWRTE_ON & _MCLRE_ON & _WDT_ON
;__config _CONFIG2, _WRT_OFF & _BOR40V
#ENDCONFIG
All that said you will need to make appropriate changes to what I posted for your particular chip, but that is how to format your configs
Bookmarks