Encoding the CRC as ASCII characters - WXT530

WXT530 Series User Guide

Document code
M211840EN
Revision
F
Language
English (United States)
Product
WXT530
Document type
User guide

The 16-bit CRC is encoded to three ASCII characters by using the following algorithm:

1st character = 0x40 OR (CRC shifted right 12 bits)

2nd character = 0x40 OR ((CRC shifted right 6 bits) AND 0x3F)

3rd character = 0x40 OR (CRC AND 0x3F)

The three ASCII characters are placed between the data and <cr><lf>. Parity is applied to all three characters, if selected for the character frame.

The CRC computation code is added to the end of the response, if the first letter of the command is sent by using lower case.