CRC8 calculation

I have a binary String of "011001000010100100100010", 24 bits, how do I calculate CRC8? I tried using FastCRC but testing gives me the wrong results. I think it's because it is looking for bytes?

Thanks

Please share your code (formatted using the </> button), then perhaps we can see what is going on.

[edit]

Are you calculating the CRC over a string of "0"s and "1"s (so 24 bytes containing the values 0x30 and 0x31), or over three bytes ({0x64, 0x29, 0x22})?

What is the right result?

What are you giving "it"?

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.