Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
02/20/10 11:52
Read: times


 
#173341 - Oh, I see - that's not "binary" at all!
Responding to: ???'s previous message
Chico Magalhães said:
I have seen somewhere some time ago a "binary" clock, it was really not a real binary.

No, it's not "binary" by any stretch of the imagination - it is completely inappropriate to describe it as such!

Each digit (0 to 9) of time was shown in a 3x3 LED matrix, so 9 LEDs for each digit.
The real number was shown in this 3x3 by summing the number of lit LEDs, 3 LEDs lit = number 3
But this 3x3 is filled randomly, so to make a 1, the only 1 lit LED could be any of the 9 LEDs, same goes to other numbers.


Oh, I think I see now:

'0' is represented by having no LEDs illuminated;
'1' is represented by having one LED - any LED - illuminated;
'2' is represented by having two LEDs - any two LEDs - illuminated;
'3' is represented by having three LEDs - any three LEDs - illuminated;
:
:
'9' is represented by having 9 LEDs - all nine LEDs - illuminated.


Some idea to replicate this 3x3 random filling in 8051s?

Nothing specific to the 8051 here.
The two basic things you need to do are:
A. Decide how many LEDs are to be lit;
B. A "random" (sic?) number generator to choose the LEDs to light.

That can be done generically in 'C' - independent of any particular processor.


List of 7 messages in thread
TopicAuthorDate
"binary" clock            01/01/70 00:00      
   You mean one of these? (should be a doddle)            01/01/70 00:00      
      No... not this one            01/01/70 00:00      
   Oh, I see - that's not "binary" at all!            01/01/70 00:00      
      Yes! Thats it!            01/01/70 00:00      
         World's most unreadable clock?            01/01/70 00:00      
            random permutations            01/01/70 00:00      

Back to Subject List