Search:

Type: Posts; User: w31q1an9

Search: Search took 0.01 seconds.

  1. Hello, I have tried what i was told to do...

    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...
  2. Hi,thanks

    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...
  3. Thank

    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...
  4. thank

    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...
  5. Thank man!!

    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;...
  6. okay,thank

    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...
  7. I see,so i should change from unsigned char...

    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...
  8. Hi,thanks for replying..

    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...
  9. okay sorry.. My code is here #include...

    okay sorry..
    My code is here


    #include <at89c51xd2.h>
    #include <string.h>
    #include <ds1302.h>

    /*******************************************/
    /* define the button name and the lcd pin */
  10. Interface DS1302(RTC) with 8051 to run time on lcd. Time run but got Problem,help pls

    -----------------------------------------------------------------------

    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...
  11. Hi,thank for your reply..

    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...
  12. Hi,thank for your reply..

    Hi..yeah.



    void strobe() //write in data
    {
    E = 1;
    delay(500);
    E = 0;
    delay(500);
  13. Im doing c programming on 8051 and DS1302(RTC) to show time on LCD,there a problem..

    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...
  14. To salem : yes, i know. But what is ACC?? I...

    To salem : yes, i know.
    But what is ACC??
    I cant find it,i do not know what is it for..
  15. I got header file for DS1302 on a website, i dont understand the whole code! Help!!

    [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...
  16. For the delay(500) , you mean the delay(500) at...

    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...
  17. To cyberfish : I have add ''volatile" to the...

    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??
  18. Thank for replying!!

    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...
  19. Well, i have remove the date from the code, so...

    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.
  20. Thank for replying!!

    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;...
  21. I program DS1302 & AT89C51 C code but LCD display 85 : 85 : 85,what is wrong???

    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...
Results 1 to 21 of 22