CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

LCD-problem

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Wridmuld



Joined: 02 Apr 2004
Posts: 15

View user's profile Send private message Send e-mail

LCD-problem
PostPosted: Fri May 28, 2004 7:51 am     Reply with quote

Hi.

I got a Sharp LM162-55 LCD display which runs on the Hitachi HDD44780 LCD driver chip.

For some time now I have tried to figure out how to get this one going, but I can't. Does anybody know where to find the "initializing instructions" (or whatever it is called) that gets this LCD going?

I know that there are quite a few things that has to be told to the device before it starts, but I simply can't find any around.

Would be happy for any advice or tips you guys got.
mvaraujo



Joined: 20 Feb 2004
Posts: 59
Location: Brazil

View user's profile Send private message

PostPosted: Fri May 28, 2004 8:04 am     Reply with quote

This Sharp model is discontinued, isn't it?

The start up is tricky because it's not only a matter of what to send to the display but the timing between each sent byte is critical. In fact, there are several websites explaining the control methods for these character displays.

This is my common LCD init:


Code:
void lcd_init (void)
// Rotina de inicializacao do display
{
delay_ms(15);
disable_interrupts (GLOBAL);
wrt_cmd_disp(0x38);
delay_ms(1);            
wrt_cmd_disp(0x38);         
delay_ms(1);            
wrt_cmd_disp(0x06);         
delay_ms(1);            
wrt_cmd_disp(0x0E);         
delay_ms(1);            
wrt_cmd_disp(0x01);         
delay_ms(1);            
wrt_cmd_disp(0x0C);         
delay_ms(1);            
wrt_cmd_disp(0x01);         
delay_ms(1);   
enable_interrupts (GLOBAL);
}


Basically, it's a 15ms wait for the power up, a sequence of command and delays. The command were chosen to my application.
Guest








HD44780
PostPosted: Sat May 29, 2004 12:50 pm     Reply with quote

HD44780 LCD driver --> CCS's driver --> lcd.c --> C:\Program Files\PICC\Drivers\lcd.c

for more information regarding the HDD44780 ( do you mean HD44780 ? )
http://home.iae.nl/users/pouweha/lcd/lcd.shtml
RatFink



Joined: 01 May 2004
Posts: 49

View user's profile Send private message

Re: HD44780
PostPosted: Mon May 31, 2004 12:59 pm     Reply with quote

Anonymous wrote:
HD44780 LCD driver --> CCS's driver --> lcd.c --> C:\Program Files\PICC\Drivers\lcd.c

for more information regarding the HDD44780 ( do you mean HD44780 ? )
http://home.iae.nl/users/pouweha/lcd/lcd.shtml


I had trouble with this driver, the only driver I found that worked right away for me is the driver I posted in the code forum.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group