Thanks Steve,
I'm tighter on cycles than ROM, and thought this might save folks some
digging.

Garst

Steve Underwood wrote:
> 
> Hi Garst,
> 
> This is the commonest routine for CRC16 generation on PCs. You will find
> minor variations of it all over the place. The table isn't bit enough to
> do too much harm to a PC's cache, so it tends to work quite well there.
> It works well on a small MCU without cache, too. However, calculating
> the CRC directly, instead of by table, can be more compact if ROM space
> is tight.
> 
> Regards,
> Steve
> 
> Garst R. Reese wrote:
> 
> >Attached is a crc16 table adapted from linux irda code. It will be
> >needed for the mmc code. The gurus might want to check it. Corrections
> >or better ideas welcome.

Reply via email to