ZHCSEV8D March 2016 – January 2018 ADS131A02 , ADS131A04
PRODUCTION DATA.
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: 10001000 00010001. 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 list 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 it 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.