Hello,
I am trying LCD with two-wire as mentioned by Myke Predko.
I have suceeded till LCD Initialisation but facing problem for second line displaying.
Can you pls tell me how should i go further.
While Initialising i have written-
void LCD_init(void)
{
delay_5ms; //settle time delay
delay_5ms;
delay_5ms;
LCD_nybble(0x03,0); //reset LCD by sending 0x03 low nybble (binary 0011) three times
delay_5ms; //long delay after first one
LCD_nybble(0x03,0); //reset LCD by sending 0x03 low nybble (binary 0011) three times
delay_5ms; //long delay after first one
LCD_nybble(0x03,0); //reset LCD by sending 0x03 low nybble (binary 0011) three times
delay_5ms; //long delay after first one
LCD_nybble(0x02,0); //then send 0x02 low nybble (binary 0010)
delay_1ms();
LCD_cmd(0x28); //set 4-bit mode and 2 lines
delay_4us();
LCD_cmd(0x10); //cursor move & shift left
delay_4us();
LCD_cmd(0x06); //entry mode = increment
delay_4us();
LCD_cmd(0x0f); //display on - cursor blink on
delay_4us();
LCD_cmd(0x01); //clear display
delay_1ms();
// LCD_cmd(0x14); //clear display
// delay_1ms();
}
So, Initializes 2-line & 4-bit mode. but how i get cursor on second line.
I am using "HY-1602F6" (E258603) from SHENZHEN AV-diaplays Co. Ltd
Pls help me for seconh line display
Regards
Supri
I am trying LCD with two-wire as mentioned by Myke Predko.
I have suceeded till LCD Initialisation but facing problem for second line displaying.
Can you pls tell me how should i go further.
While Initialising i have written-
void LCD_init(void)
{
delay_5ms; //settle time delay
delay_5ms;
delay_5ms;
LCD_nybble(0x03,0); //reset LCD by sending 0x03 low nybble (binary 0011) three times
delay_5ms; //long delay after first one
LCD_nybble(0x03,0); //reset LCD by sending 0x03 low nybble (binary 0011) three times
delay_5ms; //long delay after first one
LCD_nybble(0x03,0); //reset LCD by sending 0x03 low nybble (binary 0011) three times
delay_5ms; //long delay after first one
LCD_nybble(0x02,0); //then send 0x02 low nybble (binary 0010)
delay_1ms();
LCD_cmd(0x28); //set 4-bit mode and 2 lines
delay_4us();
LCD_cmd(0x10); //cursor move & shift left
delay_4us();
LCD_cmd(0x06); //entry mode = increment
delay_4us();
LCD_cmd(0x0f); //display on - cursor blink on
delay_4us();
LCD_cmd(0x01); //clear display
delay_1ms();
// LCD_cmd(0x14); //clear display
// delay_1ms();
}
So, Initializes 2-line & 4-bit mode. but how i get cursor on second line.
I am using "HY-1602F6" (E258603) from SHENZHEN AV-diaplays Co. Ltd
Pls help me for seconh line display
Regards
Supri