How do I generate a checksum (16 or 32 bits). What's the
difference between checksum & crc?
StuH_CC
Joined: 07 May 2004 Posts: 16 Location: Shropshire, UK
Posted: Thu Sep 02, 2004 9:11 am
CCS have provided a driver to generate 8,16 and 32 bit CRCs - it's in the "Drivers" directory of your compiler installation, called CRC.C. There's also an example called EX_CRC.C in the "Examples" directory. Hope this helps.
Stuart.
dyeatman
Joined: 06 Sep 2003 Posts: 1933 Location: Norman, OK
CRC vs Checksum
Posted: Thu Sep 02, 2004 9:24 am
A Cyclic Redundancy Check (CRC) is a mathematical algorithm to determine if an error exists. A checksum is exactly that, just a sum of the data being transmitted.
An 8 bit checksum is where the individual bytes are simply added together modulo 256.
Hope this helps!
SherpaDoug
Joined: 07 Sep 2003 Posts: 1640 Location: Cape Cod Mass USA
Posted: Thu Sep 02, 2004 2:44 pm
A checksum is very easy to impliment and fast to execute but may miss more errors than a CRC. Longer checksums or CRCs catch more errors than shorter ones but take more resources. _________________ The search for better is endless. Instead simply find very good and get the job done.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum