I'm trying to use the PEC features of the AD5421 DAC. Is there any existing sample code using this feature? Or can you provide information on how the crc-8 calculation is implemented?
You can find a short description here:
The following datasheet provides a description of how CRC-8 is calculated (see CRC CALCULATION section from the datasheet):
There is also a driver which implements a CRC-8 calculation that you might want to look at. It is for a different device than yours but the polynomial used is the same. You can look for the following function: AD7176_ComputeCRC8().
Retrieving data ...