Hi nicolasronan,
Just for starters, perhaps what may work from a simplistic mode would be to take Darrel Taylor's ELAPSED TIMER program and merge it with a Real Time Clock chip. Since I have been working with RTC's latley that's the first thing that comes to my mind. Perhaps over the next few days some of this forum's gurus might come up with a different solution. But I think this might be an easy way to get started. You could use the SQW ouput of the RTC to increment a counter on the PIC then say every 60 "ticks" (60 Seconds) read the RTC and display the time while continuing with the elapsed timer program. The elapsed timer program is interrupt based so you have to be careful of how much time you spend servicing the RTC read and display portions of the program. Also look at Paul Borgmeire's EASY CLOCK programs. They are very easy to follow and maybe the answer to what you are looking for.
I suggest you search this forum under the CODE EXAMPLES section for further information. Believe me, there's a wealth of information on this site!!!
BobK




Bookmarks