LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

CRC 8 x^8 + x^2 + x + 1 (ATM HEC)

Hello All!
Is there anybody who wrote a code in LV calculating A 8 bit CRC with the following polynomial?:
 
x8 + x2 + x + 1 (ATM HEC)
 
Any exemple are welcome and helpfull.
 
Thanks for help.
 
Best regards,
0 Kudos
Message 1 of 8
(18,193 Views)
I have attached an archive with all CRC I have collected and written or modified by myself. I know in the llb is an 8 bit CRC calculation VI but I don't know if it has the right polynom. Maybe you can change CRC32.vi for 8 bits.
Waldemar

Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
Don't forget to give Kudos to good answers and/or questions
0 Kudos
Message 2 of 8
(18,172 Views)
Thanks Waldemar,
I will try to understand how the vi's are made because it is not that obvious for me.
For sure I will let you know.
thanks again for the quick reaction.
 
Best regards,
0 Kudos
Message 3 of 8
(18,155 Views)
Hello Waldemar,
 
I am just back on the project were the CRC need to be implemented, sorry for the delay.
 
I had a look on your CRC examples, this seems to be complex to understand.What I just want it is an simple translattion of the polyniomal x^8 + x^2 + x + 1 (ATM HEC) to a LV language.
Is there maybe someone who implemented it already somewhere?
 
Please advise.
 
Regards,
0 Kudos
Message 4 of 8
(18,053 Views)
P.S:the word to send it is a 56 bit, so the word to transmit after CRC check will be 56bits+8 bits CRC calculated.
0 Kudos
Message 5 of 8
(18,041 Views)
The HW representation of the CRC is the following c attached pic.
 
 
Can you tell me what means the look up table?I don't really understand the flow in the for loop.
 
Thanks
0 Kudos
Message 6 of 8
(18,029 Views)
Hello BENIO,

I'm on vacancy but I can pick up your problem tomorrow ( we have now 21:27 central european time).

Your pic is the HW representation of a CRC calculation. The bits come in form the right in the upper wire to the exor. The output is on the left side. For each polynom coefficent which is not zero you have an exor, in your case for x^2, x^1 and x^0.

All the L elements are set to a state before calculation the CRC. This is called the precondition. Mostly the bits are set to 0. After all bits you will use for CRC calculation are shifted in the L elements contain the CRC.

I will change the CRC32.vi to an CRC8.vi so you can use it. I need the LV Version you are using so I can convert it beforehand.
Waldemar

Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
Don't forget to give Kudos to good answers and/or questions
0 Kudos
Message 7 of 8
(18,012 Views)
Hello Waldemar,
thanks for support!
Here the additional description:
 
I am using LV 8.2, LV8.5
 
Regards,
 
 
 
 
0 Kudos
Message 8 of 8
(17,993 Views)