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

PIC 16f877A LCD problem!

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



Joined: 09 May 2010
Posts: 4

View user's profile Send private message

PIC 16f877A LCD problem!
PostPosted: Tue May 18, 2010 3:31 pm     Reply with quote

Hello Guys,

I have interfaced LCD with my PIC 16f877a. I want to initially display words on my lcd but the problem is only garbage value is being displayed. Please tell me the solution. I have given the code to which i used to code the MCU (used microcode studio for coding).


Regards.

DEFINE LCD_RSREG PORTE
DEFINE LCD_RSBIT 0
DEFINE LCD_EREG PORTE
DEFINE LCD_EBIT 1
DEFINE LCD_RWREG PORTE
DEFINE LCD_RWBIT 2
DEFINE LCD_BITS 8
DEFINE LCD_LINES 2
DEFINE LCD_COMMANDUS 2000
DEFINE LCD_DATAUS 50
PAUSE 500
TRISD = %00000000
TRISE = %00000000
ADCON1=%00000111

LOOP:
LCDOUT $FE, 1
PAUSE 250
LCDOUT "Good"
LCDOUT $FE, $C0
LCDOUT "Luck"
PAUSE 250
GOTO LOOP
END
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Tue May 18, 2010 3:58 pm     Reply with quote

You're using PicBasic. This is a C forum. You're in the wrong forum for
your language. Here is the correct forum:
http://www.picbasic.co.uk/forum/forum.php
uaf5000



Joined: 09 May 2010
Posts: 4

View user's profile Send private message

PostPosted: Wed May 19, 2010 1:09 pm     Reply with quote

So many thanks =)
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