Searching \ for ' PICC-LITE EEPROM Access' 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/memory.htm?key=eeprom
Search entire site for: 'PICC-LITE EEPROM Access'.

No exact or substring matches. trying for part
PICList Thread
'[PICLIST] PICC-LITE EEPROM Access'
2001\02\13@181026 by raham Cheetham

flavicon
face
Hi,

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.

If it can't be done from C, what other options could I use.


Regards,

Graham Cheetham
Telecasters Australia Ltd.

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


2001\02\13@183145 by Bob Blick

face
flavicon
face
> 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.


2001\02\14@073509 by Michael Rigby-Jones

flavicon
face
Very easy, put this in a module and add it to the project

#asm
       psect   eedata,delta=2,abs,ovrld
       org             2100h

       // put your data here.  Note that using dw to put 16bit values in
dosen't work!

       db              0x55            // eeprom address 0
       db              0xAA
       db              0xFF

#endasm


Hope that helps

Mike

> {Original Message removed}

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