Protection method for preventing memory from being erased and written by mistake
A memory and register technology, applied in the direction of protecting the stored content from loss, etc., can solve the problems of reading and writing timing confusion, FLASH/EEPROM memory data change and loss, etc.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0010] The specific embodiments of the present invention will be further described below in conjunction with the accompanying drawings.
[0011] In order to protect the safety of the data in the FLASH / EEPROM memory, before erasing or writing the FLASH / EEPROM memory, write a series of specific command words first, and then perform the corresponding erasing and writing operation after it is completely correct. Or the command sequence that needs to be sent before the write operation is shown in Table 1:
[0012] Table 1 Command sequence list (taking page write as an example)
[0013]
[0014] Note: Address and data are in hexadecimal.
[0015] Before erasing or writing the FLASH / EEPROM memory, a series of specific command words need to be written. As shown in the table above, according to the definition of the user, first set the address in the first command word to 0xAAAA, and the data to 0x55; the address in the second command word to 0xCCCC, and the data to 0xAA; the addr...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 