Need help switching resistance values
MitchSF
Posts: 2
I'm working on an·application where I have to switch six different resistor values between a single line, and ground.· My first thought is to tie all six together and to the other device's input line, then the other side of each resistor will go to an i/o pin, which will initially be set to an input, so it will float.· To switch one of the resistor values to ground, I'll change an i/o pin to output, then set it's state to zero.·
I'm not really happy with this, and it depends on the i/o lines floating when not set to output.· There must be a better way to do this.· Any help is appreciated.
Thanks,
Mitch
·
I'm not really happy with this, and it depends on the i/o lines floating when not set to output.· There must be a better way to do this.· Any help is appreciated.
Thanks,
Mitch
·
Comments
Other solutions might use external transistors with the drains (or collectors) attached to the lower side of the resistors. If it needs lots of current, you could use beefy mosfets. Or an external intergrated circuit that would provide the 6 open drain outputs. so you could address it serially and not use up so many stamp pins.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tracy Allen
www.emesystems.com
I'm not clear on how the transistor would be connected - one end of each resistor goes to the other device's input wire, the other end of each resistor goes to the transistor's collector, the emitter goes to ground (?), and the base goes to the input pin?· Doing it this way, how is the transistor powered?
Thanks very much for the help.
Mitch
Edit - I think i see, it depends on the voltage of the input line.
Post Edited (MitchSF) : 4/29/2005 12:56:49 AM GMT
It might help if we knew the whole story. It depends what function the switching of resistors performs. If you are looking for a way to create a digital switch, the method would be different than if you were trying to adjust the gain of an amp for example. It sounds like a place for a digital pot but maybe you could give us the rest of the story.
Lee