LCDInfo.com

http://www.lcdinfo.com
It is currently Fri Nov 22, 2024 3:27

All times are UTC + 2 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Sun Nov 18, 2007 1:48 
Offline

Joined: Sun Nov 18, 2007 1:12
Posts: 3
Hi ,

I'm tring to write programe to interface Fordata LCD module :FDCC0802C
which has KS0066U controller.

I connected the RS E and W/R lines to each pins of one avalable port on my uC (MEGA128 ) and the data pins to another spare port.
I refered to the initialization sequence and used the following init process:

lcd_data=portd;

void lcd_init(void)
{

porta=((0<<RS) | (0<<EN) | (0<<RW));
lcd_data = 0x3c;
delay 40ms;
lcd_data = 0x0f;
delay 40us;
lcd_data = 0x01;
delay 40us;
lcd_data = 0x06;

}
void strob()
{
porta=(1<<en);
dealy40ms;
porta=(0<<en);
}
void lcd_write()
{
lcd_data =c;
strob;
}
void lcd_puts()
{
porta=(1<<RS);
while(*s)
lcd_write(*s++);
}

It seams that i am missing somthing on the init process because the lcd is still not working.
Anyone how is familier with these modules?


Top
 Profile  
 
 Post subject:
PostPosted: Sun Nov 18, 2007 15:36 
Offline

Joined: Sun May 05, 2002 22:05
Posts: 2063
Location: Lappeenranta, Finland
How have you connected the contrast pin ? Are you sure your contrast should be ok.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Nov 18, 2007 17:28 
Offline

Joined: Sun Nov 18, 2007 1:12
Posts: 3
The contrast pin is getting 0v at init process and is connected to one of porta pins. i will try to verify its phisical connection but i am doubt it is not well.

I am affraid that the problem is with the write timing sequence .

http://www.fordata.cn/pdf/short/fdcc0802c.pdf


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 19, 2007 20:58 
Offline

Joined: Sun Nov 18, 2007 1:12
Posts: 3
OK , That was quit funny ...
Now the contrast pin is fine vdd and not 0v as i imagened :-(

But still no response from the LCD.


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

All times are UTC + 2 hours


Who is online

Users browsing this forum: No registered users and 23 guests


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

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