i need a help in a real time calendar using PIC16F877A
iam using c language and then i need to display the time and date on lcd 16*1 like:
10:15:59
21 jan 2008
i just need the function that calculate the time and the date and thanx for every one who can help me
most of it can be done with simple counters and a real time interupt. In the interupt service routine ripple through each counter. Say the interupt happenes every second, increment the seconds counter each time and see if it has reached sixty. When it does reach sixty, clear it and increase the minutes counter by one and so on until you are counting hours, days, months and years.
most of it can be done with simple counters and a real time interupt. In the interupt service routine ripple through each counter. Say the interupt happenes every second, increment the seconds counter each time and see if it has reached sixty. When it does reach sixty, clear it and increase the minutes counter by one and so on until you are counting hours, days, months and years.
thanx for ur hint
but i dont know the assembler iam just using PICC C compiler in MBLAP v7.31
and iam using c language not assembly
so any one just has the code that find the time and date and iam very glad to him