An RTC is, for durations like that.
Quote from: AWOL on Jan 09, 2012, 03:32 pmThe only time (forgive the pun) you'll have a problem is if the interval is more than half the rollover time.Exact! For example having as max number 255 (8bit)d(12-240) --> b(0000 1100-1111 0000) = b0001 1100 d28 OKd(12-112) --> b(0000 1100-0111 0000) = b1001 1100 d-100 WRONG (result would be 255-112+12=155 )
The only time (forgive the pun) you'll have a problem is if the interval is more than half the rollover time.
Please enter a valid email to subscribe
We need to confirm your email address.
To complete the subscription, please click the link in the
email we just sent you.
Thank you for subscribing!
via Egeo 16