Claims
- 1. A method of writing and erasing data in a memory device with a memory area having a plurality of blocks each with a plurality of sectors, the memory device erasing data by the unit of one block, the method comprising:
selecting a first predetermined number of blocks from a top of a first list in which the blocks are ranked in a descending order of a number of necessary sectors in each of the blocks; selecting a second predetermined number of blocks from a top of a second list in which the blocks are ranked in an ascending order of a number of necessary sectors in each of the blocks; and evacuating the necessary sectors from the first predetermined number of blocks and a second predetermined number of blocks to other blocks which have free sectors.
- 2. The method as claimed in claim 1, wherein said evacuating the necessary sectors distributes the necessary sectors to the other blocks by mixing the necessary sectors from the first predetermined number of blocks and the necessary sectors from the second predetermined number of blocks.
- 3. The method as claimed in claim 1, wherein said evacuating the necessary sectors distributes the necessary sectors to the other blocks evenly.
- 4. The method as claimed in claim 2, wherein said evacuating the necessary sectors distributes the necessary sectors to the other blocks evenly.
- 5. A method of erasing data in a memory device with a memory area having a plurality of blocks, the memory device erasing data by the unit of one block, the method comprising:
providing a flag for each of the blocks, the flag indicating if there is data written in a corresponding one of the blocks; and erasing data written in one of the blocks when the flag indicates that there is data written in the one of the blocks.
- 6. The method as claimed in claim 5, wherein said erasing data erases data written in all the blocks.
- 7. A method of erasing data in a memory device with a memory area having a plurality of blocks, the memory device erasing data by the unit of one block, the method comprising:
marking one block with an executing flag which indicates if a process of erasing all memory space is underway; and erasing all memory space, with the one block being a last one to erase.
- 8. The method as claimed in claim 7, further comprising resuming said erasing all memory space by looking up the executing flag when said erasing all memory space is stopped.
- 9. A method of managing a memory device having a memory area and a controller for controlling data writing in the memory area, the method comprising:
sending to the controller a size of data to be written into the memory area; and estimating, by using the controller, a length of time to be required for writing the data into the memory area on a basis of the size of the data and conditions of the memory area.
- 10. The method as claimed in claim 9, further comprising, after said estimating a length of time, estimating electric power required for writing the data on a basis of the length of time.
- 11. The method as claimed in claim 10, further comprising, after said estimating electric power, checking whether the data can be written into the memory area by using available electric power.
- 12. The method as claimed in claim 9, further comprising, after said estimating a length of time, checking, by using the length of time, whether there is a malfunction of the memory device.
- 13. A method of checking a flag recorded on a memory area which has a possibility that part of the memory area can become unable to be erased, the method comprising:
providing a plurality of bits in the memory area for one function of the flag; and checking a status of the flag by using a logical product of the plurality of bits.
- 14. A method of managing a memory device having a plurality of chips, each provided with a plurality of blocks, a free block of the blocks being used for writing new data, a block having old data replaced by the new data being erased by a unit of one block, the method comprising writing the new data into one of the chips, wherein one of the chips used for writing the new data is always the same for a given new data.
Priority Claims (1)
Number |
Date |
Country |
Kind |
5-246547 |
Oct 1993 |
JP |
|
CROSS REFERENCE TO RELATED APPLICATIONS
[0001] This application is a divisional of application Ser. No. 09/688,858 filed Oct. 17, 2000, now allowed, which is a divisional of application Ser. No. 09/385,998 filed Aug. 30, 1999, now issued as U.S. Pat. No. 6,161,163, which is a divisional of application Ser. No. 08/912,692 filed Aug. 18, 1997, now issued as U.S. Pat. No. 5,983,312, which is a divisional of application Ser. No. 08/292,213 filed Aug. 19, 1994, now issued as U.S. Pat. No. 5,802,551.
[0002] This application is related to application Ser. No. 09/010,795 filed Jan. 22, 1998, now issued as U.S. Pat. No. 6,125,424.
Divisions (4)
|
Number |
Date |
Country |
Parent |
09688858 |
Oct 2000 |
US |
Child |
10446810 |
May 2003 |
US |
Parent |
09385998 |
Aug 1999 |
US |
Child |
09688858 |
Oct 2000 |
US |
Parent |
08912692 |
Aug 1997 |
US |
Child |
09385998 |
Aug 1999 |
US |
Parent |
08292213 |
Aug 1994 |
US |
Child |
08912692 |
Aug 1997 |
US |