??? 07/21/11 06:14 Read: times |
#182940 - use DATA RAM as EEPROM Responding to: ???'s previous message |
Maunik Choksi said:
use DATA RAM as EEPROM. What, exactly, do you mean by that? Do you mean, you want (part of) the DATA RAM to be non-volatile? Is it possible & if yes how ? To make the DATA RAM non-volatile would require two things: 1. Some kind of backup power suppyly; 2. Ensure that your code does not overwrite the DATA RAM during startup. You will probably also want to put the processor into a low-power mode during the "data-retention" state, and have some integrtiy check on the contents... can you give some source code of it Would need more details - including what tools you use... IIRC, Philips application note AN10210 illustrated putting an 8051 into low-power mode and retaining data in RAM. The PDF is here: http://www.nxp.com/documents...N10210.pdf I think you had to specifically request the source code from Philips - now NXP... |