-
Notifications
You must be signed in to change notification settings - Fork 52
Description
Frank, can I use this to calculate the CRC for AD74412R?
From the data sheet:
SPI CRC:
To ensure that data is received correctly in noisy environments, the AD74412R has a CRC implemented in the SPI interface. This CRC is based on an 8-bit CRC. The device controlling the AD74412R generates an 8-bit frame check sequence using the following polynomial:
C(x) = x8 + x2 + x1 + 1
This frame check sequence is added to the end of the data-word, and the 32-bit data-word is sent to the AD74412R before taking the SYNC high pin.
The user must supply a frame 32 bits wide containing the 24 data bits and 8 CRC bits. If the CRC check is valid, the data is written to the selected register. If the CRC check fails, the data is ignored, the SPI_CRC_ERR status bit in the ALERT_STATUS register is asserted, and the ALERT pin goes low.
It looks like the FastCRC is for BYTES and this device is using bits.
Am i wrong and can i use your lib for BITs?