[Icc-avr] CheckSum
Albert vanVeen
Albert.vanVeen at pertronic.co.nz
Mon May 26 15:36:57 PDT 2008
It would indeed be a good idea to add a checksum to comms functions!
Depends what you want: plain CS, CRC, Fletcher?
We've used FCS in the companies I've worked the last 20 or so years,
seems to be accepted as "the best" value for 16 bits.
Albert.
________________________________
From: icc-avr-bounces at imagecraft.com
[mailto:icc-avr-bounces at imagecraft.com] On Behalf Of Andrew
Sent: Tuesday, May 27, 2008 09:25 AM
To: Discussion list for ICCAVR and ICCtiny Users. You do NOT
needtosubscribeto icc-announce if you are a member of this.
Subject: [Icc-avr] CheckSum
Hi,
I am sure I have asked this before but (if i have sorry for the repeat
question), does anybody have a simple checksum routine for an array of
bytes, they would not mind posting?
I need one for a maximum of 250 bytes I am sending through the serial
port to a PC (I could break this up into smaller chunks if needed ) at
the moment i am not using one, but I think it would be best to add one.
I have found a few on AVR freaks, just wondered what everyone here uses.
Best Regards,
Andy
Scanned by Bizo EmailFilter
<http://www.bizoservices.com/services/email_filter.html>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://dragonsgate.net/pipermail/icc-avr/attachments/20080527/7196411b/attachment.html
More information about the Icc-avr
mailing list