On Tue, 30 Sep 1997 22:54:04 -0400 "Alan G. Smith" writes: > I am using a PIC 16F84 and I would like to initialize the data EEPROM >with > known values before we >start. >Can anyone tell me how to get Hi-Tech C (preferably) or Microchip >Assembler to > store data into the >data eeprom. On Microchip assembler, org to 2100h and use 'de' directives to define the data for the EEPROM. In the hex file, the EEPROM data is still stored 16 bits at a time, but the high 8 bits are always 0. Directives other than 'de' also place data in the program space but tend to place meore than 8 bits in each word. Undoubtably Hi-Tech C has a way to inline things at known locations as well. Once the data is in the hex file at this 'magic' location, the programmer (if it supports this mode) will write it to the EEPROM. You could use Microchip assembler to make a file which contains only EEPROM data and either program it to the chip seperately or splice the two hex files together. > >TIA, > >Alan G. Smith > >+--------------------------------------------------------- >| Alan G. Smith >| ags@poboxes.com >| http://www.innovatus.com/ags >