Maker Pro
Maker Pro

Pic CRC

D

Dan Henry

Has anyone got any info/routines for CRC/Hamming/Golay etc for pic
micros... If not, I code my own.

Thanks.

SeG.

Yes, and I sent a ZIP file of it all, but the e-mail kept bouncing.

I give up!
 
R

Rich Webb

Has anyone got any info/routines for CRC/Hamming/Golay etc for pic
micros... If not, I code my own.

Google for "A painless guide to CRC error detection algorithms" by Ross
Williams. After reading it, you should find it fairly straightforward to
put together a table-driven implementation.
 
Sorry Dan... I Hadn't set my news reader up correctly. The addr on this
post should be correct. I would really appreciate those zips.

Thanks.

SeG.
 
D

Dan Henry

Sorry Dan... I Hadn't set my news reader up correctly. The addr on this
post should be correct. I would really appreciate those zips.

Thanks.

SeG.

I'll not be attempting anymore e-mails until my patience is restored.
To show my earnest intentions however, I'll simply point you to a
document of mine where you can extract a standard CRC implementation
that is a particularly good tradeoff between code size and speed when
realized on a PIC (using the HI-TECH PICC compiler, at least). Please
refer to Fcs16_b() on PDF page 11 (document page 8) of:

http://dhenry.home.sprynet.com/hdlcbcc.pdf

Since you are only interested in the "CRC/Hamming/Golay etc", you'll
have to ignore the rest of the protocol drivel.
 
Top