<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://rs-485.com/index.php?action=history&amp;feed=atom&amp;title=Logic_level</id>
	<title>Logic level - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://rs-485.com/index.php?action=history&amp;feed=atom&amp;title=Logic_level"/>
	<link rel="alternate" type="text/html" href="https://rs-485.com/index.php?title=Logic_level&amp;action=history"/>
	<updated>2026-05-04T02:26:58Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.42.3</generator>
	<entry>
		<id>https://rs-485.com/index.php?title=Logic_level&amp;diff=1206&amp;oldid=prev</id>
		<title>RS-485: Imported from Wikipedia (overwrite)</title>
		<link rel="alternate" type="text/html" href="https://rs-485.com/index.php?title=Logic_level&amp;diff=1206&amp;oldid=prev"/>
		<updated>2026-05-03T12:23:22Z</updated>

		<summary type="html">&lt;p&gt;Imported from Wikipedia (overwrite)&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Short description|Finite states of a digital signal}}&lt;br /&gt;
{{Use American English|date=December 2019}}&lt;br /&gt;
&lt;br /&gt;
In [[digital circuit]]s, a &amp;#039;&amp;#039;&amp;#039;logic level&amp;#039;&amp;#039;&amp;#039; is one of a finite number of [[State (computer science)|states]] that a [[digital signal]] can inhabit. Logic levels are usually represented by the [[voltage]] difference between the signal and [[Ground (electricity)|ground]], although other standards exist. The range of voltage levels that represent each state depends on the [[logic family]] being used.&lt;br /&gt;
A &amp;#039;&amp;#039;[[logic-level shifter]]&amp;#039;&amp;#039; can be used to allow compatibility between different circuits.&lt;br /&gt;
&lt;br /&gt;
==2-level logic==&lt;br /&gt;
In binary logic the two levels are &amp;#039;&amp;#039;&amp;#039;logical high&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;logical low&amp;#039;&amp;#039;&amp;#039;, which generally correspond to [[binary number]]s 1 and 0 respectively or [[truth value]]s &amp;#039;&amp;#039;true&amp;#039;&amp;#039; and &amp;#039;&amp;#039;false&amp;#039;&amp;#039; respectively. Signals with one of these two levels can be used in [[Boolean algebra]] for digital circuit design or analysis.&lt;br /&gt;
&lt;br /&gt;
===Active state===&lt;br /&gt;
[[File:RS232 Oscilloscope Trace K-7E1.svg|thumb|Diagram of [[RS-232]] signaling an uppercase &amp;quot;K&amp;quot; character as seen when probed by an [[oscilloscope]]. The RS-232 electric signaling uses active low (negative logic). The digital data representing &amp;quot;K&amp;quot; (0x4b) as 7-bit [[ASCII]] is framed as &amp;quot;7E1&amp;quot; with 1 start bit, 7 data bits, even parity, 1 stop bit.]]&lt;br /&gt;
&lt;br /&gt;
The use of either the higher or the lower voltage level to represent either logic state is arbitrary. The two options are &amp;#039;&amp;#039;&amp;#039;active high&amp;#039;&amp;#039;&amp;#039; (&amp;#039;&amp;#039;positive logic&amp;#039;&amp;#039;) and &amp;#039;&amp;#039;&amp;#039;active low&amp;#039;&amp;#039;&amp;#039; (&amp;#039;&amp;#039;negative logic&amp;#039;&amp;#039;). Active-high and active-low states can be mixed at will: for example, a [[read only memory]] integrated circuit may have a chip-select signal that is active-low, but the data and address bits are conventionally active-high. Occasionally a logic design is simplified by inverting the choice of active level (see [[De Morgan&amp;#039;s laws]]).&lt;br /&gt;
&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ Binary signal representations&lt;br /&gt;
! Logic level&lt;br /&gt;
! Active-high signal&lt;br /&gt;
! Active-low signal&lt;br /&gt;
|-&lt;br /&gt;
| Logical high&lt;br /&gt;
| 1&lt;br /&gt;
| 0&lt;br /&gt;
|-&lt;br /&gt;
| Logical low&lt;br /&gt;
| 0&lt;br /&gt;
| 1&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The name of an active-low signal is historically written with a bar above it to distinguish it from an active-high signal.  For example, the name &amp;lt;span style=text-decoration:overline&amp;gt;Q&amp;lt;/span&amp;gt;, read &amp;#039;&amp;#039;Q bar&amp;#039;&amp;#039; or &amp;#039;&amp;#039;Q not&amp;#039;&amp;#039;, represents an active-low signal.  The conventions commonly used are:&lt;br /&gt;
* a bar above ({{overline|Q}})&lt;br /&gt;
* a leading slash (/Q)&lt;br /&gt;
* a leading exclamation mark (!Q)&amp;lt;!-- i.e. in EAGLE --&amp;gt;&lt;br /&gt;
* a lower-case &amp;#039;&amp;#039;n&amp;#039;&amp;#039; prefix or suffix (nQ, Qn or Q_n)&lt;br /&gt;
* an upper-case &amp;#039;&amp;#039;N&amp;#039;&amp;#039; suffix (Q_N)&lt;br /&gt;
* a trailing [[Number sign|#]] (Q#), or&lt;br /&gt;
* an _B or _L suffix (Q_B or Q_L).&amp;lt;ref&amp;gt;{{cite web |url=https://wiki.electroniciens.cnrs.fr/images/Xilinx_HDL_Coding_style.pdf |title=Coding Style Guidelines |publisher=[[Xilinx]] |access-date=2017-08-17}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Many control signals in electronics are active-low signals&amp;lt;ref name=&amp;#039;Complete digital design&amp;#039;&amp;gt;{{cite book | last = Balch | first = Mark | title = Complete Digital Design: A Comprehensive Guide To Digital Electronics And Computer System Architecture | publisher = McGraw-Hill Professional | year = 2003 | pages = 430 | url = https://books.google.com/books?id=uFSRT-OIxyoC | isbn = 978-0-07-140927-8 }}&amp;lt;/ref&amp;gt; (usually reset lines, chip-select lines and so on). Logic families such as [[Transistor-transistor logic|TTL]] can sink more current than they can source, so [[fanout]] and [[noise immunity]] increase.  It also allows for [[wired-OR]] logic if the logic gates are [[open-collector]]/[[open-drain]] with a pull-up resistor.  Examples of this are the [[I²C]] bus, [[Controller Area Network|CAN]] bus, and [[Peripheral Component Interconnect|PCI]] bus.&lt;br /&gt;
&lt;br /&gt;
Some signals have a meaning in both states and notation may indicate such.  For example, it is common to have a read/write line designated R/&amp;lt;span style=text-decoration:overline&amp;gt;W&amp;lt;/span&amp;gt;, indicating that the signal is high in case of a read and low in case of a write.&lt;br /&gt;
&lt;br /&gt;
===Logic voltage levels===&lt;br /&gt;
The two logical states are usually represented by two different voltages, but two different [[Electric current|currents]] are used in some logic signaling, like [[digital current loop interface]] and [[current-mode logic]]. High and low thresholds are specified for each logic family. When below the low threshold, the signal is &amp;#039;&amp;#039;low&amp;#039;&amp;#039;. When above the high threshold, the signal is &amp;#039;&amp;#039;high&amp;#039;&amp;#039;. Intermediate levels are undefined, resulting in highly implementation-specific circuit behavior.&lt;br /&gt;
&lt;br /&gt;
It is usual to allow some tolerance in the voltage levels used; for example, 0 to 2 volts might represent logic 0, and 3 to 5 volts logic 1.  A voltage of 2 to 3 volts would be invalid and occur only in a fault condition or during a logic-level transition.  However, few logic circuits can detect such a condition, and most devices will interpret the signal simply as high or low in an undefined or device-specific manner.  Some logic devices incorporate [[Schmitt trigger]] inputs, whose behavior is much better defined in the threshold region and have increased resilience to small variations in the input voltage. The problem of the circuit designer is to avoid circumstances that produce intermediate levels, so that the circuit behaves predictably.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ Examples of binary logic levels&lt;br /&gt;
! Technology !! L voltage !! H voltage !! Notes&lt;br /&gt;
|-&lt;br /&gt;
| [[CMOS]]&amp;lt;ref name=AAC&amp;gt;{{cite web |url=http://www.allaboutcircuits.com/vol_4/chpt_3/10.html |work=All About Circuits |title=Logic signal voltage levels |access-date=2015-03-29}}&amp;lt;/ref&amp;gt;&amp;lt;ref name=&amp;quot;Philips-HEF4000B-Spec&amp;quot;&amp;gt;{{cite web |title=HEF4000B Family Specifications |url=http://www.nxp.com/documents/data_sheet_addendum/familyhef4000specification.pdf |publisher=Philips Semiconductors |archive-url=https://web.archive.org/web/20160304052639/http://www.nxp.com/documents/data_sheet_addendum/familyhef4000specification.pdf |archive-date=March 4, 2016 |date=January 1995 |quote=Parametric limits are guaranteed for VDD of 5V, 10V, and 15V. |url-status=dead}}&amp;lt;/ref&amp;gt; || 0&amp;amp;nbsp;V to 30% V&amp;lt;sub&amp;gt;DD&amp;lt;/sub&amp;gt;|| 70% V&amp;lt;sub&amp;gt;DD&amp;lt;/sub&amp;gt; to V&amp;lt;sub&amp;gt;DD&amp;lt;/sub&amp;gt; || V&amp;lt;sub&amp;gt;DD&amp;lt;/sub&amp;gt; = [[IC power supply pin|supply voltage]]&lt;br /&gt;
|-&lt;br /&gt;
| {{anchor|TTL}}[[Transistor-transistor logic|TTL]]&amp;lt;ref name=AAC/&amp;gt; || 0&amp;amp;nbsp;V to 0.8&amp;amp;nbsp;V || 2&amp;amp;nbsp;V to V&amp;lt;sub&amp;gt;CC&amp;lt;/sub&amp;gt; || V&amp;lt;sub&amp;gt;CC&amp;lt;/sub&amp;gt; = 5&amp;amp;nbsp;V ±5% (7400 commercial family) or ±10% (5400 military family)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Nearly all digital circuits use a consistent logic level for all internal signals. That level, however, varies from one system to another. Interconnecting any two logic families often required special techniques such as additional [[pull-up resistor]]s or purpose-built interface circuits known as level shifters. A [[level shifter]] connects one digital circuit that uses one logic level to another digital circuit that uses another logic level. Often two level shifters are used, one at each system: A [[line driver]] converts from internal logic levels to standard interface line levels; a line receiver converts from interface levels to internal voltage levels.&lt;br /&gt;
&lt;br /&gt;
For example, [[Transistor–transistor logic|TTL]] levels are different from those of [[CMOS]]. Generally, a TTL output does not rise high enough to be reliably recognized as a logic 1 by a CMOS input, especially if it is only connected to a high-input-impedance CMOS input that does not source significant current. This problem was solved by the invention of the 74HCT family of devices that uses CMOS technology but TTL input logic levels. These devices only work with a 5&amp;amp;nbsp;V power supply.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+Logic supply voltages&lt;br /&gt;
! Supply voltage !! Technology !! Logic families (examples) !! Reference&lt;br /&gt;
|-&lt;br /&gt;
| 5V, 10V, 15V || Metal [[CMOS]] || [[4000-series integrated circuits|4000]], [[7400-series integrated circuits#Families|74C]] || &amp;lt;ref name=&amp;quot;Philips-HEF4000B-Spec&amp;quot;&amp;gt;{{cite web |title=HEF4000B Family Specifications |url=http://www.nxp.com/documents/data_sheet_addendum/familyhef4000specification.pdf |publisher=Philips Semiconductors |archive-url=https://web.archive.org/web/20160304052639/http://www.nxp.com/documents/data_sheet_addendum/familyhef4000specification.pdf |archive-date=March 4, 2016 |date=January 1995 |quote=Parametric limits are guaranteed for VDD of 5V, 10V, and 15V. |url-status=dead}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| 5V || [[Transistor–transistor logic|TTL]] || [[7400-series integrated circuits#Families|7400]], 74S, 74LS, 74ALS, 74F, 74H || &amp;lt;ref name=&amp;quot;Fairchild-AN319&amp;quot;&amp;gt;{{cite web |title=AppNote 319 - Comparison of MM74HC to 74LS, 74S and 74ALS Logic |url=https://www.onsemi.com/pub/Collateral/AN-319.pdf |publisher=Fairchild Semiconductor |archive-url=https://web.archive.org/web/20211024074237/https://www.onsemi.com/pub/Collateral/AN-319.pdf |archive-date=October 24, 2021 |date=June 1983 |url-status=live}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| 5V || [[BiCMOS]] || 74ABT, 74BCT || &lt;br /&gt;
|-&lt;br /&gt;
| 5V || [[CMOS]] (TTL I/O)|| [[7400-series integrated circuits#Families|74HCT]], 74AHCT, 74ACT || &amp;lt;ref name=&amp;quot;AHC-DG&amp;quot;&amp;gt;{{cite web |title=AHC/AHCT Designer&amp;#039;s Guide |url=https://www.ti.com/lit/ml/scla013d/scla013d.pdf |publisher=Texas Instruments |archive-url=https://web.archive.org/web/20180413003401/https://www.ti.com/lit/ml/scla013d/scla013d.pdf |archive-date=April 13, 2018 |date=September 1998 |quote=Technical Comparison of AHC / HC / AC (CMOS I/O) and AHCT / HCT / ACT (TTL I/O) Logic Families |url-status=live}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| 3.3V, 5V || [[CMOS]] || [[7400-series integrated circuits#Families|74HC]], 74AHC, 74AC || &amp;lt;ref name=&amp;quot;Fairchild-AN319&amp;quot;/&amp;gt;&amp;lt;ref name=&amp;quot;AHC-DG&amp;quot;/&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| 5V || [[LVCMOS]] || [[7400-series integrated circuits#Families|74LVC]], 74AXP || &amp;lt;ref name=&amp;quot;TI-LLG&amp;quot;&amp;gt;{{cite web |title=Little Logic Guide |url=https://www.ti.com/lit/sg/scyt129g/scyt129g.pdf |publisher=Texas Instruments |archive-url=https://web.archive.org/web/20210403152635/https://www.ti.com/lit/sg/scyt129g/scyt129g.pdf |archive-date=April 3, 2021 |date=2018 |quote=Logic Voltage Graph (page4) |url-status=live}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| 3.3V || LVCMOS || 74LVC, 74AUP, 74AXC, 74AXP || &amp;lt;ref name=&amp;quot;TI-LLG&amp;quot;/&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| 2.5V || LVCMOS || 74LVC, 74AUP, 74AUC, 74AXC, 74AXP || &amp;lt;ref name=&amp;quot;TI-LLG&amp;quot;/&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| 1.8V || LVCMOS || 74LVC, 74AUP, 74AUC, 74AXC, 74AXP || &amp;lt;ref name=&amp;quot;TI-LLG&amp;quot;/&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| 1.5V || LVCMOS || 74AUP, 74AUC, 74AXC, 74AXP || &amp;lt;ref name=&amp;quot;TI-LLG&amp;quot;/&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| 1.2V || LVCMOS || 74AUP, 74AUC, 74AXC, 74AXP || &amp;lt;ref name=&amp;quot;TI-LLG&amp;quot;/&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==More than two levels==&lt;br /&gt;
&lt;br /&gt;
===3-value logic===&lt;br /&gt;
Though rare, [[ternary computer]]s evaluate [[base 3]] [[Three-valued logic|three-valued or ternary logic]] using 3 voltage levels.&lt;br /&gt;
&lt;br /&gt;
===3-state logic===&lt;br /&gt;
In [[three-state logic]], an output device can be in one of three possible states: 0, 1, or Z, with the last meaning [[high impedance]]. This is not a voltage or logic level, but means that the output is not controlling the state of the connected circuit.&lt;br /&gt;
&lt;br /&gt;
===4-value logic===&lt;br /&gt;
[[Four-valued logic]] adds a fourth state, X (&amp;#039;&amp;#039;don&amp;#039;t care&amp;#039;&amp;#039;), meaning the value of the signal is unimportant and undefined.  It means that an input is undefined, or an output signal may be chosen for implementation convenience (see {{slink|Karnaugh map|Don&amp;#039;t cares}}).&lt;br /&gt;
&lt;br /&gt;
===9-level logic===&lt;br /&gt;
[[IEEE 1164]] defines 9 logic states for use in [[electronic design automation]]. The standard includes strong and weakly driven signals, high impedance and unknown and uninitialized states.&lt;br /&gt;
&lt;br /&gt;
===Multi-level cells===&lt;br /&gt;
In solid-state storage devices, a [[multi-level cell]] stores data using multiple voltages. Storing n bits in one cell requires the device to reliably distinguish 2&amp;lt;sup&amp;gt;n&amp;lt;/sup&amp;gt; distinct voltage levels.&lt;br /&gt;
&lt;br /&gt;
===Line coding===&lt;br /&gt;
Digital [[line code]]s may use more than two states to encode and transmit data more efficiently. Examples include [[alternate mark inversion]] and [[4B3T]] from telecommunications, and [[pulse-amplitude modulation]] variants used by [[Ethernet over twisted pair]]. For instance, [[100BASE-TX]] uses [[MLT-3 encoding]] with three [[Differential signalling|differential]] voltage levels (−1V, 0V, +1V) while [[1000BASE-T]] encodes data using five differential voltage levels (−1V, −0.5V, 0V, +0.5V, +1V).&amp;lt;ref&amp;gt;{{cite conference&lt;br /&gt;
 |url=https://grouper.ieee.org/groups/802/3/ab/public/nov97/geoff1.pdf#page=3&lt;br /&gt;
 |title=How 1000BASE-T Works&lt;br /&gt;
 |first=Geoff |last=Thompson&lt;br /&gt;
 |conference=IEEE802.3 Plenary&lt;br /&gt;
 |date=13 November 1997&lt;br /&gt;
 |location=[[Montreal]]&lt;br /&gt;
 |access-date=2023-11-21&lt;br /&gt;
}}&amp;lt;/ref&amp;gt; Once received, the line coding is converted back to binary.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*[[Logic family]]&lt;br /&gt;
*[[Digital current loop interface]]&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
{{Reflist}}&lt;br /&gt;
&lt;br /&gt;
==External links==&lt;br /&gt;
*[http://www.cs.ualberta.ca/~amaral/courses/329/webslides/Topic2-DeMorganLaws/sld017.htm Positive Logic (active-high) and Negative logic (active-low )]&lt;br /&gt;
*[http://delphys.net/d.holmes/hardware/levelshift.html Simple MOSFET-based logic level conversion or level-shift based on work done by Herman Schutte at Philips Semiconductors Systems Laboratory in Eindhoven]&lt;br /&gt;
&lt;br /&gt;
{{DEFAULTSORT:Logic Level}}&lt;br /&gt;
[[Category:Digital electronics]]&lt;/div&gt;</summary>
		<author><name>RS-485</name></author>
	</entry>
</feed>