Adding to time-of-day in BCD
Brian Aase email (remove spam text)
I've looked around for info on this, but can't seem to find an
appropriate link. Surely this has been done before and is
probably posted somewhere. Can someone please point
me in the right direction?
Given: A set of 7 variables holding the time of day in BCD
format for eventual display on a LED readout, thus:
What I need to do is add an arbitrary number of seconds (in
the range of 0 to 240) to the time held in the above variables,
in order to make the time appear that much farther ahead.
The seconds to be added are originally held in a single (binary)
byte but could first be converted to BCD if that makes it any easier.
Hints? Pointers? Comments? Flames? Anyone?
http://www.piclist.com hint: The PICList is archived three different
ways. See http://www.piclist.com/#archives for details.
In reply to: <000601c095cb$9fbc6e80$2610f8d1@oemcomputer>
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