The pseudo code gives the algorithm that is used within the AD7616 for calculating the CRC code word. The polynomial used for the calculation is x^8 +x^2 +x +1 .

The initial CRC word used for the calculation is 8 bits in length, with each bit =0.

The x variable is the number of channel pairs in the sequence (in manual mode x = 1 i.e. one channel pair. In sequencer mode x = the number of layers in the sequence).

Then for each pair of channels, a "crc" word is calculated. First "crc1" is calculated using the ADC A result, and the previous result of "crc". The 8 bit word is calculated, per bit, using the XOR calculation described on page 39 of the datasheet. Secondly, the new "crc" is calculated using the ADC B result and "crc1", again using the XOR calculation on page 39.

The above step is repeated for each layer of the sequence (if sequencer is used).

Hopefully this helps. Please ask again if you need further clarification.

The pseudo code gives the algorithm that is used within the AD7616 for calculating the CRC code word. The polynomial used for the calculation is x^8 +x^2 +x +1 .

Hopefully this helps. Please ask again if you need further clarification.