# ...Config lines for PIC16F88 (ASM)

Status
Not open for further replies.

#### Martel

##### New Member
Hi...

I've been writing in assembler for the PIC16F84 for a while and then, switched to C.

Now, i have to write an assembler code, but for the PIC16F88 rather than the F84.

The problem i have is that the PIC16F88 has TWO config registers (CONFIG1 and CONFIG2) instead of one for the F84. For the F84 the line is simply:

__CONFIG 0xFFF1 (example)

But for the F88, i can't do anything. I tried:

__CONFIG1 0xFFE4
__CONFIG2 0xFFFE

__CONFIG 1 0xFFE4
__CONFIG 2 0xFFFE

__CONFIG 1,0xFFE4
__CONFIG 2,0xFFFE

...etc... and MPASM always reported me errors !

Does anyone know how to correctly address those two CONFIG registers ?

Thanks !

Normand Martel

#### Martel

##### New Member
I found a way to work around with my CONFIG problem:

In PIC16F88.INC, i found those two lines:

_CONFIG1 EQU H'2007'
_CONFIG2 EQU H'2008'

So i tried:

__CONFIG _CONFIG1,0xFFE4
__CONFIG _CONFIG2,0xFFFE

w/o success. I don't know why !

I finally went with:

__CONFIG 0x2007,0xFFE4
__CONFIG 0x2008,0xFFFE

And my code finally assembled !

But i still don't know why the EQU lines are not recognized !

Normand Martel

#### Mike - K8LH

##### Well-Known Member
Here's the way I do it (no defines required as they're all in the 'include' file);

Code:
    __CONFIG  _CONFIG1, _DEBUG_OFF&_LVP_OFF&_BODEN_OFF&_WDT_OFF&_HS_OSC
__CONFIG  _CONFIG2, _IESO_OFF&_FCMEN_OFF

#### be80be

##### Well-Known Member
I like Mikes way to it is so easy to type the wrong hex in a config
But i still don't know why the EQU lines are not recognized !
post your code it would be easier to help if we can see it