Page 1 of 1

LCD ASCII codes

Posted: Fri Jul 27, 2012 8:06 am
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

Re: LCD ASCII codes

Posted: Fri Jul 27, 2012 8:37 am
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

Re: LCD ASCII codes

Posted: Fri Jul 27, 2012 8:56 am
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.

Re: LCD ASCII codes

Posted: Fri Jul 27, 2012 10:41 am
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

Re: LCD ASCII codes

Posted: Fri Jul 27, 2012 1:03 pm
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

Re: LCD ASCII codes

Posted: Fri Jul 27, 2012 6:27 pm
by Mantas
Hi Enamul, and thnx for indepth explanation, i will keep it in mind :)

Best regards,
Mantas

Re: LCD ASCII codes

Posted: Fri Jul 27, 2012 8:07 pm
by Enamul
Hi,
You are most welcome. :)
Enamul