(51CTO official C/C development engineer (1090119), please enter your ID for verification. Cyclic redundancy code CRC check technology is widely used in the field of measurement and control and communication. CRC calculation can be terminated by dedicated hardware, but for low-cost microcontroller systems, if the CRC check is terminated without hardware support, the important problem is how to terminate the CRC calculation by software, that is, the problem of CRC algorithm. Three algorithms will be provided here, they are slightly different, one is suitable for microcontroller systems with very strict program space but low CRC calculation speed requirements, and the other is suitable for large program space and CRC calculation speed requirements are relatively high. High computer or microcontroller system, the last one is suitable for the microcontroller system whose program space is not too large and the CRC calculation speed is not too slow.
crc.pdf)