Chapter 6 Applied Instruction 
6-415 
If the value of the right-most bit which is shifted to the right is 0, the data gotten from 
step 3 is stored in the 16-bit register. Otherwise, the logical operator XOR takes 
16#A001 and the data in the 16-bit register, and performs the logical exclusive OR 
operation on each pair of corresponding bits. The operation result is stored in the 
16-bit register. 
Repeat step 3 and step 4, and perform the operation on the 8-bit message. 
Repeat step 2~step 5, and get the next 8-bit message. Perform the operations on all 
messages. The final result in the 16-bit register is the CRC check code. Notice that 
the low 8-bit data in the 16-bit register is interchanged with the high 8-bit data in the 
16-bit register before the CRC check code is put into the check code of the message