That make it so much clearer! Thank you for the explanation! Now, that is only TTL right, does the same apply to CMOS?Here is what a 7400 TTL gate looks like internally. Ignore the left drawing and focus on the right hand drawing. This is a simple model of how the output transistors operate.
When the gate wants a HIGH output, Q4 conducts and Q3 is open.
When the gate wants a LOW output, Q4 opens and Q3 conducts.
Now imagine that you connect the output of another gate to this output. It does not matter where that gate is. It can be on a different chip on a different board.
If Q4 of one gate and Q3 of the other gate are both closed, this is a short circuit across the power rails and the high current can fry your chips.
Can you further explain that cap concept please?In addition to the problem of tying the outputs together, resulting in hitting the package limit for I/O current sinking and sourcing to itself, and the other issues and questions above...
When working with logic, always remember to add a 0.1uF cap between Vcc and GND on the IC itself. With breadboards in general, I put a 22uF cap on each rail, then a 0.1uF every 15 rows or so on each side (min, 1 per side) in addition to a 0.1uF cap across each IC. Breadboards are VERY noisy, and the bypass caps help reduce odd glitches with circuits that switch quickly. These are a permanent fixture on all of my breadboards with logic, microcontroller, and analog circuits due to the number of headaches saved.
With your circuit above, something like a diode-OR between your inputs and the Inputs/outputs of the switches and inverter (thus avoiding shorting the IC outputs together). The unused inputs should also be either tied to Vcc or GND through a resistor, rather than left floating. Floating inputs can result in the IC oscillating on it's own (which stops when probing to find the problem due to the added load)
Yes, the same applies to CMOS.That make it so much clearer! Thank you for the explanation! Now, that is only TTL right, does the same apply to CMOS?
So, how can I change my circuit to fix this?Yes, the same applies to CMOS.
Click on "Bypass caps, Read Me!" in sigline. I only mention it as secondary information to your primary issue due to the number of times an unstable supply ends up causing problems.Can you further explain that cap concept please?
If you have some diodes on hand, connect a diode in between your output and where the outputs meet(right now)...So, how can I change my circuit to fix this?
See This post from This OLD thread, don't bump that thread, keep the discussion here.So, how can I change my circuit to fix this?
Sorry, I didn't quite understand that.See This post from This OLD thread, don't bump that thread, keep the discussion here.
The post I linked from Ron H shows how to wire a diode AND gate without using another IC.
Sorry, I didn't quite understand that.