Hi Randie! It is not as simple as just giving a polynomial for the calculation of the CRC There is a lot of different "standards" like: How to initialise before calc. all zeroes all ones ... How to do with the result . Invert or not Transmission order? LSB , Should the crc be calculated before bit reversal or.... There is a very good article explaining most of this at this link http://members.iquest.net/~jbuchana/CRC_explained.html I f You have a byte sequence i can try to calculate the CRC for You > ---------- > FrŒn: Dr. Imre Bartfai[SMTP:root@PROF.PMMF.HU] > Svara till: pic microcontroller discussion list > Skickat: den 1 december 1998 08:19 > Till: PICLIST@MITVMA.MIT.EDU > AngŒende: Re: CRC-16 > > <> > Hi, > here is an implementation for your convenience. Remarks: > - poly is a CRC polynomial, e.g. 0x1021 > - crcval is > > Maybe the implementation is not optimal, but I use it extensively, w/o any > problems. > > Imre > > > On Mon, 30 Nov 1998, Ohtsji, Randie wrote: > > > Hello, > > > > I have seen a few implementations of generating CRC values but I wanted > to > > know if there is some known values which can be used to check if the CRC > > algorithm is correct, as all the routines I have come across generate > > different CRC values. > > > > For example, if the CRC is to be generated on a single byte, in this > case > > the value 'FF', what should the CRC value be? > > > > Also, if the CRC is to be generated on a string of bytes, such as, 'A0', > > 'FF', '05', '02', '00', 'DE' etc. what should the end CRC value be? > > > > I am looking for a list inputs and outputs from a known good CRC-16 > > generator. > > > > I think the poly for CRC-16 is X16, X15, X2, and X0. > > > > I am trying to do this on a 16C63. > > > > Any help would be appreciated. > > > > Randie > > randie.ohtsji@glenayre.com > > > > >