Hello,
I have LCD problem (2x16 and PIC 16f877a)
I'm using mikroc programming
My code :
void main()
{
TRISB = 0;
Lcd_init(&portb);
Lcd_Cmd(Lcd_CLEAR);
Lcd_Cmd(Lcd_CURSOR_OFF);
Lcd_Out(1, 1, "Pure Life");
delay_ms (1000);
}
Connections :
1 ---> GRD
2 ---> 5V
3 ---> 1k pot
4 ---> RB2 "Register Select" (RS)
5 ---> RB0 "Read / Write" (RW)
6 ---> RB3 "Enable" (E)
11 ~ 14 ---> RB4 ~ RB7 "Data 4 bit"
15 ---> 5V
16 ---> GRD
Any solutions ?
View attachment 60634
I have LCD problem (2x16 and PIC 16f877a)
I'm using mikroc programming
My code :
void main()
{
TRISB = 0;
Lcd_init(&portb);
Lcd_Cmd(Lcd_CLEAR);
Lcd_Cmd(Lcd_CURSOR_OFF);
Lcd_Out(1, 1, "Pure Life");
delay_ms (1000);
}
Connections :
1 ---> GRD
2 ---> 5V
3 ---> 1k pot
4 ---> RB2 "Register Select" (RS)
5 ---> RB0 "Read / Write" (RW)
6 ---> RB3 "Enable" (E)
11 ~ 14 ---> RB4 ~ RB7 "Data 4 bit"
15 ---> 5V
16 ---> GRD
Any solutions ?
View attachment 60634
Last edited: