![]() |
![]() |
![]() |
|
|
|||||||
| Electronic Projects Design/Ideas/Reviews Are you building an electronic project or want to? Maybe you need some assistance? Come and submit your electronic questions here and let our experienced members find a solution. |
|
|
Thread Tools | Display Modes |
|
|
(permalink) |
|
A string is an array of bytes wich contains text, it's not meant to hold hex data...
what you need is a 2 dimensional array like this Dim HexData(20, 5) as integer this would make space for 20 characters data, 5values per charachter then you load your data into it HexData(1, 1) = &HC1 HexData(1, 2) = &HB7 HexData(1, 3) = &H77 and so on now if you need to send a certain character, let's say character number stored in variable CharToSend you do it like this for Loop = 1 to 5 do Output = HexData(CharToSend, Loop) Next Loop where Output should be replaced with whatever means of output you are using... |
|
|
|
|
|
|
(permalink) |
|
Wow~!!! :shock:
If initialise like that, the command will be very very long. Anyway, i get what you mean. I'll try that out. Thanks~!! :wink:
__________________
I already give my best, i have no regret at all. |
|
|
|
|
|
|
(permalink) |
|
Hi..
Currently i am at the stage of shifting serial bits into parallel bits. I am using an UART PC16550D to do the shifting. I have a few doubts. Besides taking care of the serial input pin and parallel output pins, what other pins should i included? :?: Here is a diagram of the chip. http://www.beyondlogic.org/serial/serial.htm#8 Thanks! :lol:
__________________
I already give my best, i have no regret at all. |
|
|
|
|