Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Forums > Electronic Projects Design/Ideas/Reviews


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.

Reply
 
Thread Tools Display Modes
Old 15th June 2004, 10:38 PM   (permalink)
Exo
Default

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...
Exo is offline   Reply With Quote
Old 16th June 2004, 04:05 PM   (permalink)
cwt
Default

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.
cwt is offline   Reply With Quote
Old 23rd June 2004, 06:40 AM   (permalink)
cwt
Default

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.
cwt is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes




All times are GMT. The time now is 06:34 PM.


Electronic Circuits  |  Electronics Wiki
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.