piclist 2001\01\10\035658a >
Thread: Time diff code
www.piclist.com/techref/microchip/time.htm?key=time
flavicon
face BY : Kübek Tonyemail (remove spam text)



Hi,
I don't have any personal expirience with the DS1305 however I took a
quick
glance at it. It seems that You could use one of the alarm register for
this.
As you can mask out hours/days and only use minutes to trigger the
alarm,
one of the int outputs ( whether used or not ) will be low even if only
powered by
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
minutes +
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
store
as a 24 or 32 bit variable depending if you want to be 'standarized' or
not :)


/Tony


Tony Kübek, Flintab AB            
²²²²²²²²²²²²²²²²²²²²²²²²²²²²²²²²²²²²²²²²²²²²²²²²²²²²²²²²²²²²
E-mail: KILLspamtony.kubekTakeThisOuTspamspamflintab.com
²²²²²²²²²²²²²²²²²²²²²²²²²²²²²²²²²²²²²²²²²²²²²²²²²²²²²²²²²²²²

--
http://www.piclist.com#nomail Going offline? Don't AutoReply us!
email spamlistservEraseMEspamspamBeGonemitvma.mit.edu with SET PICList DIGEST in the body


<200101100855.JAA15330@mn10.swip.net> quoted-printable

See also: www.piclist.com/techref/microchip/time.htm?key=time
Reply You must be a member of the piclist mailing list (not only a www.piclist.com member) to post to the piclist. This form requires JavaScript and a browser/email client that can handle form mailto: posts.
Subject (change) Time diff code

month overview.

new search...