Go Down

Topic: Mutiplexing or Shift Registers? (Read 1 time) previous topic - next topic

Jeremy1998

Jul 01, 2010, 11:21 pm Last Edit: Jul 02, 2010, 01:53 am by Jeremy1998 Reason: 1
I am making a binary clock, and I dont know which one to do. Which one is easier to code?

AWOL

#1
Jul 01, 2010, 11:27 pm Last Edit: Jul 01, 2010, 11:52 pm by AWOL Reason: 1
24 hours per day (5 bits) , 60 minutes per hour (6 bits), 60 seconds per minute (6 bits).
Total 17 bits.

Just use I/O pins.
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

Jeremy1998

#2
Jul 01, 2010, 11:32 pm Last Edit: Jul 01, 2010, 11:34 pm by Jeremy1998 Reason: 1
??? It's going to have 21 leds. I am doing:

AM / PM Lights  (2)
Hour Lights       (5)
Minute Lights    (7)
Second Lights   (7)
--------------------------
Total                (21)

AWOL

#3
Jul 01, 2010, 11:37 pm Last Edit: Jul 01, 2010, 11:52 pm by AWOL Reason: 1
60 seconds (or minutes) requires only 6 bits. 26 = 64

It's going to have 18 leds.
AM / PM Lights  2
Hour Lights       4
Minute Lights    6
Second Lights   6
--------------------------
Total                18

Or be un-American and use the 24-hour clock and save a pin/LED.   ;D
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

Jeremy1998

I don't understand... It takes 7 leds to show 59 seconds. The ones has to go to 9. The tens has to go 5.

Go Up