What is the output of a logic gate when one input is not connected?

AI Thread Summary
When one input of a logic gate is not connected, the output can be unpredictable and may fluctuate between high and low states, depending on the logic family used. Floating inputs are generally considered a design error, particularly with CMOS gates, as they can lead to increased power consumption and noise. It is recommended to use pull-up or pull-down resistors to prevent inputs from floating. Additionally, if LEDs are present in the circuit, they may interfere with the input voltage, necessitating the use of parallel pull-down resistors. Properly managing unused inputs is crucial for reliable circuit performance.
r731
Messages
40
Reaction score
6
Hello,

I'm currently studying a course in digital logic. The course is included in my IT program. And I have not taken a course in electronics yet; I will later.

My question basically is: what is the output of a logic gate given that one input is neither connected to a high voltage nor connected to ground? (That is, the input is not connected to anything.) And why?

debounceSR_large.gif


Tomorrow I'm having a lab, where I will connect a mechanical switch to a latch.
Thanks in advance.
 
Engineering news on Phys.org
In general case the output will be set at high state or at low state or somewhere between these two states. It all be depend on the logic family you are actually be using. And this is why we should never leave unused inputs floating. And always use a pull-up or pull-down resistors.
 
The power supplies to the logic gates are implicit and so not usually shown. In this case the supplies are assumed to be GND = 0V and +6V. Since four gates, each with two inputs and one output, are all in each package, they can share the two power supply pins. That makes 3*4 + 2 = 14 pins on the IC.

The “>=1” gate is an OR gate, but it has an inverted output, so it is a NOR gate.
The circuit shown is an RS flipflop. If you follow the logic state through the circuit, then flip the switch and watch the new state develop, you will understand why this circuit is called a switch de-bounce circuit.
 
r731 said:
My question basically is: what is the output of a logic gate given that one input is neither connected to a high voltage nor connected to ground? (That is, the input is not connected to anything.) And why

It is generally considered a design error to leave logic inputs floating. Especially with CMOS gates, floating inputs can cause problems with increased power consumption and noise generation. Always tie off unused logic inputs. :smile:
 
The “green” light emitting diodes in the OP diagram may be a problem because they prevent the input voltage being pulled hard down to zero.
If the LEDs are included then there should be another pull-down resistor in parallel with each (Resistor–LED) pair.
 
Thread 'Weird near-field phenomenon I get in my EM simulation'
I recently made a basic simulation of wire antennas and I am not sure if the near field in my simulation is modeled correctly. One of the things that worry me is the fact that sometimes I see in my simulation "movements" in the near field that seems to be faster than the speed of wave propagation I defined (the speed of light in the simulation). Specifically I see "nodes" of low amplitude in the E field that are quickly "emitted" from the antenna and then slow down as they approach the far...
Hello dear reader, a brief introduction: Some 4 years ago someone started developing health related issues, apparently due to exposure to RF & ELF related frequencies and/or fields (Magnetic). This is currently becoming known as EHS. (Electromagnetic hypersensitivity is a claimed sensitivity to electromagnetic fields, to which adverse symptoms are attributed.) She experiences a deep burning sensation throughout her entire body, leaving her in pain and exhausted after a pulse has occurred...
Back
Top