Page 1 of 1

Problem with LCD 20x4, Displaytronic ACM2004D

Posted: 31 Jul 2011 12:17
by pasicr
Hi there,
I try to use 20x4, LCD, Displaytronic ACM2004D, based on KS0066, on 16F887,
code:
dim text1, text2, text3, text4 as string [20]
Lcd_Init()
Lcd_Cmd(_LCD_CURSOR_OFF)
Lcd_Cmd(_LCD_CLEAR)
text1 = "XXXX"
Lcd_Out(1,1,text1)
text2 = "YYYY"
Lcd_Out(2,1,text2)
text3 = "ZZZZ"
Lcd_Out(3,1,text3)
text4 = "QQQQ"
Lcd_Out(4,1,text4)
Delay_ms(5000)
...
Everithing is Ok with row1, row2 and row4 but row 3 is empty on LCD display...
What is the problem, is it KS0066 compatible with HD44780?
regards

Re: Problem with LCD 20x4, Displaytronic ACM2004D

Posted: 31 Jul 2011 16:31
by abcdefgg
Have you try these?

Code: Select all


http://www.mikroe.com/forum/viewtopic.php?t=5149

Re: Problem with LCD 20x4, Displaytronic ACM2004D

Posted: 31 Jul 2011 22:47
by pasicr
This code working well:

Lcd_Init()
Lcd_Cmd(_LCD_CURSOR_OFF)
Lcd_Cmd(_LCD_CLEAR)
LCD_CMD(80)
Lcd_Out(1, 1, "XXXX")
LCD_CMD(144)
Lcd_Out(2,1, "YYYY")
LCD_CMD(96)
Lcd_Out(1,21, "ZZZZ")
LCD_CMD(160)
Lcd_Out(2,21, "QQQQ")
Delay_ms(2000)
Lcd_Cmd(_LCD_CLEAR)

regards