EasyManua.ls Logo

Infineon XENSIV TLI4971 - Cyclic Redundancy Check

Infineon XENSIV TLI4971
31 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Application Note 21 of 31 Rev. 1.30
2022-03-01
Current Sensor TLI4971
Programming Guide and User Manual
4.4 Cyclic Redundancy Check
The CRC calculation is based on the polynomial x8+x4+x3+x2+1. Table 15 describes the CRC calculation. The seed
word is defined as 0xAAhex. The CRC calculation of the EEPROM is performed byte by byte, starting from the
EEPROM line three (address 43
hex
). After reaching the end of the EEPROM the line 0 (address 40
hex
) to line 2 are
appended. The CRC byte is not used for the calculation. The end word is defined as 0xFFhex.
SEED (0xAA
hex
)
EEPROM line3 [15:8]
Result
XOR
EEPROM line3 [7:0]
Result
XOR
EEPROM line i [15:8]
Result
XOR
EEPROM line i [7:0]
XOR
do from i = 4 to i = 17
Result EEPROM line i [15:8]
Result
XOR
EEPROM line i [7:0]
XOR
do from i = 0 to i = 1
Result EEPROM line 2 [15:8]
Result
XOR
End word (0xFF
hex
)
XOR
CRC value to store
(EEPROM line 2 [7:0]
Figure 14 flow chart CRC calculation

Related product manuals