SPC/ SSM CRC calculation mismatch for TLE4999C8

Announcements

Measure CO2 When It Matters - Infineon’s XENSIV™ PAS CO2 now comes in SparkFun Red. Check it now!

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
aditya_barve
Level 1
Level 1
10 sign-ins 5 sign-ins First reply posted

Hello, 

We are using TLE4999C8 Hall Sensor, for our application we wanted to implement the Short Serial Message (SSM) feature. 

We are able to successfully communicate with TLE4999C8 using SENT interface, however we are not able to verify the 4 bit CRC. The CRC calculated by  using the alogrithm mentioned in the TLE4999C8 user manual does not match with the CRC received in the frame for both Short serial message and SPC. 

Could you please help us with some sample code to calculate the 4bit, 6bit and 8bit CRC for the short serial message format and SPC.  

 

Thank you,

Aditya

0 Likes
1 Solution
Deepa_V
Moderator
Moderator
Moderator
First comment on KBA 50 likes received 250 replies posted

Hi @aditya_barve ,

The 4 bit CRC is calculated using a polynomial x4+x3+x2+1 with a seed value of 0101B. The remainder after the
last data nibble is transmitted as CRC. The 6 bit checksum is calculated using a polynomial (x6+ x + 1) with a
seed value of 010101B and the 8 bit checksum is calculated using a polynomial (x8+ x5+ x3+ x2+ x + 1) with a
seed value of 01010101B.
The CRC calculation method is based on the recommended implementation in the SENT standard 2016. 

Please ensure that you are using the correct seed value for the CRC calculation. Also, there is a C code implementation provided for the same in Section 2.3 of the user manual which you can use for reference. 

Hope this helps ! 

Best regards,

Deepa

View solution in original post

0 Likes
1 Reply
Deepa_V
Moderator
Moderator
Moderator
First comment on KBA 50 likes received 250 replies posted

Hi @aditya_barve ,

The 4 bit CRC is calculated using a polynomial x4+x3+x2+1 with a seed value of 0101B. The remainder after the
last data nibble is transmitted as CRC. The 6 bit checksum is calculated using a polynomial (x6+ x + 1) with a
seed value of 010101B and the 8 bit checksum is calculated using a polynomial (x8+ x5+ x3+ x2+ x + 1) with a
seed value of 01010101B.
The CRC calculation method is based on the recommended implementation in the SENT standard 2016. 

Please ensure that you are using the correct seed value for the CRC calculation. Also, there is a C code implementation provided for the same in Section 2.3 of the user manual which you can use for reference. 

Hope this helps ! 

Best regards,

Deepa

0 Likes