Write some Software

I need to take a piece of code written in C for creating a CRC8 and turn it into a function in VB6. I want to be able to input 2 digit string values representing hex values (STX, Keyboard number, Lamp number, Command number, ETX and it to produce the CRC.

For example:-

82 60 00 00 83 would give DA

82 60 00 04 83 would give 42

82 60 00 22 83 would give B9

82 60 00 2F 83 would give 54

The C code is below:

The following section of the program explains the calculation of the CRC character. The type U8 is a 8 bit variable unsigned integer (0 through 255)

The function put_tx1_buffer ( U8 c ) send the characters via the serial interface.

#define POLYNOM 0xB1 // 28+27+25+24+20+1

#define INIT_TX_CRC {tx_crc=0xA5;} U8 tx_crc ;

void build_tx_crc8( U8 a )


U8 i=8 ;



if (( a & 0x01 ) != ( tx_crc & 0x01 ))


tx_crc >>= 1 ;

tx_crc ^= POLYNOM ;




tx_crc >>= 1 ;


a >>= 1 ;


while (--i!=0) ;


void set_lamp( U8 keyboardnumber, U8 lampnumber, U8 command )



put_tx1_buffer( STX+0x80 ) ;

build_tx_crc8( STX+0x80 ) ;

put_tx1_buffer( command ) ;

build_tx_crc8( command ) ;

put_tx1_buffer( keyboardnumber ) ;

build_tx_crc8( keyboardnumber ) ;

put_tx1_buffer( lampnumber ) ;

build_tx_crc8( lampnumber ) ;

put_tx1_buffer( ETX+0x80 ) ;

build_tx_crc8( ETX+0x80 ) ;

put_tx1_buffer( tx_crc ) ;


Taidot: C-ohjelmointi, Visual Basic

Näytä lisää: 2.Write one program that will calculate the area of triangle and square. Include the following in your program [CLO 2]: a.Use di, write-software-program, software write php program, software program write book, write software reviews, looking someone write software, write software brochure, write software requirement specification, getafreelancercom write software programs reviews, write software mobile, msr206 write software demo, someone write software, find someone write software, write software gps system, write software iphone gps, write software functional specification outline, need someone write software, write php program parse web pages, msr206 software program, paraphrase download software program, free banner maker creator generator software program, software program needed, need software program 2008, write software functional description pdf, coupon software program script

Tietoa työnantajasta:
( 2 arvostelua ) Forest Hill, United Kingdom

Projektin tunnus: #14889411

Myönnetty käyttäjälle:


Hello. I have much experience in converting code from one programming language to another programming language, including converting C/C++ to VB6. I know both programming languages very well and I know significant diff Lisää

£7 GBP / tunti
(971 Arvostelua)

7 freelanceria on tarjonnut keskimäärin %project_bid_stats_avg_sub_18% %project_currencyDetails_sign_sub_19%/tunti tähän työhön


Hello, I am a professional software developer proficient in C and VB6. I have read your project requirement, and i can quickly convert your C code to VB6 application. Or i can create a VM6 application to calculate CRC8 Lisää

£10 GBP / tunti
(30 arvostelua)

Hello, How are you? I have read your project description carefully I am very interested in this project. I have a lot of experience in this type of work. I'm sure I can complete it on time with high quality acco Lisää

£8 GBP / tunti
(1 arvostelu)

Hello,Sir High-Quality+fast development+good credit+fast communication=My work method! My first aim is to provide you quality and professional task. i have developed for 7 years on This is my new Ac Lisää

£8 GBP / tunti
(1 arvostelu)

Greetings!I hope you are doing well. I have read your proposal and i have keen interest to work with you because my experience and my knowledge meet your requirements. I will provide good quality of work. Definately y Lisää

£8 GBP / tunti
(0 arvostelua)

Hi. I am a Senior VB6, VB.NET Developer living in Paris, I have read your specifications and i want to realize your application. i have already developed several applications you can find in my folio. I need more Lisää

£11 GBP / tunti
(0 arvostelua)
£5 GBP / tunti
(0 arvostelua)