Method for reducing data read-write errors of EEPROM (electrically erasable programmable read-only memory)
A technology of data reading and writing and data writing, which is applied in the direction of response error generation, redundant code error detection, input/output to record carrier, etc., and can solve problems such as loss of storage unit, unstable program, and shortened storage time , to achieve the effect of low error rate of writing and reading data, reducing the probability of data reading and writing errors, and good program robustness
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Benefits of technology
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0036] This example provides a method to reduce EEPROM data read and write errors, including the following steps:
[0037] The array definition step is to define a buffer array in SRAM and define two arrays in EEPROM, the two arrays defined in the EEPROM are respectively a data area array and a backup area array, and both the data area array and the backup area array include CRC check data;
[0038] Data writing step, when writing data in EEPROM, first put data into the buffer array, and call the write function to write the data of the buffer array into the data area array and the backup area array in order;
[0039] The verification data calculation step is to call the verification function to calculate the CRC verification data of the current backup, and write the CRC verification data to the verification data area of the data area array and the backup area array;
[0040] Data verification step, after the system is powered on and reset, the validity of the data area arra...
Embodiment 2
[0052] On the basis of Example 1, this example defines an array in SRAM: EEPROMBufferData[EepromPageSize-2], defines two arrays in EEPROM, these two arrays correspond to the data area array EEPROMPagerAddr0[EepromPageSize] and the backup array EEPROMPagerAddr1[EepromPageSize] ], the last two bytes in the data area array and backup array are the data for CRC check.
[0053] When writing data to EEPROM, first put the data into the EEPROMBufferData[EepromPageSize-2] array, call the EepromWriteBlockData() function, and write the n data of this array into the specified area of the EEPROM in order, that is, the data area array EEPROMPagerAddr0[EepromPageSize ] and / or Backup EEPROMPagerAddr1[EepromPageSize]).
[0054] After writing the data, call the CheckWriteDataCRC () function, which will calculate the CRC check data of the current backup and write to the tail two bytes of the corresponding data area array and the backup area array of the EEPROM. The CRC check data is preferably...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap