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

PIC16877A + LCD Problems

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



Joined: 21 Feb 2009
Posts: 2

View user's profile Send private message

PIC16877A + LCD Problems
PostPosted: Sat Feb 21, 2009 9:18 am     Reply with quote

Hello everbody,

Can anyone help me about this code ? I am new on the pic programming.
I compile the code below and upload it into Pic16f877a but the lcd did not display anything ? where am i wrong ?

I use ex-b kit int www.expkits.com/?s=ex1-b.htm
Code:

#include <16F877A.h>
#fuses HS, NOWDT, NOPROTECT
#use delay(clock=2000000)

#include <lcd.c>
// in ldc.c, i already uncomment //#define use_portb_lcd TRUE

void main(void) {
   lcd_init();
   while (TRUE)
   {
     lcd_gotoxy(1,1);
     lcd_putc ("\f Hello \ ");
     delay_ms(500);
     
   }
}
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sat Feb 21, 2009 1:00 pm     Reply with quote

Quote:
#include <16F877A.h>
#fuses HS, NOWDT, NOPROTECT
#use delay(clock=2000000)

This is only set for 2 MHz. Almost certainly, it should be 20 MHz.

Also, add the NOLVP fuse.
s.achilless



Joined: 21 Feb 2009
Posts: 2

View user's profile Send private message

PostPosted: Sat Feb 21, 2009 1:15 pm     Reply with quote

I set clock 20.000.000 and also fuse NOLVP but there is still no changes ? :(
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sat Feb 21, 2009 3:30 pm     Reply with quote

See this thread about solving LCD problems:
http://www.ccsinfo.com/forum/viewtopic.php?t=29412&start=1
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