i am not sure only one way to find out try and try again
Dallas CRC16 Routines (Tom Estes)
https://www.picbasic.co.uk/forum/showthread.php?t=1745
I haven't used the CRC16 routines, but Tom's CRC8 worked great on a project of mine.
<br>
DT
Thanks for replying me.
I tried the given code, but I am not able to write it in C#.Net. As I don't know the varaible type of CRC16. Can you please explain me?
Dear Andre
i need the sample code for implementing modbus slave on a PIC16F877A
please help me
Dear Andre
thank you for the code you have posted,actually i am trying to use the PIC16F877A
another thing i have copy and pasted your code to proton+ compiler and i got some error messages one of them was
for this part of the code:
IF CRC16.Bit0=1 Then '<------ error here is saying Invalid Cast for this type of variable
CRC16=$A001^(CRC16>>1)
Else
CRC16=CRC16>>1
EndIF
i don't know what does that means,please help me.
Best Regards
First of all this is PBP forum list not Proton.
Second, as this is PBP, all examples are for this compiler. The syntax is a little different.
The syntax of the line IF CRC16.Bit0=1 Then means: Set bit 0 of the word variable CRC16.
You have to open your manual and find how this can be accomplished in your Compiler.
Ioannis
Bookmarks