Halloween Offer 2014
It is currently 31 Oct 2014 12:59

All times are UTC + 1 hour




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Greek characters on LCD
PostPosted: 31 May 2005 20:25 
Offline

Joined: 31 May 2005 20:24
Posts: 68
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 !


Top
 Profile  
 
 Post subject:
PostPosted: 31 May 2005 20:52 
Offline

Joined: 23 Sep 2004 20:07
Posts: 3195
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. :?

_________________
If you know what you're doing, you're not learning anything.


Top
 Profile  
 
 Post subject:
PostPosted: 31 May 2005 20:53 
Offline

Joined: 23 Sep 2004 09:16
Posts: 807
Location: South-Africa
Japanese characters are from $A0 to $DF
Some Greek characters are from $E0 to $FF

128 to 160 are not defined :)

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.

_________________
Another proud user of LV 24-33A Development System and mikroPascal PRO for dsPIC :)
PortA not working? Add CMCON := 7; PortD not working? Add ADCON1 := 6;
To paste code on the forum, please use the [b] Code [/b] button !! ;)


Last edited by anton on 31 May 2005 21:10, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: 31 May 2005 20:59 
Offline

Joined: 23 Sep 2004 09:16
Posts: 807
Location: South-Africa
Quote:
128 to 160 are not defined :)


Or rather just spaces than not defined

_________________
Another proud user of LV 24-33A Development System and mikroPascal PRO for dsPIC :)
PortA not working? Add CMCON := 7; PortD not working? Add ADCON1 := 6;
To paste code on the forum, please use the [b] Code [/b] button !! ;)


Top
 Profile  
 
 Post subject:
PostPosted: 31 May 2005 21:02 
Offline

Joined: 23 Sep 2004 09:16
Posts: 807
Location: South-Africa
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

_________________
Another proud user of LV 24-33A Development System and mikroPascal PRO for dsPIC :)
PortA not working? Add CMCON := 7; PortD not working? Add ADCON1 := 6;
To paste code on the forum, please use the [b] Code [/b] button !! ;)


Top
 Profile  
 
 Post subject:
PostPosted: 01 Jun 2005 07:29 
Offline

Joined: 31 May 2005 20:24
Posts: 68
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group