×

Flash eeprom management using ratio of used to unused sectors

  • US 6,604,168 B2
  • Filed: 07/09/1999
  • Issued: 08/05/2003
  • Est. Priority Date: 09/28/1995
  • Status: Expired due to Fees
First Claim
Patent Images

1. A flash ROM management apparatus comprising:

  • management means for managing a plurality of blocks formed in a flash ROM, each of said blocks including a plurality of sectors and each of said sectors containing a data area and a management area corresponding to the data area, said management area storing a sector identifier and state information indicating at least three states, including an unused state indicating that a corresponding data area is writable, a busy state indicating that data written in the data area is valid, and a used state indicating that the data written in the data area is invalid;

    writing means for receiving a write instruction containing a sector identifier which specifies a data write destination sector, searching for a sector having a management area whose state information indicates the unused state, writing the sector identifier and data in the management area and a corresponding data area, respectively, altering the state information from the unused state to the busy state in the management area in the found sector, and altering the state information from the busy state to the used state in the management area in the sector previously storing the specified sector identifier;

    reading means for receiving a read instruction containing a sector identifier which specifies a data read source sector, accessing a sector having a management area in which the specified sector identifier is stored, and reading out data stored in a data area in the accessed sector;

    counting means for counting total numbers of unused sectors and used sectors, respectively, in said flash ROM by counting down the total number of unused sectors and counting up the total number of used sectors when said writing means writes data in a sector;

    determination means for determining whether a proportion of the total number of used sectors to the total number of unused sectors exceeds a predetermined value when said counting means updates the total numbers of unused sectors and the used sectors;

    selection means for selecting an erase block to be erased from among said plurality of blocks in said flash ROM if the determined proportion exceeds the predetermined value;

    moving means for retrieving all sectors whose state information indicates the busy state in the erase block and moving contents of the retrieved sectors to the outside of the erase block; and

    erasing means for erasing the erase block after the execution of said moving means.

View all claims
  • 0 Assignments
Timeline View
Assignment View
    ×
    ×