SPRUII0F May 2019 – June 2024 TMS320F28384D , TMS320F28384D-Q1 , TMS320F28384S , TMS320F28384S-Q1 , TMS320F28386D , TMS320F28386D-Q1 , TMS320F28386S , TMS320F28386S-Q1 , TMS320F28388D , TMS320F28388S
The GCRC module is capable of transforming the data that is written to the DATAIN register. This data is stored in the CRCDATATRANS register and can be used for debugging purposes. The module is capable of applying three different transformations to the data provided by the user. The first is the endianness transformation. Table 44-2 shows how setting this byte in the control register influences the data that is used for the CRC.
DATATYPE | Endianness | DATASIZE | DATAIN | DATAOUT | Valid Bits for CRC Calculation (BITS_VALID) |
---|---|---|---|---|---|
8 | Little | 8 | 0x------AB | 0x------AB | 8 |
8 | Little | 16 | 0x----ABCD | 0x----ABCD | 16 |
8 | Little | 32 | 0xABCD EFGH | 0xaABCD EFGH | 32 |
8 | Big | 16 | 0x----ABCD 0xABCD--- | 0xCDAB 0000 | 16 |
8 | Big | 32 | 0xABCD EFGH | 0xGHEF CDAB | 32 |
16 | Little | 16 | 0x----ABCD | 0x----ABCD | 16 |
16 | Little | 32 | 0xABCD EFGH | 0xABCD EFGH | 32 |
16 | Big | 32 | 0xABCD EFGH | 0xEFGH ABCD | 32 |
32 | Little | 32 | 0xABCD EFGH | 0xABCD EFGH | 32 |
32 | Big | 32 | 0xABCD EFGH | 0xABCD EFGH | 32 |
All Other Combinations | 8 | 0x------AB 0x----AB-- 0x--AB---- 0xAB------ | 0xAB00 0000 | 8 | |
16 | 0x----ABCD 0xABCD--- | 0xABCD 0000 | 16 | ||
32 | 0xABCD EFGH | 0xABCD EFGH | 32 |