View previous topic :: View next topic |
Author |
Message |
peter_pic
Joined: 18 Jul 2014 Posts: 5
|
How to use LCD with 16F877 (not working) |
Posted: Sun Jun 07, 2015 8:11 am |
|
|
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
|
|
|
peter_pic
Joined: 18 Jul 2014 Posts: 5
|
|
Posted: Sun Jun 07, 2015 8:34 am |
|
|
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
|
|
Posted: Sun Jun 07, 2015 12:02 pm |
|
|
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 ?
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
|
|
Posted: Sun Jun 07, 2015 7:17 pm |
|
|
Thanks for your advice.
I just learn for pic microcontroller.
peter _________________ The microcontroller can change everything. |
|
|
|