If CRC_EN = 1, cyclic redundancy check
(CRC) gets enabled otherwise CRC is disabled.
- In write operation
Primary device is expected to send the CRC byte
computed on the data and MCx83xx is expected to use the CRC byte to check the
correctness of data received. The data to be included in CRC computation is as
follows:
- Target ID + write
bit.
- Control word – 3
bytes
- Data bytes – 2/4/8
bytes
- In read operation
MCx83xx send CRC byte at the end of data bytes.
The primary device is expected compute CRC to check for correctness of data sent
by MCx83xx by comparing computed CRC against received CRC byte. The data to be
included in CRC computation is as follows:
- Target ID + write
bit
- Control word – 3
bytes
- Target ID + read bit
- Data bytes – 2/4/8
bytes
Note: EEPROM parity does not affect the
I2C CRC computation. I2C CRC is computed strictly on the
bytes specified above.