>My fellow Picsters... Let me make one thing perfectly clear... >I'm confused. I had though I'd known how to implements CRC-16. >But, after a phone conversation dealing with LRC, of which I'd >not heard of before, I found that I had forgotten the method >of implementing CRC-16. >I'm not really looking for the PIC source for this, as it >will be used in an 8051. If anyone post either 8051 or PIC >source, I wouldn't complain. I'd slap it into my source code >library so fast that it would make my hard-drive spin. >Mainly seeking the description of the method. If you look up in the application note 27 from dallas (http://www.dalsemi.com/DocControl/PDFs/app27.pdf) you will find a description of a 8-bit CRC (a.k.a DOW-CRC) implementation on an intel processor. This also gives a quite good description of CRC, and it should not be to difficult to expand it to CRC-16. The polynomial for CRC-16 is X16 + X15 + X2 + 1 -- Jon Anders Haugum jonah@sn.no http://www.sn.no/~jonah