Thanks for letting me know you wrote this. I've added your name to the page and the code. Some of the routines I collected before I knew I was going to have a web site aren't credited and I'm happy to have that information now. --- James Newton mailto:jamesnewton@geocities.com 1-619-652-0593 http://techref.massmind.org NEW! FINALLY A REAL NAME! Members can add private/public comments/pages ($0 TANSTAAFL web hosting) -----Original Message----- From: pic microcontroller discussion list [mailto:PICLIST@MITVMA.MIT.EDU]On Behalf Of Dr. Imre Bartfai Sent: Friday, February 11, 2000 03:38 To: PICLIST@MITVMA.MIT.EDU Subject: Re: CRC-16 for the PIC16C5X Importance: Low Hi, here is the appropriate code fragment for your convenience. BTW the 16-bit CRCUpd below is written by me, too. Regards, Imre On Thu, 11 Feb 1999, Wing Kent Kwan wrote: > Hi. > have someone have CRC32 PIC source file? > THANK > > > > > > > ; What you need is to define the polynomial. E. g. for the CCITT one: > > > > > > poly0 equ 0x21 > > > poly1 equ 0x10 > > > > > > ; Do not forget to initialize = before the 1st call > > > ; e. g. with 0xFF or with zeroes, as the particular CRC algorithm > > > ; requires. > > >