Searching \ for '[PIC]:MPLAB 18F452 config bits syntax' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/microchip/languages.htm?key=mplab
Search entire site for: 'MPLAB 18F452 config bits syntax'.

Exact match. Not showing close matches.
PICList Thread
'[PIC]:MPLAB 18F452 config bits syntax'
2006\03\01@011858 by Rob Robson

flavicon
face
I'm looking for some guidance on the proper syntax for setting 18F config
bits in MPLAB.  What I've done _looks_ like the examples I've found, but
clearly I'm missing something.

What I've tried:

include "P18F452.INC"

__config _config1H, _HS_OSC_1H
__config _config2H, _WDTPS_128_2H & _WDT_OFF_2H
__config _config2L, _BOR_OFF_2L & _PWRT_OFF_2L
__config _config3H, _CCP2MX_OFF_3H
__config _config4L, _STVR_ON_4L & _LVP_OFF_4L & _DEBUG_OFF_4L

What I get:

Error[113]   C:\PROGRA~1\MPLAB57\PBCAV101.ASM 38 : Symbol not previously
defined (_config1H)
Error[126]   C:\PROGRA~1\MPLAB57\PBCAV101.ASM 38 : Argument out of range
(not a valid config register address)
Error[113]   C:\PROGRA~1\MPLAB57\PBCAV101.ASM 39 : Symbol not previously
defined (_config2H)
Error[126]   C:\PROGRA~1\MPLAB57\PBCAV101.ASM 39 : Argument out of range
(not a valid config register address)
Error[113]   C:\PROGRA~1\MPLAB57\PBCAV101.ASM 40 : Symbol not previously
defined (_config2L)
Error[126]   C:\PROGRA~1\MPLAB57\PBCAV101.ASM 40 : Argument out of range
(not a valid config register address)
Error[113]   C:\PROGRA~1\MPLAB57\PBCAV101.ASM 41 : Symbol not previously
defined (_config3H)
Error[126]   C:\PROGRA~1\MPLAB57\PBCAV101.ASM 41 : Argument out of range
(not a valid config register address)
Error[113]   C:\PROGRA~1\MPLAB57\PBCAV101.ASM 42 : Symbol not previously
defined (_config4L)
Error[126]   C:\PROGRA~1\MPLAB57\PBCAV101.ASM 42 : Argument out of range
(not a valid config register address)

Any and all guidance would be appreciated, even if it's sprinkled with
admonishments for things I've been able to unearth from the manual or by
googling.

RR


2006\03\01@061356 by Tom Sefranek

face picon face
The current MPLAB does NOT support the old syntax of  __CONFIG
Look back a few weeks ago, this is well discussed and I included a
working example.
Or you could READ the P18F452.INC file to see for your self.

Rob Robson wrote:

{Quote hidden}

--
 *
 |  __O    Thomas C. Sefranek   spam_OUTWA1RHPTakeThisOuTspamARRL.net
 |_-\<,_   Amateur Radio Operator: WA1RHP  
 (*)/ (*)  Bicycle mobile on 145.41, 448.625 MHz

hamradio.cmcorp.com/inventory/Inventory.html
http://www.harvardrepeater.org


2006\03\01@062135 by Jan-Erik Soderholm

face picon face
Hi.
First, disable case sensitivines in MPLAB.

Then, lookup the new CONFIG directive and format at
the end of the INC file for your processor. Much easier
to read and write...

Jan-Erik.



2006\03\01@071436 by Mike Hord

picon face
Have you tried all caps? Like so:
__CONFIG _CONFIG1H, _HS_OSC_1H

That's the only difference I can see, but if you have case sensitivity on, it
might make a difference.

I do know that the __CONFIG directive has been "deprecated", in favor of
a newer format, but aside from a little grumbling, MPASM still accepts it.
Which is good, because it seems changing to the newer format breaks
something in PICBASIC.

Mike H.

PS- If anyone can tell me how to exclude a certain warning level from
showing up in the output window, I'm all ears!

On 3/1/06, Rob Robson <.....robKILLspamspam@spam@silk.net> wrote:
{Quote hidden}

> -

2006\03\01@082338 by Jan-Erik Soderholm

face picon face
Tom Sefranek wrote :

> The current MPLAB does NOT support the old syntax of  __CONFIG

The "current MPLAB" *I* am using does...

I *think* __CONFIG is unsupported for the 16-biters, thought...

Jan-Erik.



2006\03\01@090409 by Xiaofan Chen

face picon face
On 3/1/06, Jan-Erik Soderholm <jan-erik.soderholmspamKILLspamtelia.com> wrote:
> Tom Sefranek wrote :
>
> > The current MPLAB does NOT support the old syntax of  __CONFIG
>
> The "current MPLAB" *I* am using does...
>
> I *think* __CONFIG is unsupported for the 16-biters, thought...
>
> Jan-Erik.
>

MPLAB use __CONFIG for base line and mid-range PICs. It now uses
CONFIG for 18C/18F PICs. __CONFIG is still supported for many PIC18C/18F
PICs but the use of __CONFIG is deprecated. In fact, MPLAB does not
support __CONFIG for some new PIC18J chips.

Take note that gpasm does not support CONFIG yet.

Regards,
Xiaofan

2006\03\01@090729 by Mike Hord
picon face
> > The current MPLAB does NOT support the old syntax of  __CONFIG

No, it still does, it just gripes.  I just installed 7.22 freshly downloaded
about five days ago, and it assembles my "__CONFIG" with only minimal
grumbling (warning 230)...

> The "current MPLAB" *I* am using does...
>
> I *think* __CONFIG is unsupported for the 16-biters, thought...
...and I'm using that on a 16-bit 18F2320.  The 230 warning DOES
specifically state that __CONFIG has been deprecated for PIC18
devices, but it still works just the same- changing a setting in the
__CONFIG directives causes it to change in the dialog box for the
project.

Mike H.

2006\03\01@094520 by Jan-Erik Soderholm

face picon face
Mike Hord wrote :

> > I *think* __CONFIG is unsupported for the 16-biters, thought...

> ...and I'm using that on a 16-bit 18F2320...

Which is a 8-biter... :-)

With "16-biters" I ment PIC24/30/33.

Jan-Erik.



2006\03\01@095918 by Mike Hord

picon face
> Mike Hord wrote :
>
> > > I *think* __CONFIG is unsupported for the 16-biters, thought...
>
> > ...and I'm using that on a 16-bit 18F2320...
>
> Which is a 8-biter... :-)
>
> With "16-biters" I ment PIC24/30/33.

Sorry.  I thought you meant 16-bit instructions.

Sigh.  The perils of a Harvard architecture.

Mike H.

More... (looser matching)
- Last day of these posts
- In 2006 , 2007 only
- Today
- New search...