MPC5643L CRC-8 calculation result is strange

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

MPC5643L CRC-8 calculation result is strange

1,472 Views
fangfq
Contributor III

I am trying to use CRC module for CRC-8 calculation. The result I am getting is strange. For example, I put 0x00000002 to INP, 0x00000000 to STAT, and get result equals to 0x32. But it should be 3A.

For CRC-8, there are very few description in the reference manual. Does it require any bit reversal or byte swapping? Do I need to use SWAP or INV bits?

Thanks.

0 Kudos
Reply
6 Replies

1,256 Views
fangfq
Contributor III

Can anyone help me with this question? Thanks in advance!

0 Kudos
Reply

1,256 Views
yaort_amoureux
Contributor II

Were you able  to figure it out ? 

0 Kudos
Reply

1,256 Views
martin_kovar
NXP Employee
NXP Employee

Hello,

Could you please write me, which microcontroller you use?

Regards,

Martin

0 Kudos
Reply

1,256 Views
fangfq
Contributor III

Oh, sorry I missed that. I am using MPC5643L. Thanks,.

0 Kudos
Reply

1,256 Views
fangfq
Contributor III

Can anyone help me with this question? Thanks in advance!

0 Kudos
Reply

1,256 Views
fangfq
Contributor III

Can anyone help me with this question? Thanks in advance!

0 Kudos
Reply