CRC16 Calculation using HCS08 assembler

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

CRC16 Calculation using HCS08 assembler

1,506 Views
genesis57
Contributor I

Hi There

 

I'm a new member in this forum, and I'm looking for your help.

I was searching information for resolving CRC whith a 16 bit generator polynomial x^16+x^15+x^2+1, using a microcontroller S08 (such as 9s08GB60), but I didn' find it.

It's necessary to process a 64 bytes string of data, before it was sent.

I read about one method, using a 512bytes table and a few lines of assembler code, but I don't know how.

 

Regards,

 

Daniel

Labels (1)
0 Kudos
1 Reply

332 Views
bigmac
Specialist III

Hello Daniel, and welcome to the forum.

 

The following thread may be of interest as it includes both 16-bit and 8-bit CRC calculation methods.

 http://forums.freescale.com/freescale/board/message?board.id=8BITCOMM&message.id=1152

 

This thread show one look-up table method, but for an 8-bit CRC.  I don't know whether using such a small table is feasible for a 16-bit CRC.

 

Regards,

Mac

 

0 Kudos