CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

2X16 LCD with PIC16F877A

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
syahrul.s



Joined: 09 Nov 2007
Posts: 6

View user's profile Send private message

2X16 LCD with PIC16F877A
PostPosted: Fri Nov 09, 2007 1:54 am     Reply with quote

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
Humberto



Joined: 08 Sep 2003
Posts: 1215
Location: Buenos Aires, La Reina del Plata

View user's profile Send private message

PostPosted: Fri Nov 09, 2007 8:49 am     Reply with quote

Pls read this:
http://www.ccsinfo.com/forum/viewtopic.php?t=29483

Regarding your problem, pls read the answer of PCM Programmer at the end of this thread.
http://www.ccsinfo.com/forum/viewtopic.php?t=32244&highlight=lcd


Humberto
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group