SLAU131Y October 2004 – June 2021
The software CRC implementation is described in the CRC Implementation With MSP430 application report (SLAA221). It presents two algorithms, a bitwise method and a table method. These can be used to calculate the CRC for code or data memory for verification with the linker-generated CRC value.
Some MSP430 devices have hardware modules for CRC. See the Family User’s Guide for your device family for a description of how to use such hardware CRC modules. Code examples are provided in MSP430Ware that use the hardware CRC module to verify data. Be sure to use the same bit order in the CRC calculations as the linker-generated CRC. The CRC16 module provides a bit-reversed register pair for CRC16 operations to support both conventions. See Appendix C for an example.