Help in showing RTC on LCD 16x2

Discussion about projects that used PIC Microcontroller, Hardware Interface, Programming Algorithm and etc......

Help in showing RTC on LCD 16x2

Postby IsaacChuah90 » Sat Sep 10, 2011 6:42 pm

I have programmed the coding into PIC16F877A and I have go through the read function in PICKIT 2, it shows the coding is successfully programmed into the PIC16F877A, but why the LCD still showing nothing? It just show a row of 16 black column. The connection of the ciurcuit I connected according to the schematic of PR12 Real Time Clock, I get the sample source code from PR12. I just change the PIC16F876A into PIC16F877A. Seeking for helps.Thanks.
IsaacChuah90
Apprentice
 
Posts: 52
Joined: Mon Jun 06, 2011 7:35 pm

Re: Help in showing RTC on LCD 16x2

Postby yonghui » Sun Sep 11, 2011 12:33 am

hi,

probably problem with the lcd contrast. try to adjust the contrast potentiometer, the preset of the lcd.



regards,
yh
thanks&regards,
yh
yonghui
Professional
 
Posts: 732
Joined: Mon Sep 28, 2009 3:27 pm

Re: Help in showing RTC on LCD 16x2

Postby IsaacChuah90 » Sun Sep 11, 2011 11:07 am

hi, I have adjusted the contrast, but still the same. Seeking for helps. Thanks.
IsaacChuah90
Apprentice
 
Posts: 52
Joined: Mon Jun 06, 2011 7:35 pm

Re: Help in showing RTC on LCD 16x2

Postby shahrul » Sun Sep 11, 2011 11:38 am

You try troubleshoot program on LCD first. Download simple code for display on LCD without the RTC code.
User avatar
shahrul
Professional
 
Posts: 812
Joined: Sat May 16, 2009 9:54 pm
Location: Selangor

Re: Help in showing RTC on LCD 16x2

Postby IsaacChuah90 » Sun Sep 11, 2011 4:29 pm

Dear Shahrul,
I have found a simple code for display on LCD, but when I'm compiling it, there shows ********** Build failed! **********.
Build C:\Users\ISAAC\Desktop\lolx\lolx for device 16F877A
Using driver C:\Program Files\HI-TECH Software\PICC\9.70\bin\picc.exe

Make: The target "C:\Users\ISAAC\Desktop\lolx\Untitled.p1" is out of date.
Executing: "C:\Program Files\HI-TECH Software\PICC\9.70\bin\picc.exe" --pass1 C:\Users\ISAAC\Desktop\Untitled.c -q --chip=16F877A -P --runtime=default --opt=default -D__DEBUG=1 -g --asmlist "--errformat=Error [%n] %f; %l.%c %s" "--msgformat=Advisory[%n] %s" "--warnformat=Warning [%n] %f; %l.%c %s"
Error [192] C:\Users\ISAAC\Desktop\Untitled.c; 49.1 undefined identifier "ANSEL"
Error [192] C:\Users\ISAAC\Desktop\Untitled.c; 50.1 undefined identifier "ANSE

What's that problem?I get it from http://shahrulnizam.com/pic-lesson-lcd-hd44780/
IsaacChuah90
Apprentice
 
Posts: 52
Joined: Mon Jun 06, 2011 7:35 pm

Re: Help in showing RTC on LCD 16x2

Postby shahrul » Sun Sep 11, 2011 6:37 pm

IsaacChuah90 WROTE:Dear Shahrul,
I have found a simple code for display on LCD, but when I'm compiling it, there shows ********** Build failed! **********.
Build C:\Users\ISAAC\Desktop\lolx\lolx for device 16F877A
Using driver C:\Program Files\HI-TECH Software\PICC\9.70\bin\picc.exe

Make: The target "C:\Users\ISAAC\Desktop\lolx\Untitled.p1" is out of date.
Executing: "C:\Program Files\HI-TECH Software\PICC\9.70\bin\picc.exe" --pass1 C:\Users\ISAAC\Desktop\Untitled.c -q --chip=16F877A -P --runtime=default --opt=default -D__DEBUG=1 -g --asmlist "--errformat=Error [%n] %f; %l.%c %s" "--msgformat=Advisory[%n] %s" "--warnformat=Warning [%n] %f; %l.%c %s"
Error [192] C:\Users\ISAAC\Desktop\Untitled.c; 49.1 undefined identifier "ANSEL"
Error [192] C:\Users\ISAAC\Desktop\Untitled.c; 50.1 undefined identifier "ANSE

What's that problem?I get it from http://shahrulnizam.com/pic-lesson-lcd-hd44780/

That is program for PIC16F887. ANSEL and ANSELH dosn't have in the PIC16F877A. So, remove that address.
User avatar
shahrul
Professional
 
Posts: 812
Joined: Sat May 16, 2009 9:54 pm
Location: Selangor


Return to PIC Microcontroller

Who is online

Users browsing this forum: No registered users and 2 guests

cron