Experience on power-down data retention

  It will save the data when power is some risk, there may be interference in the data stored, so for this one must be careful handling.

  The following is my method:

  1. Every so often, save the data, the data we save this place called the bit "1 data area."

  2. When the power failure occurs, we can not put the data stored in the "Data Area 1", but open another piece of memory, this memory we call "data area 2."

  We will be on power equipment, should be the first to judge the accuracy of the data "data area 2", if the data is normal, from the "data area 2" data is read, if not normal, then continue to check "the data area 1" data accuracy.

Guess you like

Origin www.cnblogs.com/r1chie/p/12058044.html