MD320/MD320N User Manual Appendix
DQGFRPSDUHVWKHFDOFXODWHGYDOXHWRWKHDFWXDOYDOXHLWUHFHLYHGLQWKH&5&¿HOG,IWKHWZR
YDOXHVDUHQRWHTXDODQHUURUUHVXOWV
The CRC is started by 0xFFFF.Then a process begins of applying successive eight-bit bytes of
the message to the current contents of the register. Only the eight bits of data in each character
DUHXVHGIRUJHQHUDWLQJWKH&5&6WDUWDQGVWRSELWVDQGWKHSDULW\ELWGRQRWDSSO\WRWKH
CRC.
'XULQJJHQHUDWLRQRIWKH&5&HDFKHLJKWELWFKDUDFWHULVH[FOXVLYH25HGZLWKWKHUHJLVWHU
FRQWHQWV7KHQWKHUHVXOWLVVKLIWHGLQWKHGLUHFWLRQRIWKHOHDVWVLJQL¿FDQWELW/6%ZLWKD]HUR
¿OOHGLQWRWKHPRVWVLJQL¿FDQWELW06%SRVLWLRQ7KH/6%LVH[WUDFWHGDQGH[DPLQHG,IWKH/6%
ZDVDWKHUHJLVWHULVWKHQH[FOXVLYH25HGZLWKDSUHVHW¿[HGYDOXH,IWKH/6%ZDVDQR
exclusive OR takes place. This process is repeated until eight shifts have been performed. After
WKHODVWHLJKWKVKLIWWKHQH[WHLJKWELWE\WHLVH[FOXVLYH25HGZLWKWKHUHJLVWHUVFXUUHQWYDOXH
DQGWKHSURFHVVUHSHDWVIRUHLJKWPRUHVKLIWVDVGHVFULEHGDERYH7KH¿QDOFRQWHQWVRIWKH
UHJLVWHUDIWHUDOOWKHE\WHVRIWKHPHVVDJHKDYHEHHQDSSOLHGLVWKH&5&YDOXH
:KHQWKH&5&LVDSSHQGHGWRWKHPHVVDJHWKHORZRUGHUE\WHLVDSSHQGHG¿UVWIROORZHGE\
the high-order byte.
XQVLJQHGLQWFUFBFKNBYDOXHXQVLJQHGFKDUGDWDBYDOXHXQVLJQHGFKDUOHQJWK
{
XQVLJQHGLQWFUFBYDOXH [))))
int
i;
while(length--)
{
FUFBYDOXHA GDWDBYDOXH
IRUL LL
{
if(crc_value&0x0001)
{
FUFBYDOXH FUFBYDOXH!!A[D
}
else
{
FUFBYDOXH FUFBYDOXH!!
}
}
}
efesotomasyon.com
Summary of Contents for MD320 Series
Page 9: ...z G Gw efesotomasyon com...
Page 16: ...Safety and Precautions MD320 MD320N User Manual efesotomasyon com...
Page 17: ...w Gp efesotomasyon com...
Page 40: ...Product Information MD320 MD320N User Manual efesotomasyon com...
Page 41: ...t G Gl Gp efesotomasyon com...
Page 59: ...v G Gk efesotomasyon com...
Page 67: ...m Gw G efesotomasyon com...
Page 93: ...w Gk efesotomasyon com...
Page 154: ...Parameter Description MD320 MD320N User Manual efesotomasyon com...
Page 155: ...ltjGn efesotomasyon com...
Page 159: ...m Gk G Gz efesotomasyon com...
Page 175: ...h efesotomasyon com...