Time diff code
Kübek Tonyemail (remove spam text)
I don't have any personal expirience with the DS1305 however I took a
glance at it. It seems that You could use one of the alarm register for
As you can mask out hours/days and only use minutes to trigger the
one of the int outputs ( whether used or not ) will be low even if only
battery. So at wake/startup you just need to check the status of this
pin and handle
accordingly, when data has been processed re-set the alarm to current
10 minutes ( adjust to be less than 60 ofcource ) and away you go...
In each loop you just check if the pin is low/high.
Doesn't answer your original question though, but it seems like to way
to go there
is to convert to Julian date ( if you decide to go that route ). And
as a 24 or 32 bit variable depending if you want to be 'standarized' or
Tony Kübek, Flintab AB
http://www.piclist.com#nomail Going offline? Don't AutoReply us!
email mitvma.mit.edu with SET PICList DIGEST in the body listserv
See also: www.piclist.com/techref/microchip/time.htm?key=time
You must be a member of the
piclist mailing list
(not only a www.piclist.com member) to post to the