piclist 2001\02\13\183145a >
Thread: PICC-LITE EEPROM Access
www.piclist.com/techref/microchip/memory.htm?key=eeprom
face
flavicon
face BY : Bob Blick email (remove spam text)



> I am using the Hitech Picc-lite compiler in the MPLAB environment. I need to
> program some values into the eeprom data area on a 16F84 at programming
> time. I know there is a macro assembler directive to do this. Does anyone
> know how to get assembler/programmer to do it from within a C source code
> file.

Hi Graham,

I expect picl works a lot like picc, this is what I've done in the past
and it works:

#asm
       psect eedata, delta=2, abs, ovrld
       ORG 2104H
       DB 0, 0, 0, 0, 10
#endasm

EEPROM starts at 2100 but this writes 5 bytes starting at 2104 with 4
zeroes and then a 10.

You can just tack this on at the very end of your code, I don't think
placement is important.

Cheers,

Bob

--
http://www.piclist.com hint: The PICList is archived three different
ways.  See http://www.piclist.com/#archives for details.


<Pine.LNX.4.21.0102132326220.28456-100000@fresh.ted.net>

In reply to: <09603D5CEAC8D411A92B009027EE77A715A733@TSVSERV3>
See also: www.piclist.com/techref/microchip/memory.htm?key=eeprom
Reply You must be a member of the piclist mailing list (not only a www.piclist.com member) to post to the piclist. This form requires JavaScript and a browser/email client that can handle form mailto: posts.
Subject (change) PICC-LITE EEPROM Access

month overview.

new search...