SLAU893B October 2023 – July 2024 MSPM0C1103 , MSPM0C1103-Q1 , MSPM0C1104 , MSPM0C1104-Q1
When working with half-word or word input data, the input byte order can be configured as either little endian or big endian. The default configuration is little endian. To reverse the byte order when using half-word or word inputs, set the INPUT_ENDIANNESS bit in the CRCCTRL register.
Reversing the endianness will cause the following translation for half-word and word writes:
Endianness | Data Written to CRCIN | Data Applied to CRC Logic |
---|---|---|
0 (little) | 0x1234 | 0x1234 |
1 (big) | 0x1234 | 0x3412 |
0 (little) | 0x12345678 | 0x12345678 |
1 (big) | 0x12345678 | 0x78563412 |