Hello,
I have tried what i was told to do in post #18.
After i add delay in the DS1302InputByte and DS1302OutputByte,
the Lcd only displayed " 00:00:00 " & the time did not run...
Type: Posts; User: w31q1an9
Hello,
I have tried what i was told to do in post #18.
After i add delay in the DS1302InputByte and DS1302OutputByte,
the Lcd only displayed " 00:00:00 " & the time did not run...
I have tried both. Both of them works. So there is a problem with my DS1302_GetTime input code??
I don't understand what you mean by 50ms, i mean the delay.
So is it something wrong with my delay...
Well,thank for re-commanding me to add delay at the input and output areas.
I have tried that but the LCD print " 00:00:00" now. So i have remove the delay.
What can i do to solve the 85...
Hi,
yeah,i did think about what you explain.
The hint you gave saying that it is not 7 or 9.
So i think it should be 8,am i right?
Well i have change it to 8 for the array but the problem still...
I have better understanding of the array..
well the LCD can display 2 rows of 8 characters.
So " 00:00:00 " , is counted as 8 elements in total which i want to display right??
for(alphabet=0;...
I get what you mean,but i not sure how can i solve this array problem??
Sorry,i am a starter programmer,quite weak in this.
Example please,thank.
I don't think that can be a problem that cause...
I see,so i should change from unsigned char nonchar[7]; to unsigned char nonchar[6]; ??
Or can i see an example??
Well,i don't know what cause the problem that display 85 when run time..
Is there...
To salem :
what you mean by this loop is an array overrun.
As are all your other loops in this function.
Well,because the LCD is 2x8,i do that to blank the top line.
I not sure what you mean...
okay sorry..
My code is here
#include <at89c51xd2.h>
#include <string.h>
#include <ds1302.h>
/*******************************************/
/* define the button name and the lcd pin */
-----------------------------------------------------------------------
For all the 1,3,5,7,9mins and so on...or maybe i should say is the odd
mins.
It will display something like the...
Hi.. yeah..
well for the code you mention above i am not sure about it.
Perhaps can you pls further explain it to me if you understand.
It was because that DS1302 header file was not code by me,i...
Hi..yeah.
void strobe() //write in data
{
E = 1;
delay(500);
E = 0;
delay(500);
Im doing c programming on 8051 and DS1302(RTC) to show time on LCD,there a problem..
I have program a c code and modify a header file of DS1302 which i got online.
I want to print out 23:59:45 on...
To salem : yes, i know.
But what is ACC??
I cant find it,i do not know what is it for..
[tag]
I got a header file of DS1302 on a website.. I am trying to understand the code of the header file, so i can make changes in order to coordinate with my protoboard. Those comments for the code...
For the delay(500) , you mean the delay(500) at the void main section or the void strobe??
I have change and test by changing the value from 500 to 10000. The problem still exist,wad change is that...
To cyberfish :
I have add ''volatile" to the code,but the problem that show a constant 85:85:85 is still there,it remain the same.
What you mean by make sure the delays are long enough??
To anduril462 :
I have try to change the TimeToStr(&CurrentTime); to
TimeToStr(CurrentTime.TimeString);
The LCD shows display " ll ll ll ll ll ll ll ll "
It have warning that say : pointer...
Well, i have remove the date from the code, so now i can from the LCD can only see " 85:85:85". Don't have the 85-85-85 for date anymore.
To : kmess
Thank you for replying
Well, the orignal code can show words on the lcd screen,some pics here.
Cause after modify it i face the 85:85:85 error.
I have change the for(alphabet=0;...
I have program a (RTC) DS1302 & (8051) At89c51 C code using keil and compile a hex file, den i load the hex file using flip.
Everything was fine,just that the lCD show 85 : 85 : 85 for the time...