[Q] How to calculate CRC

Thread Starter

Mohannad

Joined Mar 15, 2011
2
Hello every one :)

I would to write simple code in PIC 16F877A (in MPLAB), to communicate with a HMI
that uses Modbus protocol .

Is there any one have wrote these code , because I want the CRC calculating block

thanks alot...

Best Regards,
Mohannad.​
 
Last edited:

t06afre

Joined May 11, 2009
5,934
Hello every one :)

I would to write simple code in PIC 16F877A (in MPLAB), to communicate with a HMI
that uses Modbus protocol .


Is there any one writes these code , because I want the CRC calculating block

thanks alot...

Best Regards,

Mohannad.
MPLAB is just an IDE. Which program language/compiler do you use?
 

Thread Starter

Mohannad

Joined Mar 15, 2011
2
MPLAB is just an IDE. Which program language/compiler do you use?
Iam using assembly, this is simple code

START
MOVLW H'00B4'
MOVWF H'A0'
GOTO START
 
Last edited:

Papabravo

Joined Feb 24, 2006
21,159
The trouble with CRC algorithms is finding test cases that you know the answer to. If you code it and it doesn't work -- what do you do then?
 
Top