Patent ID: 7055083
Filing Date: 2006-05-30
Classification: G06F

Abstract:
1. A method for allocating Cyclic Redundancy Check (CRC) codes in a flash ROM (Read-Only Memory) via a microprocessor, the method comprising the steps of: logically dividing a flash ROM into a plurality of data blocks, each of the plurality data blocks comprising a CRC code block, the CRC code block comprising a plurality of bytes for saving CRC codes; reading data from a data block of the flash ROM and calculating a complementary code of a sum of all the bytes of the data block; adding a value of each of the plurality of bytes of the CRC code block of the data block to the complementary code and obtaining a first sum, and performing an AND-operation on a bit by bit basis between the first sum and the value of the byte; writing the first sum to the byte as a new CRC code if any one of the results of the AND-operation is equal to the first sum; or randomly selecting a byte in the CRC code block if none of the results of the AND-operation for the plurality of bytes of the CRC code block is equal to the first sum, adding the value of the byte with the complementary code and obtaining a second sum, erasing the byte, and writing the second sum to the byte as a new CRC code.