John Ilicitean
Joined: 07 Jul 2005 Posts: 27 Location: Rotova
|
Problem with LCD and PIC16F877A |
Posted: Thu Aug 11, 2005 1:14 pm |
|
|
Hello Everyone !!!!
I am working with PIC16F877A and i try put something character for the LCD and it does not work. The LCD is PC1602F and is 2x16 lines.I use the driver that this in compiler , #include<LCD.c>. There are no errors in the compiler.I adjust the contrast.The conections are done correctly,
D0=unused D1= rs D2=rw D3=enable D4=D4 D5=D5 D6=D6 D7=D7.
This is my code:
Code: |
#include <16F877A.h>
#fuses HS,NOWDT,NOPROTECT,NOLVP,PUT,BROWNOUT
#use delay(clock=20000000)
#include<LCD.c>
void main()
{
lcd_init();
while(1)
{
lcd_gotoxy(1,1);
printf(lcd_putc,"Hello,");
lcd_gotoxy(1,2);
printf(lcd_putc,"World!");
delay_ms(100);
}
}
|
Because it does not work???????? |
|