ernestmyname
Member level 1
I wish to give my pic 18F the capability to store A/D values and retain those values even if the power is lost or the unit is reset.
The values will be stored only if 'program mode' is activated by I/O. So theoretically, these values will only be set by software once and then used for the rest of the micro controller's life.
The problem I've run into is that according to the datasheet, memory is stored in nonvolatile memory by the EEDATA and EEADR registers. If I store my values using this method, how will I know on the next powerup which registers my values are stored at?
In short, if I save values using EEDATA and EEADR, how will I be able to access them after powerdown?
The values will be stored only if 'program mode' is activated by I/O. So theoretically, these values will only be set by software once and then used for the rest of the micro controller's life.
The problem I've run into is that according to the datasheet, memory is stored in nonvolatile memory by the EEDATA and EEADR registers. If I store my values using this method, how will I know on the next powerup which registers my values are stored at?
In short, if I save values using EEDATA and EEADR, how will I be able to access them after powerdown?