CRC-x16 + x12 + x5 + 1
- From: "vincenzoelettronico" <vincenzoelettronico@xxxxxxxxxx>
- Date: Tue, 9 Jan 2007 09:52:41 +0100
vincenzoelettronico wrote:
Polynom: x16 + x12 + x5 + 1
Hi
The procedure would serve me in vb6 for the calculation of the CRC on
a vector of 14 byte
Thanks to all in advance
For what? Do you actually have a question, or are you expecting someone to
write a code module for you?
--
Regards,
Michael Cole
***********************************
***********************************
I have the procedure in C but I don't succeed in translating her/it in
visual basic! if someone can lend me a hand, helps me to graduate me! hi
Polynom: x16 + x12 + x5 + 1 ? CRC_POLYNOM = 0x8408;
Start Value: 0xFFFF ? CRC_PRESET = 0xFFFF;
C-Example:
unsigned int crc = CRC_PRESET;
for (i = 0; i < cnt; i++) /* cnt = number of protocol bytes without CRC */
{
crc ^= DATA[i];
for (j = 0; j < 8; j++)
{
if (crc & 0x0001)
crc = (crc >> 1) ^ CRC_POLYNOM;
else
crc = (crc >> 1);
}
}
.
- Prev by Date: CRC16 Calculation Algorithm
- Next by Date: Re: Upload Access Data to Web
- Previous by thread: CRC16 Calculation Algorithm
- Next by thread: Re: Unicode file name
- Index(es):
Relevant Pages
|