Misbehaving logic gates

integrated-circuitlogic-gatestesting

I made a prototype to test a few logic gates and found out that

  1. My AND gate (7408) Works like an OR Gate.

  2. My OR Gate (7432) is always on

  3. My XOR Gate (7486) is always off

  4. My NOT Gate (7404) works.

This is my test setup –
Setup

The grey and Brown hanging wires are inputs, the LED up top is output.
The current chip is the 74HC08N AND by TI.

Sometimes, the gates randomly work too.

EDIT

Adding Resistors and pulling to GND fixed all but the XOR (74F86PC) Gate, which still does not respond (With bypass capacitors, etc)

I Am Running at 3 V

So, help?
Thanks!
These are my first circuits, so a bit dirty, sorry.

Best Answer

For CMOS logic parts like the 74HC family, the inputs are very high impedance, and don't assume any particular level when left unconnected. They must always be connected either directly, or through a resistor, to Ground or Vcc, in order for the chip to reliably see them as Low or High. ALL unused inputs MUST be connected to Vcc or Ground, even on the unused gates in the chip.

For bipolar TTL (plain 74xx, 74LS, 74ALS) the inputs source current, so will normally appear as high when not connected, and must be connected to Ground to be seen as a low.

As the comments mention, a bypass capacitor is desireable, but the lack of one wouldn't cause a problem with the simple test circuit you are using.

Related Topic