??? 11/23/10 18:07 Read: times |
#179583 - What is approx about 32.768kHz being 2^15 ticks/s? Responding to: ???'s previous message |
Raghunathan said:
So once every 2^15 number of bits I will clock 1 sec approx. Approx? 32.768kHz is 2^15 Hz. Once this basic unit is reached, then I just have to intilaize counters to roll over at 60, 60, 24 etc to display HH:MM:SS. In short I just have a 2^47 bit up-count timer No. You have a 47-bit up-count timer. A 2^47 bit up counter would be truly huge. You would need 141 One-terabyte disks to store a single such timestamp ;) There are lots of code available that converts a unix epoch into year, month, day, hour, minute, second without introducing a large number of small, constantly overflowing, software counters. |
Topic | Author | Date |
RTC of the C8051F410 of Silabs | 01/01/70 00:00 | |
this should help | 01/01/70 00:00 | |
UNIX time | 01/01/70 00:00 | |
Back to basics? | 01/01/70 00:00 | |
What is approx about 32.768kHz being 2^15 ticks/s? | 01/01/70 00:00 | |
Lots of code available | 01/01/70 00:00 | |
Thats huge indeed ! | 01/01/70 00:00 | |
32.768kHz | 01/01/70 00:00 | |
Normally best solution without radio receiver | 01/01/70 00:00 | |
which tolerance would you prefer, and why?? :)![]() | 01/01/70 00:00 |