Why OR gates?

Hi guys:

Here's just a simple, silly question from a non-EE that probably has a simple answer.

If I have several TTL logic outputs that I want to "OR" together, so that any of these will drive the output of the OR gate, why can't I just connect the output wires together physically, merging them into one wire, without using the gate?

One reason I can think of is that it avoids the case where two connected wires are high at the same time. But if I ensure that this cannot happen due to my upstream design (like a decoder), do I still have to use the OR, or can I merge the outputs?

Don

Reply to
eromlignod
Loading thread data ...

If you tie the outputs of two TTL gates together, and one output is a 1 and the other a 0, you end up with a short corcuit between VCC and ground through the gates. For a 74Fxxx, for instance, you will draw about 100 ma, and the resultant output will be neither a 1 or a 0.

Tam

Reply to
Tam/WB2TT

OK. I knew it was something stupid. I was thinking that gate outputs are high-impedance, but it's the inputs that are hi-Z. Duh.

What I'm trying to do it select one of three inputs without using a lot of chips, or wasting a lot of gates. I know that there are MUX's, like the 74153 that have dual 2 to 4 selectors, but I hate to waste the second MUX. I was hoping to use three AND gates with 3 enable lines, but then if I need an OR gate, that's another chip...probably a quad.

Don

Reply to
eromlignod

If you'd asked where this belongs, sci.electronics.basics I'd take a shot at answering it. But since you can't bother to find the right newsgroup, I won't.

This is not a design question, it doesn't belong in a newsgroup about design.

Michael

Reply to
Michael Black

Well, sorta. TTL inputs are medium-high (Z loading on an output is a factor based on number of inputs driven). CMOS inputs are quite high (only distributed capacitance of multiple traces/inputs is a rise/fall time factor).

Fred

Reply to
Fred M

Oops, sorry Michael - meant to reply to author.

Reply to
Fred M

Well, sorta. TTL inputs are medium-high (Z loading on an output is a factor based on number of inputs driven). CMOS inputs are quite high (only distributed capacitance of multiple traces/inputs is a rise/fall time factor).

Fred

Reply to
Fred M

DTL is what you seem to want to do. You can add steering diodes.

greg

Reply to
GregS

Of course you can. It's a very common construct called "Wired OR".

No problem with open-collector outputs. Otherwise just add some diodes.

Since you are using TTL, and since TTL usually has OC outputs (but do check the datasheets of your chips to make sure), there is no problem. With push-pull outputs (such as CMOS, like the 40xx or 74HCxx series) what you have in mind is not only bad design, but it simply won't work at all.

robert

Reply to
Robert Latest

diode-or :) just make sure they dot drop the voltage below TTL threshold (which is why they are not generally used for OR gates)

---|>|---| |-------

---|>|---|

Reply to
John Barrett

This is badly phrased. There are TTL parts with open-collector outputs

- the SN7406 - for example, and these can be used to build wired-OR functions.

formatting link

Most TTL parts have a totem-pole output which can both source current (1 or high state) or sink current ( 0 or low state) and you shouldn't use them for wired-ORs,

Emitter-coupled logic (ECL) uses an NPN transistor as the output driver, and can only source current - it relies on a pull-down resistor (usually 50R to -2V) to provide the pull-down current to generate a low (0) output, and all ECL parts can be used to produce wired-ORs, though it isn't a good idea if the gates being OR'd are more than an inch (a few centimetres) or so apart.

-- Bill Sloman, Nijmegen

Reply to
bill.sloman

I did not know that.

Reply to
Richard Henry

This won't work into TTL because it leaves the input to the next stage floating, which is a mostly ONE. If you add a pulldown of sufficiently low value you won't be able to drive it. This basic configuration will work if you use resistors, instead of diodes, and connect them to the base of a transistor. Connect another resistor from collector to ground. What you have now is a NOR gate; so, you need to invert that.

This will work. Notice, Rich said to invert the signals. You will need a ~10K resistor from the diode outputs to VCC.

Tam

Reply to
Tam/WB2TT

You didn't know that because it is NOT true.

Tam

Reply to
Tam/WB2TT

I would not think this reliable as the diode puts you at the threshold instead of in the low region.

Best, Dan.

Reply to
Dan Bloomquist

Eek. You're right. I guess it worked for me before because I didn't know that, much like the bumblebee doesn't know it's impossible for him to fly. ;-)

(I probably just lucked out on margins & stuff.)

Thanks! Rich

Reply to
Rich Grise

OK, this is your design and I won't comment on it. But from my short (25 years plus) time spent in various designs I can assure you one thing. Mr. Murphy is a constant companion so designing to evade his inerference is futile (Star Trek). The problem is to ensure that your signals don't create low-high couples, and for this you have the OR gate as a bouncer. Not only that, but it is a component in Boolean logic, and we love to use math before assembly.

Have fun

Stanislaw Slack user from Ulladulla.

Reply to
Stanislaw Flatto

Well, I'm only marginally right. :)

Best, Dan.

Reply to
Dan Bloomquist

Usually when I say that in a meeting people understand it to be dead- pan sarcasm.

However, I don't know how to inflect that in a newsgroup post.

Reply to
Richard Henry

...or OR and NOT.. How about a BUT gate, or a MAYBE gate?

---> BUT NOT AND MAYBE XOR ?

Reply to
Robert Baer

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.