4. Crc8
4.1. Function description:
This demo shows the calculation of 8 bits CRC.
Configure the size of the polynomial is 8 bits for CRC8 calculation.
Configure the CRC8.
Write data to CRC calculator to start hardware calculation.
Calculate the result of the CRC8 by software, then to compare with the hardware.
4.2. Detail configuration:
4.2.1. Crc8
Initial value |
Reverse input |
Reverse output |
Polynomial size |
Coefficients |
Xor value |
0 |
no |
no |
8 bits |
0x07 |
0 |
4.2.2. Crc8/itu
Initial value |
Reverse input |
Reverse output |
Polynomial size |
Coefficients |
Xor value |
0 |
no |
no |
8 bits |
0x07 |
0x55 |
4.2.3. Crc8/rohc
Initial value |
Reverse input |
Reverse output |
Polynomial size |
Coefficients |
Xor value |
0xFF |
no |
no |
8 bits |
0x07 |
0 |
4.2.4. Crc8/maxim
Initial value |
Reverse input |
Reverse output |
Polynomial size |
Coefficients |
Xor value |
0 |
byte |
byte |
8 bits |
0x07 |
0x31 |
4.3. Test result:
If the output result is same as the result calculated by software according to the theory, then print "pass", or print "fail".
4.4. IO connection:
None