sburrow wrote:
I'm just confused about all of this. Could you explain for a newbie like me? I have heard or-wired and and-gated a lot, not sure what is what honestly.. I use AND gates here because if either signal goes low, the result goes low. I don't understand why OR would be used at all, but then again I'm new at this. I only think in schematics, so perhaps I missed something in digital logic school.
In a mathematical sense, AND and OR are duals of each other - they do the same thing in different universes, those being the "positive logic" and "negative logic" universes. If you invert both inputs and the outputs, you turn one into the other! In logic this is called de Morgan equivalence.
Wire-OR refers to the way that if you join two wires together, which are either floating or grounded, then the result is grounded if either of the inputs were grounded - so for devices that with open-collector or open-drain outputs - i.e. the device either connects its output pin to ground or doesn't - you can OR their outputs together by just joining the wires. But you also need a pull-up resistor in case none of the devices is grounding the output, otherwise it just floats.