Electrical – Floating value when connecting to IC input

flipflopfloatingfloating-pin

I'm currently having a strange issue with what I think is a 'floating' signal.

The setup:
I have a bank of inputs (which are connected to a resistor and LED acting as a pull-down) connected to inputs and outputs of a D-type flip flop IC (SN74ALS374AN). The fact I'm using all 8 shouldn't matter as the issue occurs on any one in isolation. They are connected to input and output as I will only have enable or clock on at any given time, and never both (for a bidirectional bus). The datasheet of the chip says it is suitable for this.

The problem:
See the image attached. When I disconnect wire A from the flip flop IC (connection B) and read the voltage between A and ground, I get 0v or 5v depending on whether the switch is on. However when I connect A to B (the goal being to feed this logic 1 or 0 signal to the IC), suddenly the voltage reads as 1.5v (which I believe to be a floating value).

Can anyone explain this behavior? Am I doing something wrong?

A few things to note:
– It doesn't matter if I disconnect Q and D on the IC
– If I connect to Q only, then the logic low is retained, so the problem is really just the D (or input) of the flip flop
– The datasheet for the IC doesn't seem to shed any light on this

Any suggestions would be very much appreciated. If I haven't explained anything properly or you need me to test anything else then please let me know.

Many thanks,
Matt

A is 0 when B is disconnected, and 'floats' when B is connected

Best Answer

In general, a digital input must either be high or low at all times. If "BUS" is just a hierarchical symbol to reduce the number of wires shown, then what you are really giving as input is:

  • Switch closed = input to HIGH (good)
  • Switch open = input to 220R, to LED, to ground (bad)

This is bad because the LED will drop some voltage, likely 1.8v or so. So the input pin is not seeing anything near what it expects for a low signal.

Often, this "indeterministic state" between low and high can even be damaging to the IC, as it turns on multiple parts of the IC internally which essentially short it out. So this condition must be avoided.

The latter (open switch) is problematic because the registered low input signal level (\$\text{V}_{\text{IL}}\$) of the 74ALS374AN is a maximum of 0.8v, and the 220R and LED are likely presenting it with 2.0v.

@KV5ROB's solution may work. If it were mine, I'd find some other way to light the LED's (look into buffers or inverters) and replace them with 10k resistors.

Related Topic