help about RTC using pic18f458

Discussion in 'Embedded Systems and Microcontrollers' started by ect_09, Jul 25, 2012.

  1. ect_09

    Thread Starter Member

    May 6, 2012
    i want to make clock which should display hh:mm;ss;
    and date on lcd in proteous.
    i dont understand how to keep data(characters) constant on lcd,because its continusly repeating.
    second, how we use timer in this way in code,because we only display the characters on lcd,
    help me.!
  2. ErnieM

    AAC Fanatic!

    Apr 24, 2011
    It depends on how you are showing the time info, but generally you keep writing a fixed length string to the same address. So you need to see how to set the location a string prints, and always write tot hat same spot.

    If you just keep doing that the display will still be funky as it will keep blanking as the (mostly same) data is written. To prevent that, you save the value of time when you print it, then compare the current value to the saved value, and only print when there is a difference (and of course save the new value). Just checking the seconds value is probably good enough here.

    You did not say what the timer is doing so I have no comment on that.
  3. ect_09

    Thread Starter Member

    May 6, 2012
    Thanks !
    i have done this.