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

How to use LCD with 16F877 (not working)

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



Joined: 18 Jul 2014
Posts: 5

View user's profile Send private message

How to use LCD with 16F877 (not working)
PostPosted: Sun Jun 07, 2015 8:11 am     Reply with quote

Hello guy,

I was wrote simple code for lcd and using pic 16f877 and then simulate on Proteus the result is not working. So, could you help and suggest me for this matter. Please see code as below.
Code:

#include <16F877A.h>
#fuses HS,NOWDT,NOPUT,NOBROWNOUT
#use delay(clock=20000000)
#include "LCD.C"

void main()
{
   lcd_init();

   while(TRUE)
   {
     lcd_gotoxy(1,1);
     printf(lcd_putc," Hello world ");
     lcd_gotoxy(1,2);
     printf(lcd_putc,"LCD TESTING TEXT");
   }
}

_________________
The microcontroller can change everything.
Mike Walne



Joined: 19 Feb 2004
Posts: 1785
Location: Boston Spa UK

View user's profile Send private message

PostPosted: Sun Jun 07, 2015 8:19 am     Reply with quote

This is not a Proteus forum, read the guidelines.

Test with real hardware, then come back.

Try this link.

http://www.ccsinfo.com/forum/viewtopic.php?t=47549
Mike
peter_pic



Joined: 18 Jul 2014
Posts: 5

View user's profile Send private message

PostPosted: Sun Jun 07, 2015 8:34 am     Reply with quote

Thanks,

I was tested with hardware board also, but still not working. As above code wrote follow the book, why not working.

Peter.
_________________
The microcontroller can change everything.
asmboy



Joined: 20 Nov 2007
Posts: 2128
Location: albany ny

View user's profile Send private message AIM Address

PostPosted: Sun Jun 07, 2015 12:02 pm     Reply with quote

POST A SCHEMATIC of the REAL hardware
and above all your #defines for control pins of the LCD

and the make and model of your ACTUAL LCD display element.

this is your student project , right ?
Quote:
still not working


IS not helpful in describing the nature of the problem.
for instance - lack of proper bias voltage setting can make a working LCD appear to not be.

take it from me - in terms of performance Proteus ISIS tells you NOTHING of real value. it is the reason that long time members roll their eyes when it is mentioned.
peter_pic



Joined: 18 Jul 2014
Posts: 5

View user's profile Send private message

PostPosted: Sun Jun 07, 2015 7:17 pm     Reply with quote

Thanks for your advice.

I just learn for pic microcontroller.

peter
_________________
The microcontroller can change everything.
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