Data storage method and related device for an electronic device
AssigneeWistron Corporation
InventorChia-Ching Tsai
Life of this patent
Estimating the term…
Abstract
In order to prevent memory cells from being damaged, the present invention provides a data storage method for an electronic device including dividing a first section of a memory of the electronic device into N blocks, wherein the N blocks is a sequence of blocks from the first block to the Nth block and each block is assigned an index value, rewriting the index value corresponding to the nth block according to index values of the N blocks, and storing an input data in the nth block, wherein N is an integer greater than 1, and 1≦n≦N.
Claims22
A data storage method for an electronic device, the data storage method comprising:
- averaging a number of times of accessing sections of a memory of the electronic device in order to prevent the memory from being damaged;
- dividing a first section of the memory of the electronic device into N blocks, wherein each of the N blocks is corresponding to a sequence number and assigned an index value;
- rewriting an assigned index value corresponding to an nth block of the N blocks according to index values corresponding to the N blocks;
- storing an input data in the nth block;
- and
- rewriting the nth block by stored data in the (n−1)th block before storing the input data in the nth block when the index values corresponding to the N blocks are not identical;
- wherein N is an integer greater than or equal to 1, and 1≦n≦N.
An electronic device for preventing a memory from damage comprising:
- a reception unit for receiving an input data;
- a memory for storing the input data;
- and
- a processor coupled to the reception unit and the memory, for processing the input data and for averaging a number of times of accessing sections of the memory of the electronic device in order to prevent the memory from being damaged, the processor comprising:
- a dividing unit, for dividing a first section of the memory into N blocks, wherein each of the N blocks is corresponding to a sequence number and assigned an index value;
- an index control unit coupled to the memory, for rewriting an assigned index value corresponding to an nth block of the N blocks according to index values corresponding to the N blocks;
- a writing unit for storing an input data in the nth block;
- and
- a control unit for rewriting the nth block by stored data in the (n−1)th block before the input data is stored in the nth block when the index values corresponding to the N blocks are not identical;
- wherein N is an integer greater than or equal to 1, and 1≦n≦N.
Dependencies are inferred from the claim text.