syahrul.s
Joined: 09 Nov 2007 Posts: 6
|
2X16 LCD with PIC16F877A |
Posted: Fri Nov 09, 2007 1:54 am |
|
|
hi
I bought the LCD from bizchip.com and tried to connect it with the PIC.But it did not work, instead it just displayed a row of black squares. The PIC is ok, bcoz I already tested it to run a simple program (blinking an LED). The problem is that the LCD did not display the word 'Testing..' as been compiled/programmed using PIC C Compiler and WinPic.
#include <16f877A.h>
#device ICD=TRUE
#fuses HS,NOLVP,NOWDT
#use delay (clock=20000000)
#include <lcd.c>
#define ALL_OUT 0
#use fast_io(B)
void main () {
lcd_init();
set_tris_b(ALL_OUT);
while (TRUE) {
printf(lcd_putc,"\fTesting...");
delay_ms(1500);
}
}
Can somebaody help me plss... thanks |
|