Logic level

In digital circuits, a logic level is one of a finite number of states that a digital signal can inhabit. Logic levels are usually represented by the voltage difference between the signal and ground, although other standards exist. The range of voltage levels that represent each state depends on the logic family being used. A logic-level shifter can be used to allow compatibility between different circuits.

2-level logic

In binary logic the two levels are logical high and logical low, which generally correspond to binary numbers 1 and 0 respectively or truth values true and false respectively. Signals with one of these two levels can be used in Boolean algebra for digital circuit design or analysis.

Active state

Diagram of RS-232 signaling an uppercase "K" character as seen when probed by an oscilloscope. The RS-232 electric signaling uses active low (negative logic). The digital data representing "K" (0x4b) as 7-bit ASCII is framed as "7E1" with 1 start bit, 7 data bits, even parity, 1 stop bit.

The use of either the higher or the lower voltage level to represent either logic state is arbitrary. The two options are active high (positive logic) and active low (negative logic). 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's laws).

Binary signal representations
Logic level Active-high signal Active-low signal
Logical high 1 0
Logical low 0 1

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 Q, read Q bar or Q not, represents an active-low signal. The conventions commonly used are:

  • a bar above (Q)
  • a leading slash (/Q)
  • a leading exclamation mark (!Q)
  • a lower-case n prefix or suffix (nQ, Qn or Q_n)
  • an upper-case N suffix (Q_N)
  • a trailing # (Q#), or
  • an _B or _L suffix (Q_B or Q_L).[1]

Many control signals in electronics are active-low signals[2] (usually reset lines, chip-select lines and so on). Logic families such as 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, CAN bus, and PCI bus.

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/W, indicating that the signal is high in case of a read and low in case of a write.

Logic voltage levels

The two logical states are usually represented by two different voltages, but two different 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 low. When above the high threshold, the signal is high. Intermediate levels are undefined, resulting in highly implementation-specific circuit behavior.

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.

Examples of binary logic levels
Technology L voltage H voltage Notes
CMOS[3] [4] 0 V to 30% VDD 70% VDD to VDD VDD = supply voltage
TTL[3] 0 V to 0.8 V 2 V to VCC VCC = 5 V ±5% (7400 commercial family) or ±10% (5400 military family)

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 resistors 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.

For example, 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 V power supply.

Logic supply voltages
Supply voltage Technology Logic families (examples) Reference
5V, 10V, 15V Metal CMOS 4000, 74C [4]
5V TTL 7400, 74S, 74LS, 74ALS, 74F, 74H [5]
5V BiCMOS 74ABT, 74BCT
5V CMOS (TTL I/O) 74HCT, 74AHCT, 74ACT [6]
3.3V, 5V CMOS 74HC, 74AHC, 74AC [5][6]
5V LVCMOS 74LVC, 74AXP [7]
3.3V LVCMOS 74LVC, 74AUP, 74AXC, 74AXP [7]
2.5V LVCMOS 74LVC, 74AUP, 74AUC, 74AXC, 74AXP [7]
1.8V LVCMOS 74LVC, 74AUP, 74AUC, 74AXC, 74AXP [7]
1.5V LVCMOS 74AUP, 74AUC, 74AXC, 74AXP [7]
1.2V LVCMOS 74AUP, 74AUC, 74AXC, 74AXP [7]

More than two levels

3-value logic

Though rare, ternary computers evaluate base 3 three-valued or ternary logic using 3 voltage levels.

3-state logic

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.

4-value logic

Four valued logic adds a fourth state, X (don't care), 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 Karnaugh map § Don't cares).

9-level logic

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.

Multi-level cells

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 2n distinct voltage levels.

Line coding

Digital line codes 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 voltage levels (−1V, 0V, +1V) while 1000BASE-T encodes data using five differential voltage levels (−1V, −0.5V, 0V, +0.5V, +1V).[8] Once received, the line coding is converted back to binary.

See also

References

  1. ^ "Coding Style Guidelines" (PDF). Xilinx. Retrieved 2017-08-17.
  2. ^ Balch, Mark (2003). Complete Digital Design: A Comprehensive Guide To Digital Electronics And Computer System Architecture. McGraw-Hill Professional. p. 430. ISBN 978-0-07-140927-8.
  3. ^ a b "Logic signal voltage levels". All About Circuits. Retrieved 2015-03-29.
  4. ^ a b "HEF4000B Family Specifications" (PDF). Philips Semiconductors. January 1995. Archived from the original (PDF) on March 4, 2016. Parametric limits are guaranteed for VDD of 5V, 10V, and 15V.
  5. ^ a b "AppNote 319 - Comparison of MM74HC to 74LS, 74S and 74ALS Logic" (PDF). Fairchild Semiconductor. June 1983. Archived (PDF) from the original on October 24, 2021.
  6. ^ a b "AHC/AHCT Designer's Guide" (PDF). Texas Instruments. September 1998. Archived (PDF) from the original on April 13, 2018. Technical Comparison of AHC / HC / AC (CMOS I/O) and AHCT / HCT / ACT (TTL I/O) Logic Families
  7. ^ a b c d e f "Little Logic Guide" (PDF). Texas Instruments. 2018. Archived (PDF) from the original on April 3, 2021. Logic Voltage Graph (page4)
  8. ^ Thompson, Geoff (13 November 1997). How 1000BASE-T Works (PDF). IEEE802.3 Plenary. Montreal. Retrieved 2023-11-21.

Read other articles:

Coordinate: 43°30′S 170°30′E / 43.5°S 170.5°E-43.5; 170.5 Alpi meridionaliLa catena montuosa delle Alpi meridionali vista dal satellite in quest'immagine dell'Isola del SudContinenteOceania Stati Nuova Zelanda Cima più elevataMonte Cook (3.754 m s.l.m.) Le Alpi meridionali sono una catena montuosa che si sviluppa lungo la costa occidentale dell'Isola del Sud, in Nuova Zelanda. Il nome si applica generalmente all'intero sistema montuoso, benché sia a su...

 

Potret Jules Vallès (1832-1885) Jules Vallès (nama samaran Jules Vallez), lahir di Puy-en-Velay, Haute-Loire, pada 11 Juni 1832 dan meninggal di arondisemen ke-V Paris pada 14 Februari 1885, merupakan seorang wartawan, penulis, dan politikus sayap kiri Prancis. Pendiri surat kabar Le Cri du peuple, dia adalah salah satu pejabat terpilih selama Komune Paris pada 1871. Dihukum mati, dia harus diasingkan di London dari 1871 hingga 1880. Lahir pada 11 Juni 1832,[1][2][3]...

 

Cattedrale di Santo StefanoCathédrale Saint-ÉtienneEsternoStato Francia RegioneCentro-Valle della Loira LocalitàBourges Indirizzoplace Étienne-Dolet Coordinate47°04′55.99″N 2°23′57.01″E / 47.08222°N 2.39917°E47.08222; 2.39917Coordinate: 47°04′55.99″N 2°23′57.01″E / 47.08222°N 2.39917°E47.08222; 2.39917 Religionecattolica di rito romano TitolareStefano Consacrazione1324 Stile architettonicoclassic gothic Inizio costruzione1195 Co...

TishmaBackground informationGenresRock music, hip-hop, R&B, classical, pop, experimentalOccupation(s)Singer, songwriter, rapper, pianist, guitarist, musician, music composer, music producerInstrument(s)Vocals, piano, guitar, drumsYears active2003 – present (started career in 2003 as child artist)Websitetishmaonline.comMusical artist Tishma is a pop rock singer, songwriter, rapper, pianist, guitarist, musician, music composer and music producer in the U.S.A Bangladesh. She's the first B...

 

American prelate His Excellency, The Most ReverendJohn Raymond GaydosBishop Emeritus of Jefferson CityArchdioceseSt. LouisDioceseJefferson CityAppointedJune 25, 1997InstalledAugust 27, 1997RetiredNovember 21, 2017PredecessorMichael Francis McAuliffeSuccessorShawn McKnightOrdersOrdinationDecember 20, 1968by Francis Frederick RehConsecrationAugust 27, 1997by Justin Francis Rigali, Michael Francis McAuliffe, and Oscar Hugh LipscombPersonal detailsBorn (1943-08-14) August 14, 1943 (age&...

 

James Abram Garfield Presiden Amerika Serikat ke-20Masa jabatan4 Maret 1881 – 19 September 1881Wakil PresidenChester A. Arthur PendahuluRutherford B. HayesPenggantiChester A. ArthurAnggota Dewan Perwakilan Rakyat A.S.dari dapil ke-19 OhioMasa jabatan4 Maret 1863 – 3 Maret 1881 PendahuluAlbert RiddlePenggantiEzra Taylor Informasi pribadiLahir19 November 1831Moreland Hills, OhioMeninggal19 September 1881(1881-09-19) (umur 49)Elberon (Long Branch), New Jers...

Image du satellite météorologique montrant le contenu en vapeur d'eau(jaune = sec, blanc-bleu = humide) L'eau précipitable est la quantité d'eau qui pourrait être obtenue si toute la vapeur d'eau contenue dans une colonne d'air était condensée et précipitée[1]. Elle est donnée sous la forme d’une épaisseur ou masse surfacique d’eau liquide (1 mm d'eau précipitable = 1 kg d’eau/m2). Équation L'eau précipitable est l'intégration dans la colonne de l'humidité spécifiq...

 

Об экономическом термине см. Первородный грех (экономика). ХристианствоБиблия Ветхий Завет Новый Завет Евангелие Десять заповедей Нагорная проповедь Апокрифы Бог, Троица Бог Отец Иисус Христос Святой Дух История христианства Апостолы Хронология христианства Ран�...

 

District in Republic of MoldovaCriuleniDistrict (Raion) FlagCoat of armsCountry Republic of MoldovaAdministrative center (oraș-reședință)CriuleniGovernment • Raion PresidentVitalie Rotaru (PLDM), since 2011Area • Total688 km2 (266 sq mi) • Water12.8 km2 (4.9 sq mi)  1.86%Elevation265 m (869 ft)Population (2014)[1] • Total70,648 • Density100/km2 (270/sq mi)Time zo...

Ini adalah nama Papua (Tehit), marganya adalah Anggiluli Samsudin AnggiluliS.E. Bupati Sorong Selatan ke-2PetahanaMulai menjabat 24 Maret 2016PresidenJoko WidodoGubernurAbraham Octavianus Atururi(Gubernur Papua Barat) Nathaniel Mandacan(Plh. Gubernur Papua Barat) Eko Subowo(Pj. Gubernur Papua Barat)Dominggus Mandacan(Gubernur Papua Barat)Paulus Waterpauw(Pj. Gubernur Papua Barat)Muhammad Musa'ad(Pj. Gubernur Papua Barat Daya)WakilMartinus SalamukPendahuluOtto IhalauwPenggantiPetahanaW...

 

Ini adalah nama Korea; marganya adalah Ahn. An Yu-jinAn pada 2023Nama asal안유진LahirAn Yu-jin01 September 2003 (umur 20)[1]Korea SelatanPekerjaanPenyanyiKarier musikGenreK-popJ-popInstrumenVokalTahun aktif2018–sekarangLabelStarshipOff the Record[a]EMI[a]Artis terkaitIz*One, IVENama KoreaHangul안유진 Hanja安兪真 Alih AksaraAn Yu-jinMcCune–ReischauerAn Yu-chin Tanda tangan An Yu-jin (Hangul: 안유진; lahir 1 September 2003) adalah seorang penya...

 

Strada statale 491di Isola del Gran SassoLocalizzazioneStato Italia Regioni Abruzzo Province Teramo DatiClassificazioneStrada statale InizioMontorio al Vomano FineSS 150 presso Villa Maggiore Lunghezza31,200[1] km Data apertura1965 Provvedimento di istituzioneD.M. 21/10/1965 - G.U. 311 del 14/12/1965[2] GestoreTratte ANAS: nessuna (dal 2001 la gestione è passata alla Provincia di Teramo) Percorso Manuale La ex strada statale 491 di Isola del Gran Sasso (SS 491)...

American baseball player Baseball player Ron OesterSecond basemanBorn: (1956-05-05) May 5, 1956 (age 67)Cincinnati, Ohio, U.S.Batted: SwitchThrew: RightMLB debutSeptember 10, 1978, for the Cincinnati RedsLast MLB appearanceOctober 3, 1990, for the Cincinnati RedsMLB statisticsBatting average.265Home runs42Runs batted in344 Teams Cincinnati Reds (1978–1990) Career highlights and awards World Series champion (1990) Cincinnati Reds Hall of Fame Ronald John Oe...

 

Pour les articles homonymes, voir École de Genève (homonymie). Université de GenèveUniversité de GenèveHistoireFondation 1559StatutType Université publiqueNom officiel Schola Genevensis(lit. « École de Genève » en latin)Régime linguistique FrançaisFondateur Jean CalvinRecteur Prof. Audrey LeubaMembre de Triangle azurCoïmbreAUELERUAUFG3Site web www.unige.chChiffres-clésÉtudiants 17 744[3]Budget 760 millions CHF (2016)[1]LocalisationPays SuisseLocalisation G...

 

此条目序言章节没有充分总结全文内容要点。 (2019年3月21日)请考虑扩充序言,清晰概述条目所有重點。请在条目的讨论页讨论此问题。 哈萨克斯坦總統哈薩克總統旗現任Қасым-Жомарт Кемелұлы Тоқаев卡瑟姆若马尔特·托卡耶夫自2019年3月20日在任任期7年首任努尔苏丹·纳扎尔巴耶夫设立1990年4月24日(哈薩克蘇維埃社會主義共和國總統) 哈萨克斯坦 哈萨克斯坦政府...

هذه مقالة غير مراجعة. ينبغي أن يزال هذا القالب بعد أن يراجعها محرر؛ إذا لزم الأمر فيجب أن توسم المقالة بقوالب الصيانة المناسبة. يمكن أيضاً تقديم طلب لمراجعة المقالة في الصفحة المخصصة لذلك. (مارس 2021)Learn how and when to remove this message كيزواتنا (أو كيزوادنا، وفي المصرية القديمة كودي)، هو ا...

 

Национальное аэрокосмическое агентство Азербайджана Штаб-квартира Баку, ул. С. Ахундова, AZ 1115 Локация  Азербайджан Тип организации Космическое агентство Руководители Директор: Натиг Джавадов Первый заместитель генерального директора Тофик Сулейманов Основание Осн�...

 

British racing car Racing car model Lotus 12CategoryFormula One, Formula TwoConstructorTeam LotusDesigner(s)Colin ChapmanSuccessorLotus 16Technical specifications[1]ChassisAluminium body on multi-tubular space frameSuspension (front)Double wishbone, coils springs, dampers, anti-roll barSuspension (rear)Chapman strut, trailing arms, fixed length drive shaftLength130.9 in (332.5 cm)Width60 in (152.4 cm)Height35 in (88.9 cm)Axle track48 in (121.9 c...

Architectural firm Belfast Castle, designed by Lanyon, Lynn & Lanyon Lanyon, Lynn & Lanyon, Civil Engineers and Architects was a 19th-century firm working mainly in Dublin and Belfast, and the leading architectural firm in Belfast during the 1860s. Its partners were Charles Lanyon, William Henry Lynn, and Charles' son John Lanyon. Charles Lanyon was the head of the firm and its most famous architect. In 1854, he took Lynn, his former apprentice, into partnership. Their projects includ...

 

Current United States federal appellate court United States Court of Appeals for the Eleventh Circuit(11th Cir.)LocationElbert P. Tuttle U.S. Court of Appeals Building(Atlanta, Georgia)Appeals fromMiddle District of AlabamaNorthern District of AlabamaSouthern District of AlabamaMiddle District of FloridaNorthern District of FloridaSouthern District of FloridaMiddle District of GeorgiaNorthern District of GeorgiaSouthern District of GeorgiaEstablishedOctober 1, 1981Judges12Circuit Ju...