SBOSA45C february 2022 – may 2023 TMP1826
PRODUCTION DATA
The TMP1826 implements a cyclic redundancy check (CRC) mechanism for data integrity check and communication robustness. Table 9-4 lists the properties of a 8-bit CRC.
CRC-8 RULE | ATTRIBUTES |
---|---|
CRC width | 8 bits |
CRC polynomial | x8 + x5 + x4 + 1 (0x31) |
Initial seed value | 00h |
Input data reflected | Yes |
Output data reflected | Yes |
XOR value | 00h |
When a new transaction is done, the shift register is initialized with the seed value of 00h and the data is shifted in LSB first. The CRC result is always part of the 64-bit unique address and is computed on the 56-bits that precede it. Additionally, when the host writes to the scratchpad-1 for the registers and scratchpad-2 for the memory, the device sends the CRC computed on the data bytes to provide a data integrity check for the host on the transaction. When the host reads the scratchpad-1 for reading the temperature register, the device shall append the CRC after the 8 bytes of scratchpad are sent.
The host must recalculate the CRC and compare it against the received CRC from the device. This is done by shifting the read data from the device along with CRC bits. If there is no bus error, then the shift register at the end of the bit shift will result in 00h. When writing the data to the device, the host must check the CRC received by processing the write data to ensure that there were no transmission errors and take appropriate corrective action before performing the next function.