PICC-LITE EEPROM Access
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
I expect picl works a lot like picc, this is what I've done in the past
and it works:
psect eedata, delta=2, abs, ovrld
DB 0, 0, 0, 0, 10
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.
http://www.piclist.com hint: The PICList is archived three different
ways. See http://www.piclist.com/#archives for details.
In reply to: <09603D5CEAC8D411A92B009027EE77A715A733@TSVSERV3>
See also: www.piclist.com/techref/microchip/memory.htm?key=eeprom
You must be a member of the
piclist mailing list
(not only a www.piclist.com member) to post to the