Searching \ for '[PIC] MCC18 Equivalent of DE?' 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/devices.htm?key=pic
Search entire site for: 'MCC18 Equivalent of DE?'.

Exact match. Not showing close matches.
PICList Thread
'[PIC] MCC18 Equivalent of DE?'
2005\01\27@112250 by Harold Hallikainen

face picon face
Is there an equivalent to the ASM DE instruction to define the contents of
eeprom? The C compiler manual very helpfully has eeprom in the index. It
helpfully refers me to a glossary page that defines eeprom. Or do I have
to link in another asm file to just preload a few bytes of eeprom?

THANKS!

Harold

--
FCC Rules Updated Daily at http://www.hallikainen.com

2005\01\27@124718 by piclist

flavicon
face
On Thu, 27 Jan 2005, Harold Hallikainen wrote:

> Is there an equivalent to the ASM DE instruction to define the contents of
> eeprom? The C compiler manual very helpfully has eeprom in the index. It
> helpfully refers me to a glossary page that defines eeprom. Or do I have
> to link in another asm file to just preload a few bytes of eeprom?

>From the Microchip development tools FAQ forum:

>From a compiler perspective, EEDATA is just romdata at a certain
address. Simply create an absolute romdata section at the address
0xf00000.

Example:

#pragma romdata eedata_scn=0xf00000
rom eedata_values[8] = {0, 1, 2, 3, 4, 5, 6, 7};
#pragma romdata

--
John W. Temples, III


'[PIC] MCC18 Equivalent of DE?'
2005\02\01@134430 by Harold Hallikainen
face picon face
THANKS! I finally tried this, and it worked fine. I did add "unsigned
char" after "rom" so it would not assume the data was a 16 bit int.

Thanks!

Harold

{Quote hidden}

> -

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