Hi,
I have just purchased a CFAH2004A from you guys, and I am having trouble utilizing all the lines in the 20x4 character lcd display.
It seems that I can display on lines 1 and 3, but everytime i change the address to 0x40(line2) or 0x54(line 4), it gets reset to line 1, and what ever I have written on line 1 gets cleared with the new string i was supposed to write on line 2 and 4.
I have read and reread the data sheet and the HD44780 data sheet several times over, and am still completely stumped.
I am not sure if it is in my initialization sequence.
I have set it as
delayMs(15)
0x30 // function set
delayMs(6)
0x30 // function set
delayMs(2)
0x30 // function set
delayMs(2)
0x30 // final function set
delayMs(2)
0x08 // turn off display
delayMs(1)
Lcd_clearscreen
0x0F// turn on display with full blinking cursor
// finish initialization.
if you could please help me and let me know what I am doing wrong.
Thank you
I have just purchased a CFAH2004A from you guys, and I am having trouble utilizing all the lines in the 20x4 character lcd display.
It seems that I can display on lines 1 and 3, but everytime i change the address to 0x40(line2) or 0x54(line 4), it gets reset to line 1, and what ever I have written on line 1 gets cleared with the new string i was supposed to write on line 2 and 4.
I have read and reread the data sheet and the HD44780 data sheet several times over, and am still completely stumped.
I am not sure if it is in my initialization sequence.
I have set it as
delayMs(15)
0x30 // function set
delayMs(6)
0x30 // function set
delayMs(2)
0x30 // function set
delayMs(2)
0x30 // final function set
delayMs(2)
0x08 // turn off display
delayMs(1)
Lcd_clearscreen
0x0F// turn on display with full blinking cursor
// finish initialization.
if you could please help me and let me know what I am doing wrong.
Thank you
Looking for additional LCD resources? Check out our LCD blog for the latest developments in LCD technology.