Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
08/04/07 22:33
Modified:
  08/04/07 22:42

Read: times


 
#142771 - I said it\'s simple
Responding to: ???'s previous message
once you have that "online calculator" page... (my favourite)0

OK it's not simple because there is so many buzz around, and everybody uses different nomenclature and different algorithm and stuff. Even the word, "polynome", it's completely misleading - it refers to a very weird sort of arithmetics, not what normal people are normally using, but nobody tells you this.

In the last few years I was forced to go through the same procedure four or five times to implement various protocols, every time the calculation was different, all kinds of stuff - look at that page, there are many boxes to click and fill in, these are those damn'd variants of CRC and you never know that the perverse person who devised the protocol decided to reverse the bits or use the "nondirect" version or a nonzero initial value - or all of these...

OK so go to that page and follow my instructions:
  • CRC order - 8 (i.e. CRC8)
  • CRC polynom - 07 (the "1" in your 0x107 is the bit you feed back from the xors - normal people don't use it in the number determining the "polynom" as this is implicit from the algorithm, but some pervert people like to add it so that it confuses the normal people - in your case some really naughty guy even added an extra zero, so this looks as a 16-bit poly rather than 8-bit... but don't believe them, this is 8-bit only, hence 0x07)
  • initial/final value - both 0
  • set the "direct" algorithm
  • untick both "reverse" tickboxes
  • into data sequence, enter %00, click "compute!" you have the first item to the table; into data sequence, enter %01, click "compute!", you have the second item to the table, etc. - you get the idea by now I hope


JW

PS. The table for the nibble method is simply the first 16 items from the "standard" table



List of 23 messages in thread
TopicAuthorDate
How to create a crc table?            01/01/70 00:00      
   simple            01/01/70 00:00      
      RE: simple            01/01/70 00:00      
         I said it\'s simple            01/01/70 00:00      
            Thank you            01/01/70 00:00      
            Protocols            01/01/70 00:00      
               examples            01/01/70 00:00      
   Runtime Computed Table??            01/01/70 00:00      
      RE: Runtime...?            01/01/70 00:00      
      table is not necessary            01/01/70 00:00      
         Benchmark            01/01/70 00:00      
            I did benchmarks as such on AVR            01/01/70 00:00      
               Similar findings            01/01/70 00:00      
                  no beavers that I've tended to!!            01/01/70 00:00      
               not bitwise....            01/01/70 00:00      
            Better is a strong word            01/01/70 00:00      
               Also comment about SMBus PEC Code...            01/01/70 00:00      
   The Table            01/01/70 00:00      
   The Nibble Table for Poly 107            01/01/70 00:00      
   The formula            01/01/70 00:00      
   Have you seen this?            01/01/70 00:00      
      Now I have            01/01/70 00:00      
      Yes, that is a Key Document!            01/01/70 00:00      

Back to Subject List