Hi Bernard, It might be difficult to compare your results to an unknown routine, because there are 4 different ways (or more) to do the same thing but with the different result! First thing that may very is the order of data bits you send to the CRC algorithm (the most or least significant bit first). Then, the second thing is the way CRC register is organized - also the bits order is important there, or whether you shift it left or right. So, I would suggest to tweak these two settings until the result coincides with the good routine. Hope it helps! Nikolai Saturday, July 28, 2001, 4:02:46 AM, bernard wood wrote: > Hi all, > I've coded routines but need to verify that they do indeed produce the > correct CRC. > To do this, I need 2 known CRC check values. These are obtained by running > thru > the "standard" check string "123456789" of your algorithm and obtaining the > result. > I think that the check with CRC-16 on "123456789" is BB3Dh (can someone > verify this?) > Can someone (with known good code) please tell me > what the 2 check CRC's are for both > CRC-CCITT (x^16+x^12+x^5+1, or POLY=1021h) > and > CRC-16 (x^16+x^15+x^2+1, or POLY=8005h) > or alternatively, send me known good code in C or VB6? > Thanks in advance, > Bernard Wood > New Zealand > -- > http://www.piclist.com hint: The PICList is archived three different > ways. See http://www.piclist.com/#archives for details. -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu