logic level
One of a finite number of states (usually two) that a digital signal can have.
logic level: the voltage that means yes or no
A logic level is a defined voltage range that represents one of two discrete states in a digital circuit: high (logic 1) or low (logic 0). Unlike analog signals that vary continuously, digital systems use these fixed voltage bands to encode information. A microcontroller pin, for instance, reads anything above 2.4 volts as a 1 and anything below 0.8 volts as a 0 on a 5-volt system; the intermediate range is undefined and avoided. This binary encoding is the foundation of all digital logic.
The exact voltage thresholds depend on the logic family and supply voltage. TTL (transistor-transistor logic) circuits typically use 5 volts and define high as 2.4 to 5.0 volts and low as 0 to 0.4 volts. CMOS logic is more flexible: on a 5-volt supply, high is usually 3.5 to 5.0 volts and low is 0 to 1.5 volts. Modern microcontrollers often run on 3.3 volts, where the thresholds shrink proportionally. Some industrial applications use 24-volt logic levels for noise immunity over long cable runs.
Incompatibility and translation
Mixing logic families causes problems. Connecting a 3.3-volt output directly to a 5-volt input may work, but the reverse can destroy a pin. Level shifters, which are dedicated translator circuits or simple resistor networks, convert signals between different voltage domains. In harsh environments with electrical noise, wider margins between the high and low thresholds improve reliability; this is why industrial control systems often prefer 24-volt logic over 5-volt logic.
The threshold voltages themselves are not arbitrary. They reflect the switching characteristics of the underlying transistors and account for noise margins: the difference between the output guarantee and the input requirement. On a 5-volt TTL output guaranteed to reach 2.4 volts minimum at logic high, the input threshold sits at 2.0 volts, providing 0.4 volts of noise immunity. If electrical noise kicks a signal up or down by more than this margin, errors occur.
Testing logic levels requires an oscilloscope or logic analyzer to measure actual voltages and timing. Multimeters are inadequate because they average the signal. A logic level can transition in nanoseconds, and a missed transition window can cause a gate to misinterpret the state. System designs must account for propagation delays, setup times, and hold times around state changes.