CRC16-CCITT &H8408 inital value &HFFFF
CRC16-CCITT &H8408 inital value &HFFFF
CRC16-CCITT &H8408 inital value &HFFFF
CRC16-CCITT &H8408 inital value &HFFFF
CRC16-CCITT &H8408 inital value &HFFFF
CRC16-CCITT &H8408 inital value &HFFFF CRC16-CCITT &H8408 inital value &HFFFF CRC16-CCITT &H8408 inital value &HFFFF CRC16-CCITT &H8408 inital value &HFFFF CRC16-CCITT &H8408 inital value &HFFFF CRC16-CCITT &H8408 inital value &HFFFF CRC16-CCITT &H8408 inital value &HFFFF CRC16-CCITT &H8408 inital value &HFFFF
CRC16-CCITT &H8408 inital value &HFFFF CRC16-CCITT &H8408 inital value &HFFFF
CRC16-CCITT &H8408 inital value &HFFFF
Go Back  Xtreme Visual Basic Talk > > > CRC16-CCITT &H8408 inital value &HFFFF


Reply
 
Thread Tools Display Modes
  #1  
Old 07-16-2015, 04:27 PM
Miguelzinho Miguelzinho is offline
Newcomer
 
Join Date: Jul 2015
Posts: 1
Default CRC16-CCITT &H8408 inital value &HFFFF


Hello,

I need help in creating a CRC16 function with polynomial 8408 and an initial value of FFFF that will calculate the CRC of an array of Ushort values (16 bit values) given as:

{&H2E, &H101, &H1, &H1, &H65, &H4321, &H8108, &HD3CC, &HBADB, &H600, &H7, &H0, &H977, &H280, &H0, &H0, &H1, &H0, &H3, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H2, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0, &H0}

There is code I took from a c file file and transferred it to VB, however it's not outputting the right value. The CRC value I should be getting is 1B0C.

Attached is my VB code I currently have.

If you could help me, I would appreciate it!
Attached Files
File Type: vb CRC16.vb (15.0 KB, 6 views)
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
CRC16-CCITT &H8408 inital value &HFFFF
CRC16-CCITT &H8408 inital value &HFFFF
CRC16-CCITT &H8408 inital value &HFFFF CRC16-CCITT &H8408 inital value &HFFFF
CRC16-CCITT &H8408 inital value &HFFFF
CRC16-CCITT &H8408 inital value &HFFFF
CRC16-CCITT &H8408 inital value &HFFFF CRC16-CCITT &H8408 inital value &HFFFF CRC16-CCITT &H8408 inital value &HFFFF CRC16-CCITT &H8408 inital value &HFFFF CRC16-CCITT &H8408 inital value &HFFFF CRC16-CCITT &H8408 inital value &HFFFF CRC16-CCITT &H8408 inital value &HFFFF
CRC16-CCITT &H8408 inital value &HFFFF
CRC16-CCITT &H8408 inital value &HFFFF
 
CRC16-CCITT &H8408 inital value &HFFFF
CRC16-CCITT &H8408 inital value &HFFFF
 
-->