Problem with LCD 20x4, Displaytronic ACM2004D

General discussion on mikroBasic PRO for PIC.
Post Reply
Author
Message
pasicr
Posts: 77
Joined: 13 Aug 2008 18:14
Location: Macedonia, Bitola

Problem with LCD 20x4, Displaytronic ACM2004D

#1 Post by pasicr » 31 Jul 2011 12:17

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

abcdefgg
Posts: 146
Joined: 19 Apr 2011 11:54
Location: Toko Japan

Re: Problem with LCD 20x4, Displaytronic ACM2004D

#2 Post by abcdefgg » 31 Jul 2011 16:31

Have you try these?

Code: Select all


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

pasicr
Posts: 77
Joined: 13 Aug 2008 18:14
Location: Macedonia, Bitola

Re: Problem with LCD 20x4, Displaytronic ACM2004D

#3 Post by pasicr » 31 Jul 2011 22:47

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

Post Reply

Return to “mikroBasic PRO for PIC General”