Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

Re: [AVR-Chat] Re: CRC using IAR compiler

2010-06-18 by Bob Paddock

>
>
> > This thread has been active for a while now. Although CRC is a
> > superior checksum scheme, considering the effort this seems to be, I
> > was curious why you specifically want a CRC checksum, as opposed to a
> > simpler checksum scheme?
>

A checksum will have the same value regardless of the order of the bytes,
where a CRC will have a different value if the order of the same bytes is
different.


>
> No matter one supposedly knows the polynomial, not everyone applies it
> the same. Some start the summing with zero, others with -1.
>

A CRC initialized to zero will miss inserted leading zeros, which is why
initialization to -1 is preferred.

Even if you are not using C++ this is still worth a read, as well as the
links within:

http://www.boost.org/doc/libs/1_34_0/libs/crc/index.html


-- 
http://blog.softwaresafety.net/
http://www.designer-iii.com/
http://www.wearablesmartsensors.com/


[Non-text portions of this message have been removed]

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.