Member Login
member
passwd
remember me on
this computer.

- join now -
- forgot username or password? -

Jump to a Date

Sponsored Communities
Cool stuff
Select a topic of interest:
...and press:
Neat Stuff
Control.com Stuff

Visit our shop for nerds in control lifestyle products.

Fortune
"I don't like spinach, and I'm glad I don't, because if I liked it I'd
eat it, and I just hate it."
-- Clarence Darrow
RSS Feed
RSS feed Use this link to get an RSS feed of the Control.com article flow, for private, non-commercial use only:
www.control.com/rss/
To get a personalized feed, become a member at no cost.
Select a Page Style
Select one of the following styles:
- BluFu
- Classic
(cookies required)
from the Looking for math in all the wrong places department...
IEC 870-5-2 CRC source code
Software, including programming, OS issues, etc. topic
Posted by Tim on 6 June, 2004 - 2:24 pm
I am looking for source code to calculate the IEC 870-5-2 CRC source code. It is not the same as CCITT, or CRC16. The polynomial is x16 +x13 +x12 +x11 +x10 +x8 +x6 +x5 +2 +1. I'd really like a table driven version, but anything is OK.


Posted by Fathah Ur Rahman on 8 June, 2004 - 2:01 am
To cal. x16, left shift x 16 times x<<16)
similarly, x13 is (x<<13).

thus, crc = (x<<16)+(x<<13)+(x<<12)+(x<<11)+(x<<10)+ (x<<8)+(x<<6)+(x<<5)+2+1.


Posted by Herman Vanmunster on 20 October, 2004 - 1:24 am
Hello,

Maybe this will help you, it's a versatile CRC-calculator: http://rcswww.urz.tu-dresden.de/~sr21/crc.html

I am looking for an inverted 16 bit CRC calcutor with polyn. X16 X14 X12 X11 X9 X8 X7 X4 X1 +1 (=ADC9hex + 1). I don't know what the "+1" stands for (1 before polynomial?)

In any case, I can't find the correct settings in the above calculator to compute a good CRC-result.
Can you help me?

Thank you.

Herman Vanmunster
herman.vanmunster@be.abb.com

Your use of this site is subject to the terms and conditions set forth under Legal Notices and the Privacy Policy. Please read those terms and conditions carefully. Subject to the rights expressly reserved to others under Legal Notices, the content of this site and the compilation thereof is © 1999-2009 Nerds in Control, LLC. All rights reserved.

Users of this site are benefiting from open source technologies, including PHP, MySQL and Apache. Be happy.

Advertisement
Our Advertisers
Help keep our servers running...
Patronize our advertisers!