Author |
Message |
astroman
Joined: Sep 13, 2012 Posts: 44 Location: UK
|
Posted: Fri Jul 05, 2013 6:59 am Post subject:
Found a bunch of 4013 chips |
|
|
What can I do with them? |
|
Back to top
|
|
|
corex
Joined: Mar 02, 2010 Posts: 114 Location: Las Vegas
|
|
Back to top
|
|
|
astroman
Joined: Sep 13, 2012 Posts: 44 Location: UK
|
Posted: Sat Jul 06, 2013 7:37 am Post subject:
|
|
|
Corex........Thanks for the reply but I don't understand what that does? |
|
Back to top
|
|
|
corex
Joined: Mar 02, 2010 Posts: 114 Location: Las Vegas
|
Posted: Sat Jul 06, 2013 10:27 am Post subject:
|
|
|
The module has four momentary switches, so it outputs a gate when you press (and hold) a momentary switch. I use the flipflops to hold state so that instead when you press a momentary switch, the output signal simply toggles (from on to off or vice versa) and then holds that state until you press the momentary switch again to toggle it.
The trick is to run \Q back to D, and use the momentary switch as the clock -- when the user presses the momentary, they clock the next bit in to the latch. In this mode it is essentially working as a divide-by-two clock divider.
https://en.wikipedia.org/wiki/D_flip_flop#Gated_D_latch |
|
Back to top
|
|
|
astroman
Joined: Sep 13, 2012 Posts: 44 Location: UK
|
Posted: Sat Jul 06, 2013 11:54 am Post subject:
|
|
|
Thanks Corex for that explaination! |
|
Back to top
|
|
|
trav
Joined: Sep 11, 2012 Posts: 108 Location: Auckland
Audio files: 16
|
Posted: Wed Jul 17, 2013 12:35 pm Post subject:
|
|
|
This is also not a bad chip brought more or less straight out to the panel. Experiment with different clock speeds into the CLK and DATA pins, maybe throw something at SET or/and RESET too, and listen to one of the outputs.
If you really have a lot of them you could build your own shift register, flip-flop by flip-flop, as long as you like! (connect output of one flip-flop into data of next) or combine with a proper shift reg chip to get the right number of bits/taps for a maximal linear feedback shift register...
Likewise, you could build your own binary counter out of a bunch of these: connecting NOT-Q to DATA (like Corex' example) gives a square wave at Q which has half the frequency of the signal at CLK (use this to clock the next flip-flop for division by 4, then 8, and so on...)
This chip isn't amazing, but playing with it is a good way to see how flip flops work, and so how other chips which are basically combinations of flipflop logic work too |
|
Back to top
|
|
|
astroman
Joined: Sep 13, 2012 Posts: 44 Location: UK
|
Posted: Wed Jul 17, 2013 3:18 pm Post subject:
|
|
|
Thanks Trav! Hoping to try some of this in a few days! |
|
Back to top
|
|
|
|