AMcTools Forum 
  HomeHelpSearchLogin  
 
Pages: 1
Send Topic Print
LCD encoding (Cyrillic Alphabet) (Read 12565 times)
rand0m
YaBB Newbies
*
Offline

I Love YaBB 2!

Posts: 4

LCD encoding (Cyrillic Alphabet)
05/19/11 at 20:45:50
 
I have some troubles using standard LCD component. I want to show on display some message using cyrillic symbols. But I have some strange symbols instead of cyrillic.
[img]http://img853.imageshack.us/img853/1084/58102802.png[/img]
Should be "Частота: 100 Hz"
Encoding table I have is like this:
[URL=http://imageshack.us/photo/my-images/822/hd44780codepage.jpg/][IMG]http://img822.imageshack.us/img822/4615/hd44780codepage.th.jpg[/IMG][/URL]
What's the problem that I have? Need some help.
P.S. Sorry for my English.

Back to top
 
« Last Edit: 05/21/11 at 09:45:06 by moderator »  
  IP Logged
moderator
YaBB Administrator
*****
Offline

I love forums, don't
you?

Posts: 308
AMcTools (Spain)
Gender: male
Re: LCD encoding
Reply #1 - 05/20/11 at 08:50:23
 
Hi,

The LCD display is based on a raster Windows font which probably has not encoded Cyrillic alphabet. Sorry, this cannot be fixed unless you provide VMLAB with a new font file.

The font file is called HD44780 and it is located it the <VMLAB installation>/bin
Back to top
 
 
WWW   IP Logged
rand0m
YaBB Newbies
*
Offline

I Love YaBB 2!

Posts: 4

Re: LCD encoding
Reply #2 - 05/20/11 at 23:18:00
 
I have modified font file, but result is the same. I think there is some more information about font in VMLAB.
Back to top
 
 
  IP Logged
moderator
YaBB Administrator
*****
Offline

I love forums, don't
you?

Posts: 308
AMcTools (Spain)
Gender: male
Re: LCD encoding
Reply #3 - 05/21/11 at 08:53:15
 
I guess you have to install also the font as a official Windows font: it must be also in the C:\WINDOWS\fonts.  In other words, if you go to the Windows Control Panel->Fonts the HD44780 must be visible.

This is done by the VMLAB installer.
Back to top
 
 
WWW   IP Logged
rand0m
YaBB Newbies
*
Offline

I Love YaBB 2!

Posts: 4

Re: LCD encoding
Reply #4 - 05/21/11 at 08:57:16
 
I've already done it but it didn't help

[b]UPD[/b] It's working in some way, I shall fix font yet more. Thanks  ;)
Back to top
 
 
  IP Logged
moderator
YaBB Administrator
*****
Offline

I love forums, don't
you?

Posts: 308
AMcTools (Spain)
Gender: male
Re: LCD encoding  (Cyrilic alphabet)
Reply #5 - 05/21/11 at 09:43:11
 
OK, I'm glad about you having in the track to the solution.

I have modified a bit the subject thread, since it may result useful for other users, in order to identify better t
Back to top
 
 
WWW   IP Logged
rand0m
YaBB Newbies
*
Offline

I Love YaBB 2!

Posts: 4

Re: LCD encoding (Cyrillic Alphabet)
Reply #6 - 05/21/11 at 10:27:47
 
Here is the font file. It's the same as in the table below. I hope it will be useful for others.
To use it just install to system.
Back to top
 
  IP Logged
ThVortex
Global Moderator
*****
Offline



Posts: 160
Austin, TX, USA
Gender: male
Re: LCD encoding (Cyrillic Alphabet)
Reply #7 - 05/21/11 at 21:22:05
 
I didn't know you could get LCD panels with that font encoding.

There's also the European A02 ROM font that's documented in the HD44780 datasheet. It has some Cyrillic letters in it, although only the full sized uppercase ones. I'm attaching the A02 font in case someone may find it useful as well.
Back to top
 
WWW   IP Logged
moderator
YaBB Administrator
*****
Offline

I love forums, don't
you?

Posts: 308
AMcTools (Spain)
Gender: male
Re: LCD encoding (Cyrillic Alphabet)
Reply #8 - 05/23/11 at 08:44:31
 
OK, let's say as a conclusion of this thread:

It would be necessary to add a new parameter the LCD placement specifying the encoding: the problem is that I don't know exactly the number of available character sets in the industry ?
Back to top
 
 
WWW   IP Logged
ThVortex
Global Moderator
*****
Offline



Posts: 160
Austin, TX, USA
Gender: male
Re: LCD encoding (Cyrillic Alphabet)
Reply #9 - 05/23/11 at 15:54:59
 
How would you handle having different fonts if the font has to be installed in Windows?

If the LCD code could be modified to draw bitmaps instead of text, then we could embed each font bitmap directly in VMLAB.EXE as a resource. And it would be the first step to supporting the character generator RAM.
Back to top
 
 
WWW   IP Logged
moderator
YaBB Administrator
*****
Offline

I love forums, don't
you?

Posts: 308
AMcTools (Spain)
Gender: male
Re: LCD encoding (Cyrillic Alphabet)
Reply #10 - 05/23/11 at 16:13:18
 
Hi, I am thinking just in a simple approach.  Assume, for example, that there are four availabe sets: (Western, Cyrilic, Chinese, etc)  The installer has to load all under different names:

HD44780_WES
HD44780_CYR
HD44780_CHI
...

And then, the LCD cell calls the right one by passing a parameter, say 1=Western, 2=Cyrillic, 3=Chineese, etc....

XmyLCD LCD(24 2 250K 2)........  ; last "2" = cyrillic

This is not so difficult to implement, provided that people here gives me the font files to use.
Back to top
 
 
WWW   IP Logged
Pages: 1
Send Topic Print