Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

crc16 calculation

Status
Not open for further replies.

raman00084

Full Member level 6
Full Member level 6
Joined
Nov 29, 2010
Messages
375
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,298
Activity points
4,076
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

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top