Hi All,
Up till now I have used the Configure>Configuration Bits to set up the PIC, and have used some of the Config directives in the smaller (8/16 pin) devices.
I'm trying to use the assembler config directive to setup the config bits for a PIC16F886 chip, but altough the assembler reports no errors, I don't think that the configuration bits are getting set correctly as not all chips are setting the config bits, and I have to revert to the Configure>Configuration Bits method to get a reliable device.
This is the syntax I am using .... where am I going wrong please.
__CONFIG1 = _INTRC_OSC_NOCLKOUT
__CONFIG1 = _WDT_OFF
etc.
I suspect that the assembler is seeing the __CONFIG1 as a label, rather than an assembler directive ....
Any help would be appreciated.
fenderman
Up till now I have used the Configure>Configuration Bits to set up the PIC, and have used some of the Config directives in the smaller (8/16 pin) devices.
I'm trying to use the assembler config directive to setup the config bits for a PIC16F886 chip, but altough the assembler reports no errors, I don't think that the configuration bits are getting set correctly as not all chips are setting the config bits, and I have to revert to the Configure>Configuration Bits method to get a reliable device.
This is the syntax I am using .... where am I going wrong please.
__CONFIG1 = _INTRC_OSC_NOCLKOUT
__CONFIG1 = _WDT_OFF
etc.
I suspect that the assembler is seeing the __CONFIG1 as a label, rather than an assembler directive ....
Any help would be appreciated.
fenderman