Patent ID: 7917832

Claim:
An apparatus for improving data access reliability of flash memory, the apparatus comprising: an instruction register, connected to a flash memory for storing read and write instruction to the flash memory; an address register, connected to the flash memory for storing target address of the read and write instruction; a flash memory control circuit, connected to the instruction register and the address register for controlling data reading and data writing to the flash memory according to contents stored in the instruction register and the address register; a data register, connected to the flash memory control circuit for storing data read from or written to the flash memory; an encoder, connected to the data register for encoding written data stored in the data register; an error correction code (ECC) generator, connected to the encoder for generating ECC for encoded data; a signal converter, connected to the encoder, the ECC generator and the flash memory for converting the encoded data from the encoder and the ECC from the ECC generator and storing into a reserved area of the flash memory; a comparator, connected to the ECC generator and signal converter for comparing ECC from the ECC generator and ECC stored in the reserved area during reading data, and outputting a comparison control instruction based on the comparison result; an arbitrator, connected to the signal converter for further differentiating voltage levels and outputting suspicious bit values; and a decoder, connected to the signal converter, the comparator, and the arbitrator for selecting cells form the flash memory to decode and outputting decoded data into the data register.