6. MODBUS COMMUNICATION PROTOCOL
IMR02C16-E3
49
The flow chart of CRC-16
START
FFFFH
→
CRC Register
0
→
n
Shift CRC Register right 1 bit
Carry flag is 1
No
Yes
CRC Register
⊕
A001H
→
CRC Register
n + 1
→
n
No
Yes
No
Yes
END
CRC Register
⊕
next byte of the message
→
CRC Register
Reverse with high-order byte and low-order byte of CRC register
n
>
7
Is message
complete?
The ⊕ symbol indicates an exclusive OR operation. The symbol for the number of data bits is n.
Comments to this Manuals