JAJSLQ4C May 2021 – June 2022 TMP126-Q1
PRODUCTION DATA
Table 8-2 defines the CRC calculation rule.
Temperature | Digital Output |
---|---|
CRC Width | 16 bits |
Polynomial | X16 + X12 + X5 + 1 (1021h) |
Initial seed value | FFFFh |
Input data reflected | No |
Result data reflected | No |
XOR value | 0000h |
Example | CRC of 0xABCD = 0xD46A |
Figure 8-17 shows the CRC Module block diagram. The CRC calculation is done on the command word and the data block. The module consists of a 16-bit shift register and 3 exclusive-OR gates. The register starts with the seed value FFFFh and the module performs an XOR function and shifts its content until the last bit of the register string is used. The final value of the shift register checksum is output onto the SIO line by the TMP126-Q1 at the end of the data block for the host to validate the transaction.
The following is an example of C code programming example to calculative the communication CRC: