CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

How to get byte[4] to byte[7] and display

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
azHer



Joined: 01 May 2008
Posts: 7

View user's profile Send private message

How to get byte[4] to byte[7] and display
PostPosted: Wed May 28, 2008 2:40 am     Reply with quote

Hai! All..

I try to send this command using 877A to uart hardware. Data send from Header to checksum.

Header.....Length....Command....Block.....Checksum
0xBA........ 0x03.........0x05........ 0x01........ 0xB8

if I do like this is it correct?

unsigned char SendData[5]={0XBA,0x03,0x05,0x01,0xB8}

Data should return like below:

Header..... Length....Command... Status...... Value................... Checksum
0xBD........ 0x07........ 0x05........ 0x00....0xA1,0x2C,0xEF,0xDC.... 0x01

data return 0xDB,0x07,0x05,0x00,0xA1,0x2C,0xEF,0xDC,0x01

How to get 4 bytes return data coler blue(value) and display to LCD.

Any one pls help... amatur in C and CCS Embarassed Very Happy
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group