CRC Preset and Balance

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?

+5
source share
3 answers

CRC .

- , CRC , CRC.

, . + CRC CRC, 0x1D0F, .


, . , -, CRC.

  • CRC .
  • CRC, CRC ( reset).
  • , CRC .

CRC, - , :

http://www.repairfaq.org/filipg/LINK/F_crc_v31.html#CRCV_001

+4

, . CRC, .

Preset - , , - XOR'd .

, .

0

- .

16- CRC, 24- Residue. , .

CRC, , CRC.

edit: Ah-hah, , "24-" .

0

All Articles