crc16 calculation

Status
Not open for further replies.

raman00084

Full Member level 6
Joined
Nov 29, 2010
Messages
362
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,298
Activity points
4,006
I am using dspic33ep512mu810. pic ccs c complier.
I am new to CRC kindly guide me how to calculate 16bit crc
for example the Modbus RTU data is
01 05 00 02 FF 00
and CRC for the above is 2D FA

CASE 1: 01 05 00 02 FF 00 how to get 2D FA (generate crc)

CASE 2: how to check 2D FA is correct for 01 05 00 02 FF 00 ( check crc)
 

Hi,

you did not do an internet search for "MODBUS CRC algorithm"?

200.000 hits with: Descriptions, calculatins, code, discussions, PDFs, videos....
All is available. Just use it.

or do a search for: "MODBUS CRC online calculator"
copy and paste " 01 05 00 02 FF 00 " and get back " 0xFA2D"

Klaus
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…