Dear all,

I am having RTC , it usually getting hang. SO i wanna write simple code for that which monitor changes and tell it hanged or not.

i wanna say every 5 second check whether time changed or not.
if time has been changing then continue
else
add p_time+5 sec and write to rtc

i have hour,min, second as global variable for writing in to rtc clock



can some tell me how can do this