| Article: |
Using the Observer Pattern in .NET | |
| Subject: | Binary Coded Decimal clock | |
| Date: | 2005-01-18 01:51:59 | |
| From: | MarcHenriPoget | |
| The binary clock depicted here is in fact a binary coded decimal clock, since its digits are coded separately. I own a binary watch where hours are coded using 5 bits, minutes using 6 bits and seconds using 6 bits. It requires a little bit more practice. | ||
Showing messages 1 through 2 of 2.
-
Binary Coded Decimal clock
2005-01-18 16:58:26 michaelgweier [Reply | View]
-
Binary Coded Decimal clock
2005-01-18 23:18:17 MarcHenriPoget [Reply | View]
Yes, I enjoyed the article and the example. The ultimate binary watch requires one more bit, since 86400 (24 * 3600, the amount of seconds since midnight) can't be represented as an unsigned 16 bits integer...
Warm regards.





This code could be pretty simply modified to demonstrate a watch as you describe. Adding an additional couple of base two factors on top of the existing ones factors in the light control, and setting up each column to read as SecondsOnes, MinutesOne, and HoursOnes would give you the basic setup that would mimic your watch.
Thanks for the feedback. I hope you enjoyed the article!