The MAX22190/MAX22192 CRC error detection of the serial data can be enabled to minimize incorrect operation or misinformation caused by data corruption of the SDI and SDO signals. To enable the error detection, set the SPI interface mode to SPI Mode 0 or SPI Mode 2 by configuring the M1 and M0 inputs.
When M0 is set to 0 (M1 is 0 or 1), the SPI mode is configured to 24-bit frame length and CRC error detection is enabled. When error detection is enabled, the MAX22190/MAX22192 do the following things:
Perform the CRC calculation on the first 19 bits of the SDI data that it receives from the microcontroller and compare with the last 5 bits of the SDI data if they are identical.
Calculate the CRC bits on the first 19 bits of the SDO data and append the 5 bits of CRC to the SDO data that it sends to the microcontroller.
This ensures that both the data that the device receives from the microcontroller (setting/configuration) and the data that it sends to the microcontroller (diagnostics/status) have a low likelihood of undetected errors.
The CRC error detection is supported for both independent slave (SPI Mode 0) and daisy-chain (SPI Mode 2) operation mode.