azHer
Joined: 01 May 2008 Posts: 7
|
How to get byte[4] to byte[7] and display |
Posted: Wed May 28, 2008 2:40 am |
|
|
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 |
|