On Thu, 11 Mar 2010 23:55:09 -0600, "Jason Hsu" said: > The application I have in mind is providing a voltage output in order > to simulate a sensor. > > I have data sets, and I need to incorporate them into the > microcontroller so that it can provide the simulated sensor voltages. > > What kind of memory do I need for this? Is this where EEPROM comes > in? Or is there another type of memory for this? Yes, the EEPROM area is intended for non-volatile storage of data. It is writeable many many times(actual number depends on device). Most PICs can also store data in program memory, but the number of times you can write to program memory is more limited. Preferably you would do the writing BEFORE shutting down, not WHILE shutting down. EEPROM writes are only guaranteed down to a certain(dependent on device) operating voltage and they are not instantaneous. Lots of different methods have been used to increase confidence in storing data so as not to end up with corrupt data in case of power failure during the write process. Many involve writing to alternating or multiple locations. Cheerful regards, Bob -- http://www.fastmail.fm - Access all of your messages and folders wherever you are -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist