13.3.1.1 Data Endian Convention for the CRC Engine
If the input stream is expressed as a byte stream, Din, where Din = {D0, D1, D2, D3, D4, D5, D6, D7, D8, D9, D11, D12, D13, D14, D15, D16, ...}, then data should be fed to the CRC engine as follows:
- If operating in Byte mode, the CRCDIN register should be written in the following order:
- {00, 00, 00, D0}
- {00, 00, 00, D1}
- {00, 00, 00, D2}
- {00, 00, 00, D3}
- {00, 00, 00, D4}
- {00, 00, 00, D5}
- {00, 00, 00, D6}
- ......
- .....
- If operating in word mode, the CRCDIN register should be written in the following order:
- {D3, D2, D1, D0}
- {D7, D6, D5, D4}
- {D11, D10, D9, D8}
- ......
- ......