On Jun 28, 2006, at 4:23 PM, Phil Keller wrote: > Can anyone point me to (or provide me with) some source code that > implements the CRC generation/checking (either table driven or > algorithm) in "C" please since I have been asked to limit my use of > assembly since it makes it more difficult for them to maintain in the > future. You probably can't get more well-defined and widely implemented than the CRC16 used by async PPP; RFC1549 contains a sample table-driven implementation: http://www.rfc-archive.org/getrfc.php?rfc=1549 There are a lot of different possible Polynomials for a give CRC length; could be your different implementations implement different CRCs. A 16 bit CRC is probably too much for a 4-byte packet, but it probably makes less sense to implement two different CRC algorithms. BillW -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist