CRC-x16 + x12 + x5 + 1



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);

}

}



.



Relevant Pages

  • Re: Any raw data specs for the Apple IIgs BRAM?
    ... endianness was reversed. ... One was a CRC online calculator (which unsurprisingly given your ... have stopped the calculation at the last byte used by the firmware, ... which accepts an arbitrary polynomial and shift order. ...
    (comp.sys.apple2.programmer)
  • Re: CRC16 Calculation Algorithm
    ... The procedure would serve me in vb6 for the calculation of the CRC on ...
    (microsoft.public.vb.com)
  • Re: Any raw data specs for the Apple IIgs BRAM?
    ... so it is likely to be a CRC. ... Whether the calculation uses a preset value of all zeros or all ones. ... depend on the endianness of the host platform, ... the CRC algorithm. ...
    (comp.sys.apple2.programmer)
  • Re: Virtex-II Pro CRC Test Data
    ... and I'm having trouble validating my results. ... into the CRC. ... Architecture Users Guide and the Virtex-II Pro and Virtex-II ... that is feed into the CRC calculation. ...
    (comp.arch.fpga)
  • Re: Any raw data specs for the Apple IIgs BRAM?
    ... so I suspect that they represent a checksum to verify the ... this is a very strong hint that is actually a CRC (cyclic ... The CRC calculation works by treating the source data as an N-bit ... the calculation is repeated and the remainder should ...
    (comp.sys.apple2.programmer)