This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Look-Up Table for Checksum calculation

Hello, Can anybody tell me how to generate Look-Up table from the checksum alogorithm?

Regards,
Abhijeet R. Mudgal.

Parents
  • There are no lookup tables for checksum, since a checksum is just a sum. You can't really gain anything by trying to look up an add operation.

    Maybe you are talking about CRC - Cyclic Redundancy Check?

    For CRC, there are many, many tables already built if you just google. Some tables are for crc16 in nibble mode. Some for crc16 in byte mode. Some are for crc16-ccitt. Some are for processing data with reversed bit order. Some are for crc32...

    Note that for 8051 processors, you normally don't have a lot of RAM. So you do not want to create the CRC lookup table when the program starts, but instead compile the table directly into CODE.

Reply
  • There are no lookup tables for checksum, since a checksum is just a sum. You can't really gain anything by trying to look up an add operation.

    Maybe you are talking about CRC - Cyclic Redundancy Check?

    For CRC, there are many, many tables already built if you just google. Some tables are for crc16 in nibble mode. Some for crc16 in byte mode. Some are for crc16-ccitt. Some are for processing data with reversed bit order. Some are for crc32...

    Note that for 8051 processors, you normally don't have a lot of RAM. So you do not want to create the CRC lookup table when the program starts, but instead compile the table directly into CODE.

Children