SLAU846A June 2023 – October 2023 MSPM0G1105 , MSPM0G1106 , MSPM0G1107 , MSPM0G1505 , MSPM0G1506 , MSPM0G1507 , MSPM0G3105 , MSPM0G3105-Q1 , MSPM0G3106 , MSPM0G3106-Q1 , MSPM0G3107 , MSPM0G3107-Q1 , MSPM0G3505 , MSPM0G3505-Q1 , MSPM0G3506 , MSPM0G3506-Q1 , MSPM0G3507 , MSPM0G3507-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 |