MATLAB: Generate a checksum compliant with ISO 13239 using the General CRC Generator block

checkCommunications Toolboxcyclicredundancy

How do I generate a checksum compliant with ISO 13239 using the 'General CRC Generator' block?

Best Answer

In order to generate a checksum compliant with ISO 13239 using the 'General CRC Generator' block, ensure the 'General CRC Generator' dialog parameters are set as follows:
- Initial states: 1
- Direct method: checked
- Reflect Input Bytes: checked
- Reflect checksums before final XOR: checked
- Final XOR: 1
- Checksums per frame: 1
Additionally, ensure the most significant bit of the input signal corresponds to the first element of the input binary column vector.
The output binary column vector consists of the the original word with the cyclic redundancy code bits appended to the end. The first element of the output binary vector corresponds to the most significant bit of the input signal.