In C18, I use: rom unsigned char eedata_values1[] =3D {0x2B, 0x8D, 0b0}; rom unsigned char eedata_values2[] =3D {0x43, 0x27}; etc, without any variables associated with them. There must be =20 something similar in XC8. Cheers, -Neil. Quoting "David Duffy (AVD)" : > On 15/10/2013 8:15 AM, Matt Bennett wrote: >> On Mon, October 14, 2013 4:15 pm, David Duffy (AVD) wrote: >>> That seems to be when you have variables directly associated with the >>> data? >>> >>> In my case, some of the EE could be associated with variables, but othe= r >>> data is used with generic read / write commands from a PC interface. >>> >>> Maybe I should look into the EE variables anyway. Learning XC8 (and C >>> in general) has been fun so far. >>> David... >>> >>> On 15/10/2013 7:00 AM, Neil wrote: >>>> I've not really used XC8 yet. Is there a reason the C18-type way >>>> wouldn't work?... >>>> http://support2.microchip.com/KBSearch/KB_StdProb.aspx?ID=3DSQ6UJ9A000= 4DV >> I haven't used this, so please verify first, but checking the XC8 manual= , >> there are a couple options- you can use: >> >> eeprom char regNumber[10] =3D "A93213"; >> >> Also, section 5.5.5.2 of the XC8 manual describes a macro: >> >> #include >> __EEPROM_DATA(0, 1, 2, 3, 4, 5, 6, 7); >> >> The difference being that this is just inserting the data into the .hex >> file used to program the part- it isn't associated with a variable. > > I started using the __EEPROM_DATA macro which is fine for some > applications. What would be nice is if there was a version of that > where you specified an offset from the EE start and a variable number of > values. > > I'll have a look to see how that macro is defined. Maybe that will give > me more ideas. > David... > > -- > ___________________________________________ > David Duffy Audio Visual Devices P/L > Unit 8, 10 Hook St, Capalaba 4157 Australia > Ph: +61 7 38235717 Fax: +61 7 38234717 > Our Web Site: www.audiovisualdevices.com.au > ___________________________________________ > > -- > http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist > --=20 http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .