PDA

View Full Version : Config error.



Gerardo
- 15th December 2013, 00:51
Hi all, i have a problems when I try to use a external oscillator.
in the pic 12f683 I'm using the next instruction for use a HS oscillator:

@__CONFIG_ _HS_OSC;

and in the 16f88 I'm using this:

@ CONFIG CONFIG1, HS OSC;
@ CONFIG CONFIG2, IESO OFF & FCMEN OFF;

when I compile in both programs send an error message like this:

__CONFIG directives cannot be used with CONFIG directives

Someone know what i'm doing wrog?

a lot of Thanks.

Demon
- 15th December 2013, 04:14
Which version of PBP and assembler do you use?

Robert

Edit: http://www.picbasic.co.uk/forum/showthread.php?t=543

Gerardo
- 15th December 2013, 09:08
I'm using MPASM in microcode, I already correct that error, but now i have another problem, I use this instruction:

@ include "p16f88.inc"
@ __CONFIG _CONFIG1, _HS_OSC

@ include "p16f88.inc"
@ __CONFIG _CONFIG1, _HS_OSC;

in both programs apppear this error:

Overwritting previous adress contents (2007)

Do you know how to fix it?

Thanks

Archangel
- 15th December 2013, 09:20
I'm using MPASM in microcode, I already correct that error, but now i have another problem, I use this instruction:

@ include "p16f88.inc"
@ __CONFIG _CONFIG1, _HS_OSC

@ include "p16f88.inc"
@ __CONFIG _CONFIG1, _HS_OSC;

in both programs apppear this error:

Overwritting previous adress contents (2007)

Do you know how to fix it?

Thanks
Since you have already found this thread: http://www.picbasic.co.uk/forum/showthread.php?t=543
I would suggest you go back and read it, paying special attention to post 5