Shift Register Controlling Frequency

Thread Starter

mxabeles

Joined Apr 25, 2009
266
Hi all,
I want to have the 8 outputs of a shift register "choosing" different resistors for the frequency of a 555 timer over time. The register would be wired as a LFSR.

Thanks,
Max
 

SgtWookie

Joined Jul 17, 2007
22,230
Did you mean Last In, First Out?

That'll be kind of hard to do, as even though shift registers are available with 3-state outputs, those are an "all or nothing" proposition.

Better to use a mux/demux IC connected to a counter.
 

SgtWookie

Joined Jul 17, 2007
22,230
On a similar note, here's a 4017 5-stage Johnson counter and a 4093 NAND gate for a clock. The 4017 "chooses" a new delay value for the 4093 clock, every time the 4093 outputs a new clock. The diodes enable just 1 resistor at a time to charge the timing cap.

[eta]
Oops, used a 40106 hex Schmitt-trigger inverter instead of a 4093 quad Schmitt-trigger NAND gate.
You can also use the 4093 NAND as four individual timers; with just a single resistor and cap needed per gate.
 

Attachments

Ron H

Joined Apr 14, 2005
7,063
LFSR means Linear Feedback Shift Register. They are used for generating pseudorandom sequences. Maximal length for an 8 bit LFSR is 255 states before repeating.
In order to get 255 different frequencies from the 555, an 8 bit digital to analog current converter would be required.
 

Thread Starter

mxabeles

Joined Apr 25, 2009
266
Thanks guys!
i guys i was thinking u could somehow have a set resistor for each output ( 7 if using 1 shift register wired as LFSR i think). And the shift register could pick a resistor at random/////
I mean, the real question is how do you switch frequency to the 555 without turning a knob (automate the frequency change...)
Tnx for any insights, and I'll check out the DAC schema.
-M
 

Ron H

Joined Apr 14, 2005
7,063
With 8 bits, you can have 256 (255 with an LFSR) different combinations of outputs, which means you can have up to 256 (255) different frequencies. to do this with 8 resistors, they have to be weighted in binary fashion, i.e, R, 2R, 4R, 8R,..., 128R. This is one type of D/A converter. You could also use an R-2R network (Google), which only requires 2 resistor values, but roughly twice as many.
 

Thread Starter

mxabeles

Joined Apr 25, 2009
266
I think I forgot to thank u for the schematic.
Thanks buddy!
-M
Just to make sure, I don't need bi=polar power for this? Most of the DACs i've been looking at online require bipolar power supply. me no like....
 

Ron H

Joined Apr 14, 2005
7,063
I think I forgot to thank u for the schematic.
Thanks buddy!
-M
Just to make sure, I don't need bi=polar power for this? Most of the DACs i've been looking at online require bipolar power supply. me no like....
The circuit I posted only requires one supply. Keep in mind that I haven't tested or simulated it.
 

Thread Starter

mxabeles

Joined Apr 25, 2009
266
I actually found a way to do this that works well. The LFSR data goes to output router (0,0,0...1,1,1,etc) of demultiplexer (chip CD4051). The common input is pin 7 of 555 and then I have 8 or more outputs with different resistors going to pin 8. Works!
Best,
M
 

Thread Starter

mxabeles

Joined Apr 25, 2009
266
um, yeah. :)
I didn't put any components (resistors, caps) cause it would be too messy, and its up to you what values anyway. shoot me a mess if u have any questions.
Best,
M
**** eagle haha
 

Attachments

Thread Starter

mxabeles

Joined Apr 25, 2009
266
input of 4051. pin 7 of 555
outputs of 4051. various resistors to pin 8 of 555
LFSR/4051 circuit changes resistance between pin 7-8 of 555.
 
Last edited:
Top