View previous topic :: View next topic |
Author |
Message |
Wridmuld
Joined: 02 Apr 2004 Posts: 15
|
LCD-problem |
Posted: Fri May 28, 2004 7:51 am |
|
|
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
|
|
Posted: Fri May 28, 2004 8:04 am |
|
|
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 |
Posted: Sat May 29, 2004 12:50 pm |
|
|
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
|
Re: HD44780 |
Posted: Mon May 31, 2004 12:59 pm |
|
|
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. |
|
|
|