Women in Technology

Hear us Roar



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.
Full Threads Oldest First

Showing messages 1 through 2 of 2.

  • Binary Coded Decimal clock
    2005-01-18 16:58:26  michaelgweier [View]

    Thanks for the note. I think one could consider even a watch set up as you describe to be a little bit decimal, as well. I would imagine that a binary clock in its most pure form binary clock would contain a single row of sixteen lights, which would count seconds since midnight. Now that would be a trick to read.

    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!
    • Binary Coded Decimal clock
      2005-01-18 23:18:17  MarcHenriPoget [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.