8bit crc calculation function

Go To Last Post
6 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi there is there any 8bit crc calculation function out there?

I mean something like this:

unsigned char crc_8bit(unsigned char *start, unsigned char length){
    /* crc calculation code */
    return crc;
}

Thanks.

Michael.

User of:
IAR Embedded Workbench C/C++ Compiler
Altium Designer

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

CRCs has been up here a lot of times. Here's just one of the hits on a search for "8-bit CRC": https://www.avrfreaks.net/index.p...

As of January 15, 2018, Site fix-up work has begun! Now do your part and report any bugs or deficiencies here

No guarantees, but if we don't report problems they won't get much of  a chance to be fixed! Details/discussions at link given just above.

 

"Some questions have no answers."[C Baird] "There comes a point where the spoon-feeding has to stop and the independent thinking has to start." [C Lawson] "There are always ways to disagree, without being disagreeable."[E Weddington] "Words represent concepts. Use the wrong words, communicate the wrong concept." [J Morin] "Persistence only goes so far if you set yourself up for failure." [Kartman]

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Johan,

believe me, I tried so many times the search engine with the words "8 bit crc", but the result was always

    The page cannot be displayed
.

Thanks for your time.

Michael.

User of:
IAR Embedded Workbench C/C++ Compiler
Altium Designer

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:

I tried so many times the search engine

In future, when that fails, try a Google for "8 bit crc site:avrfreaks.net"

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

nice info ("xxxxxxx site:yyyyyyy.kkk)

Thanks.

Michael.

User of:
IAR Embedded Workbench C/C++ Compiler
Altium Designer

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

avr-libc already has crc8 calculations. No need to copypaste from anywhere.