| Author |
Message |
corex

Joined: Mar 02, 2010 Posts: 100 Location: Las Vegas
|
Posted: Wed Jun 27, 2012 10:23 am Post subject:
Analog Or Gate? Subject description: How to pass the greater of two signals? |
 |
|
| I have a problem where I would like to pass the greater of two signals, a kind of "analog or". It seems to me that this has come up before, but search fails me. Anybody have a schematic, or even a better keyword? |
|
|
Back to top
|
|
 |
JingleJoe

Joined: Nov 10, 2011 Posts: 789 Location: Lancashire, England
Audio files: 14
|
Posted: Wed Jun 27, 2012 11:03 am Post subject:
|
 |
|
Two diodes should do.
simply make a diode based OR gate, with a pull down resistor on the end, that will pass analogue voltages above the diode voltage. _________________ As a mad scientist I am ruled by the dictum of science: "I can't really be certain but I think I might have an idea"
Green Dungeon Alchemist Laboratories |
|
|
Back to top
|
|
 |
corex

Joined: Mar 02, 2010 Posts: 100 Location: Las Vegas
|
Posted: Wed Jun 27, 2012 11:55 am Post subject:
|
 |
|
| I'm looking for something a little more sophisticated; the diodes will have a voltage drop and won't pass bipolar signals. |
|
|
Back to top
|
|
 |
JovianPyx

Joined: Nov 20, 2007 Posts: 1081 Location: West Red Spot, Jupiter
Audio files: 123
|
Posted: Wed Jun 27, 2012 2:51 pm Post subject:
|
 |
|
Hmm... A comparator monitors the two voltages. The voltages are then passed through two transmission gates of a 4066 which is controlled by the comparator and the logically inverted output of the comparator. Of course, that puts limitations on the range of voltages it will pass. I.e., you can expect to pass a range of +15 to -15 through a transmission gate. The transmission gates outputs are connected together to form a single output. May need resistors on the xmission gate outs, not sure. _________________ FPGA Synth Stuff
FatMan Mods
dsPIC Synth Stuff I am formerly known as ScottG here Time flies like a banana. Fruit flies when you're having fun. BTW, Do these genes make my ass look fat?
|
|
|
Back to top
|
|
 |
andrewF

Joined: Dec 29, 2006 Posts: 1165 Location: australia
Audio files: 4
|
|
|
Back to top
|
|
 |
brock

Joined: May 26, 2011 Posts: 75 Location: Canada
|
Posted: Wed Jun 27, 2012 10:00 pm Post subject:
|
 |
|
| JovianPyx wrote: | | Of course, that puts limitations on the range of voltages it will pass. I.e., you can expect to pass a range of +15 to -15 through a transmission gate. |
There may be an error here. The limitation is you cannot pass +15V to -15V through a CD4066, but if you use a DG403 it should work okay.
If you are comparing audio or periodic inputs you probably want some kind of peak detectors or envelope followers on the input signals for the comparator control. |
|
|
Back to top
|
|
 |
JovianPyx

Joined: Nov 20, 2007 Posts: 1081 Location: West Red Spot, Jupiter
Audio files: 123
|
Posted: Thu Jun 28, 2012 6:22 am Post subject:
|
 |
|
Not sure if it's an "error", more of a memory lapse - I couldn't remember the part number you cited. However, I think that the technique would work, no? _________________ FPGA Synth Stuff
FatMan Mods
dsPIC Synth Stuff I am formerly known as ScottG here Time flies like a banana. Fruit flies when you're having fun. BTW, Do these genes make my ass look fat?
|
|
|
Back to top
|
|
 |
corex

Joined: Mar 02, 2010 Posts: 100 Location: Las Vegas
|
Posted: Thu Jun 28, 2012 9:18 am Post subject:
|
 |
|
Thanks guys!
The comparator + switch combo sounds like a workable approach. I didn't know about DG403, but looking over the datasheet it does seem more appropriate than the 4066. (For onlookers: the 4066 switches analog signals up to +/-7.5V peak, whereas the DG403 will switch signals up to +/-15V ptp.)
I'll do some experiments along these lines. |
|
|
Back to top
|
|
 |
brock

Joined: May 26, 2011 Posts: 75 Location: Canada
|
Posted: Thu Jun 28, 2012 9:28 am Post subject:
|
 |
|
| The concept will work no problem. I think Aries may even have made a module like this in their analog switch which, if I recall correctly, could be controlled with an analog voltage. High probability of memory lapse on my part with that guess/memory though as that's going back a long time. |
|
|
Back to top
|
|
 |
wmonk
Joined: Sep 15, 2008 Posts: 483 Location: Enschede, the Netherlands
Audio files: 12
|
|
|
Back to top
|
|
 |
PHOBoS

Joined: Jan 14, 2010 Posts: 1004 Location: Moon Base
Audio files: 254
|
|
|
Back to top
|
|
 |
corex

Joined: Mar 02, 2010 Posts: 100 Location: Las Vegas
|
Posted: Mon Jul 02, 2012 9:42 am Post subject:
|
 |
|
Thanks! It's nice to have a couple of options, and this looks like a completely different approach. |
|
|
Back to top
|
|
 |
corex

Joined: Mar 02, 2010 Posts: 100 Location: Las Vegas
|
Posted: Mon Jul 02, 2012 11:14 am Post subject:
|
 |
|
| TL071/072/074 should be okay instead of LM324 in the YuSynth circuit, right? |
|
|
Back to top
|
|
 |
JingleJoe

Joined: Nov 10, 2011 Posts: 789 Location: Lancashire, England
Audio files: 14
|
Posted: Mon Jul 02, 2012 2:29 pm Post subject:
|
 |
|
| corex wrote: | | TL071/072/074 should be okay instead of LM324 in the YuSynth circuit, right? |
That depends, how close to the rails do you need them to operate? I've had trouble with them TL07X's when operating at input voltages near the supply rails. They aren't designed for that, unlike the LM324 which can go all the way to the negative supply because it is designed for single supply operation. Input voltage ranges are the main concern here. _________________ As a mad scientist I am ruled by the dictum of science: "I can't really be certain but I think I might have an idea"
Green Dungeon Alchemist Laboratories |
|
|
Back to top
|
|
 |
corex

Joined: Mar 02, 2010 Posts: 100 Location: Las Vegas
|
Posted: Tue Jul 03, 2012 12:26 pm Post subject:
|
 |
|
| JingleJoe wrote: | | corex wrote: | | TL071/072/074 should be okay instead of LM324 in the YuSynth circuit, right? |
That depends, how close to the rails do you need them to operate? I've had trouble with them TL07X's when operating at input voltages near the supply rails. They aren't designed for that, unlike the LM324 which can go all the way to the negative supply because it is designed for single supply operation. Input voltage ranges are the main concern here. |
That makes sense, yeah. I looked over both datasheets and that was all that really stood out to me -- that the LM324 is meant for single-sided rail-to-rail operation. For my purposes, I think I don't care about rail-to-rail so that answers that. |
|
|
Back to top
|
|
 |
|