vendredi 27 mars 2009

Binary Clock - Accrochez-vous !

In BCD, each digit of a decimal number is individually encoded in binary.
BCD is much easier to convert to decimal than regular binary. In the binary clock module, each column represents a digit of the binary encoded time.
To turn this column into a digit, add 1 if the bottom column is "lit", a 2 if the next one up is lit, a 4 if the next one up is lit, and finally an 8 if the top light is lit.
The rightmost column is the ones digit of the seconds.
In this example, the digit value is 8. The tens digit is 4, etc.
The entire time is thus 15:03:48 or 3:03:48 PM
Un petit coup de main !

Avez-vous compris ? Sur l'exemple du haut, il est 10 h 48:36
Comment arrive-t-on à cette heure ?

Grâce à un petit calcul, qui sera très simple à mémoriser. Les lignes horizontales sont en fait des chiffres qu'il faudra additionner. La première ligne en partant du bas correspond au 1, la deuxième ligne au 2, la troisième ligne au 4 et la dernière ligne au 8. Prenons la dernière seconde, il suffit d'additionner la deuxième et troisième ligne (vous suivez ?) c'est à dire le chiffre 2 et le 4, pour faire un total de 6 !

Et voilà, vous avez trouvé 6 secondes !

Aucun commentaire:

Enregistrer un commentaire