piclist 2001\02\13\114432a >
Thread: Adding to time-of-day in BCD
www.piclist.com/techref/microchip/time.htm?key=time
flavicon
face BY : 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:

seconds
tensecs
minutes
tenmins
hours
tenhours
am_pm_bit

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?

Brian Aase

--
http://www.piclist.com hint: The PICList is archived three different
ways.  See http://www.piclist.com/#archives for details.


<3A88F3EA.20858.191585@localhost> 7BIT

In reply to: <000601c095cb$9fbc6e80$2610f8d1@oemcomputer>
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) Adding to time-of-day in BCD

month overview.

new search...