LCD ASCII codes

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 5.
To post in this forum you must have a registered copy of Flowcode 5 or higher.

Moderator: Benj

Post Reply
User avatar
Mantas
Posts: 221
Joined: Tue May 15, 2012 10:32 pm
Location: Klaipeda, Lithuania - North sea, UK
Has thanked: 57 times
Been thanked: 27 times

LCD ASCII codes

Post by Mantas »

Hello,

Can anyone tell me what is the ASCII for sign of degree to display it on LCD? I was tying that hitachi code table but it was showing me totally different sign.

Best regards,
Mantas
Science is my true religion.

User avatar
DavidA
Matrix Staff
Posts: 1076
Joined: Fri Apr 23, 2010 2:18 pm
Location: Matrix Multimedia Ltd
Has thanked: 58 times
Been thanked: 258 times
Contact:

Re: LCD ASCII codes

Post by DavidA »

Hello,

Here is the datasheet for our EB005: http://www.matrixmultimedia.com/resourc ... 5-30-4.pdf

And the Hitachi module: http://www.matrixmultimedia.com/resourc ... asheet.pdf

According to those the LCD is

239 : 1110 1111 : EF

User avatar
JohnCrow
Valued Contributor
Valued Contributor
Posts: 1367
Joined: Wed Sep 19, 2007 1:21 pm
Location: Lincolnshire
Has thanked: 364 times
Been thanked: 716 times

Re: LCD ASCII codes

Post by JohnCrow »

Hi
Ive found the following codes work on my hardware

ASCII 223 - on a Matrix 2 x 16 lcd
ASCII 178 - on my custom 4 x 20 lcd

Though they both still use the Hitachi compatible chipset.
Note they dont show correctly in simulation.
1 in 10 people understand binary, the other one doesn't !

User avatar
Mantas
Posts: 221
Joined: Tue May 15, 2012 10:32 pm
Location: Klaipeda, Lithuania - North sea, UK
Has thanked: 57 times
Been thanked: 27 times

Re: LCD ASCII codes

Post by Mantas »

Thanks John, the 223 is the correct one. My mistake was that I entered the binary format, not the decimal :oops:

Best regards,
Mantas
Science is my true religion.

User avatar
Enamul
Posts: 1772
Joined: Mon Mar 05, 2012 11:34 pm
Location: Nottingham, UK
Has thanked: 271 times
Been thanked: 814 times

Re: LCD ASCII codes

Post by Enamul »

Hi Mantas,
Hitachi 44780 LCD ascii table can be found in the bottom chart of the link
http://meteosat.pessac.free.fr/Cd_elect ... itachi.htm
°(deg) is
Decimal=223
Hex= 0xDF
Binary=0b11011111
so for Hitachi LCD (EB005 Board MM) you have to use any of the above format. But as Flowcode simulation use PC ascii code that's why you will see ß (Beta) in simulation in place of °(deg)...But in hardware you will see °(deg).

Actually the link below is for the ascii table used in PC...
http://www.ascii-code.com/
In the extended ascii codes you can find...
°(deg) is
Decimal=176
Hex= 0xB0
Binary=0b10110000
so if you are sending data to PC using RS232 interface you have to use the above in any of the format.
ß (Beta)
Decimal=223
Hex= 0xDF
Binary=0b11011111
You see 223 is ß(Beta) in PC..
Hope it's clear now. :)
Enamul
Enamul
University of Nottingham
enamul4mm@gmail.com

User avatar
Mantas
Posts: 221
Joined: Tue May 15, 2012 10:32 pm
Location: Klaipeda, Lithuania - North sea, UK
Has thanked: 57 times
Been thanked: 27 times

Re: LCD ASCII codes

Post by Mantas »

Hi Enamul, and thnx for indepth explanation, i will keep it in mind :)

Best regards,
Mantas
Science is my true religion.

User avatar
Enamul
Posts: 1772
Joined: Mon Mar 05, 2012 11:34 pm
Location: Nottingham, UK
Has thanked: 271 times
Been thanked: 814 times

Re: LCD ASCII codes

Post by Enamul »

Hi,
You are most welcome. :)
Enamul
Enamul
University of Nottingham
enamul4mm@gmail.com

Post Reply