SBAS590E March 2016 – June 2020 ADS131A02 , ADS131A04
PRODUCTION DATA.
Refer to the PDF data sheet for device specific package drawings
The CRC byte is the 16-bit remainder of the bitwise exclusive-OR (XOR) operation of the data bytes by a CRC polynomial. The CRC is based on the CRC-CCITT polynomial X16 + X12 + X5 + 1.
The binary coefficients of the polynomial are: 1 0001 0000 0010 0001. Calculate the CRC by dividing the data bytes (with the XOR operation, thus excluding the CRC) with the polynomial and compare the calculated CRC values to the provided CRC value. If the values do not match, then a data transmission error has occurred. In the event of a data transmission error, read or write the data again.
The following shows a general procedure to compute the CRC value. Assume the shift register is 16 bits wide:
NOTE
The CRC algorithm used here employs an assumed set X16 bit. This bit is divided out by left-shifting the X16 bit 16 times out of the register prior to XORing with the polynomial register. This process makes the CRC calculable with a 16-bit word size.
The Communication Methods for Data Integrity Using Delta-Sigma Data Converters application report provides more information about CRC implementation, including example code.