help about RTC using pic18f458

Thread Starter

ect_09

Joined May 6, 2012
180
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.!
 

ErnieM

Joined Apr 24, 2011
8,377
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.
 
Top