Defining EEPROM contents at a specific location - PIC16F690. XC8 version 2.00
I have used both of the following methods to define EEPROM contents for a PIC16F1844 device at a specific location
const unsigned char info2 __at(0xF0D4) = __DATE__;
eeprom unsigned char buildinfo2 __at(0xF0D4) = __DATE__;
I would like to achieve the same with a PIC16F690, however my testing shows this method doesn't appear to work for the '690.
Using the following method doesn't allow me to insert pre-defined macros easily.
__EEPROM_DATA(0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF);
I have used the method below for earlier XC8 versions, but doesn't work with XC8 version 2.00 (c99), plus it's a little cumbersome and awkward to specify it's location.
#asm psect eeprom_data,class=EEDATA,delta=2,space=2
IRPC ver, __DATE__
Can anyone suggest a simple method to insert __DATE__ (or similar) into the EEPROM of a PIC16F690 at a specific location (at compile time)?