Following details needs to be taken care while computing CRC on the primary device
side:
- An 8-bit CCITT polynomial is used
for CRC computation as shown in Equation 1
Equation 1.
- The CRC value to be initialized
to 0xFF.
- The CRC computation starts from
Target ID + write bit byte and continue till end of data bytes.
- Within a byte the CRC is computed in a bit by bit manner starting with MSB bit
of the input byte.
- Example to verify correctness of CRC computation
- For input byte of 0x12, the CRC byte becomes 0x8D from the initial value
of 0xFF.