Page 1 of 1

Greek characters on LCD

Posted: 31 May 2005 20:25
by vpapanik
Hello !

Is it possible to display the Greek character set using the existing mikroPascal LCD library ? I tried to display characters above Code=128 and no greek letters appeared. Thanks in advance !

Posted: 31 May 2005 20:52
by LGR
The HD44780 type character LCD allows 8 user defined characters. Not enough for an alphabet. There may be some custom LCDs that use Greek instead of the Japanese characters that the HD44780 usually have. With a GLCD, you can create your own fonts, though the process is tedious. :?

Posted: 31 May 2005 20:53
by anton
Japanese characters are from $A0 to $DF
Some Greek characters are from $E0 to $FF

128 to 160 are not defined :)

Code: Select all

program LCD_demo;
var i : word;
begin
 // LCD_Config(portb, 1, 2,2,3,4,5,6);
  Lcd_Init(PORTB);          //  initialize LCD connected to portb
  lcd_cmd( LCD_CLEAR);      //  send command to LCD "clear display"
  lcd_cmd( LCD_CURSOR_OFF); //  send command cursor off

  for i := 161 to 177 do
      lcd_chr(1,i-160,i);         //  16 caracters on first row

  for i := 178 to 194 do
      lcd_chr(2,i-177,i);         //  16 caracters on second row
end.

Posted: 31 May 2005 20:59
by anton
128 to 160 are not defined :)
Or rather just spaces than not defined

Posted: 31 May 2005 21:02
by anton
Here is a datasheet by EPE magazine with a character look-up table

http://www.epemag.wimborne.co.uk/lcd1.pdf

http://www.epemag.wimborne.co.uk/lcd2.pdf

Posted: 01 Jun 2005 07:29
by vpapanik
I saw somewhere that there are two different ROM banks inside the hitachi chip that switches between the japanese and the european character set. Does anybody know how to make the switch from one to another ? Thanks.