I work with a device that requires me to generate 16-bit CRC.
The technical description of the device indicates the following definition of CRC:
CRC Type Length Polynomial Direction Preset Residue
CRC-CCITT 16 bits x16 + x12 + x5 + 1 Forward FFFF (16) 1D0F (16)
where preset = FFFF (16 bits) and Residue = 1D0F (16 bits)
I searched the CRC algorithm and found this link:
http://www.lammertbies.nl/comm/info/crc-calculation.html
He has both. CRC-CCITT (0xFFFF) CRC-CCITT (0x1D0F)
What is the difference between preset and remainder?
Mike
source
share