Data Sheet

Table Of Contents
Seite 13 von 44
Copyright © 2021, LZE GmbH
www.lze-innovation.de
SPI Communication
4.2.3 CRC Calculation
The CRC value in register 0x0108 is calculated as bitwise XOR operation of the SPI read data and the
previous CRC value. It is recommended to implement an identical CRC calculation in the SPI master and
compare the CRC value from register 0x0108 to the calculated value.
Please note that the SPI command 0x0000 is regarded as read command, too. Hence its constant result
of 0x8000 is also used for the CRC calculation. The read value from 0x0108 itself is not used for the CRC
calculation.
The following drawing depicts an SPI cycle where all values used for CRC calculations are marked red.