Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

How to store & retreive the pattern of each ASCII charac

Status
Not open for further replies.

cwt

Member level 5
Member level 5
Joined
May 26, 2004
Messages
80
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,288
Activity points
918
ffa6e

Hi out there... :eek:
I have something to ask about my programming stuff. Currently i am using visual basic 6.0 to do my programming.

What i want is like that:

Base on an ASCII character, my program will able to find the pattern that represent the character and display it on the dot matrix array.

How am i going to store all the patterns for each of the ASCII character? :?:
Eg. for the character 'A', the equivalent display pattern is [c1,b7,77,b7,c1].
*Note: all display pattern is in hex.

How am i going to retreive the pattern for each ASCII character? :?:
Eg. for the character 'A', the display pattern [c1,b7,77,b7,c1] will be send out to the dot matrix array.

Thanks!! 8)
 

dot matrix ascii pattern

declare an array of 8 bytes to be a character pattern, then declare an array of 128 (or 256, depending on your need) character patterns.

By the way, this array is already in the system bios, 400h bytes starting at FFA6E, for the first 128 ASCII characters. The values are a bit different though, an A is, starting at FFC76 ( FFA6E + 8*41h )
38, 6e, c6, c6, fe, c6, c6, 00
 

hindi dot matrix ascii value

Ooh...okie..
I am using an 8x5 dot matrix array, so can i still use those character pattern in the system bios?

You mean i should declare an array with the size of 8x128(or 256)? Just an array with that size???

If i did that, how am i going to find the equivalent character pattern for each ASCII character?(eg. if user enter 'A')

Thanks~
 

Sorry, the PC's built in character pattern is an 8X8 dot matrix, and I don't think there is any way to modify it for your use.

You would need to declare an array of 5 bytes to be your character pattern and then initialize the array of 128 (or however many you need) character patterns by hand.

Dim pattern_array( 0 TO 127 , 1 TO 5 ) as byte

initialize pattern_array

then pattern_array( CByte 'A', i) gives the i'th byte required to make the character A

I haven't used Visual Basic in a while, so i probably have the syntax all wrong.
 

Thanks..
Can you show me how to initialise a double dimensional array?

How to put [c1,b7,77,b7,c1] in the array?

Somemore, i need to ask you something about how to convert a string type to a hex type.
Eg. how to convert a character 'A' to to hex type, which holds the value of 1010??
 

Is A (a string type) has the same value as A (a hex type)?
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top