- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Solved! Go to Solution.
- Labels:
-
TLE4999C8
- Tags:
- TLE4999C8 CRC
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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