8-bit CRC code

Hi,

We are interfacing arduino uno with our hardware board. Our board is generating 24bit hexadecimal data with 8bit crc. Now we are trying to calculate our CRC based on the 24bit data and compare with the Hardware generated CRC. Is there any code snippet for this CRC calculation in arduino.

Thanks,

Regards
B Teja.

ADC_8bitCRC.txt (21.8 KB)

(deleted)

our hardware board

Which board is that? Do you have a link to the datasheet?

data with 8bit crc

  1. Are you sure it is a CRC and not a checksum?
  2. If it is a CRC, which one? There are lots of them.

Pete

CRC is used to catch transpositions of digits and bit errors in individual digits. An 8-bit CRC will do neither.

Paul

Eh?

Pete

We are interfacing arduino uno with our hardware board.

Post a link to the board, or the data sheet/user manual.

You have to know the details of the CRC calculation -- there are many variations.

Hi,

yeah crc is used to check the error. We are also using the same purpose but we need basic 8bit crc having a polynomial of 0X07.init value is 0X00. is there any code snippet.

is there any code snippet.

Yes, Google will help.