LCDInfo.com http://forum.lcdinfo.com/ |
|
Faliur to interface Fordata LCD module http://forum.lcdinfo.com/viewtopic.php?f=9&t=2361 |
Page 1 of 1 |
Author: | am72 [ Sun Nov 18, 2007 1:48 ] |
Post subject: | Faliur to interface Fordata LCD module |
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? |
Author: | Henri [ Sun Nov 18, 2007 15:36 ] |
Post subject: | |
How have you connected the contrast pin ? Are you sure your contrast should be ok. |
Author: | am72 [ Sun Nov 18, 2007 17:28 ] |
Post subject: | |
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 |
Author: | am72 [ Mon Nov 19, 2007 20:58 ] |
Post subject: | |
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. |
Page 1 of 1 | All times are UTC + 2 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |