> Hi! > Working on data exchange between a PIC and a PC via radio i'm looking to > implement an error detection routine that's a bit more reliable than the 8 bit > Checksum. > > Is there anywhere a code example for an 8 bit, 16 or even a 32 bit CRC-CCIT > ? > > Thank you in advance for any suggestion. Daniel, I have an 8-bit CRC routine written for a 17c4x that I can post, if it's of any use to you. An excellent guide to CRC's (with some C source) is the CRC pitstop at: http://www.ross.net/crc/ Andy Warren's page also has some example code for an 8-bit CRC that should get you started - they're really not very difficult to write. Andy Warren's example is at: http://pw2.netcom.com/~fastfwd/answers.html#PIC00076 - Andy. ---------------------------------------------------------- Andrew David, Software Manager, Ultronics Ltd, Cheltenham. akdavid@Ultronics.co.uk http:\\www.ultronics.com ----------------------------------------------------------