Tri-state Driver
   HOME

TheInfoList



OR:

In
digital electronics Digital electronics is a field of electronics involving the study of digital signals and the engineering of devices that use or produce them. It deals with the relationship between Binary number, binary inputs and outputs by passing electrical s ...
, a tri-state or three-state buffer is a type of
digital buffer A digital buffer (or a logic buffer) is an electronic circuit element used to copy a Digital signal, digital input signal and isolate it from any output Electrical load, load. For the typical case of using voltages as logic signals, a logic buffer' ...
that has three stable states: a high
voltage Voltage, also known as (electrical) potential difference, electric pressure, or electric tension, is the difference in electric potential between two points. In a Electrostatics, static electric field, it corresponds to the Work (electrical), ...
output state (logical 1), a low output state (logical 0), and a high-impedance (Hi-Z) state. In the Hi-Z state, the output of the buffer is effectively disconnected from the subsequent circuit. Tri-state buffers are commonly used in bus-based systems where multiple devices are connected to the same shared bus, because the Hi-Z state allows other devices to drive the bus without interference from the tri-state buffer. For example, in a computer system, multiple devices such as the CPU,
memory Memory is the faculty of the mind by which data or information is encoded, stored, and retrieved when needed. It is the retention of information over time for the purpose of influencing future action. If past events could not be remembe ...
, and peripherals may be connected to the same data bus. To ensure that only one device can transmit data on the bus at a time, each device is equipped with a tri-state buffer. When a device wants to transmit data, it activates its tri-state buffer, which connects its output to the bus and allows it to transmit data. When the transmission is complete, the device deactivates its tri-state buffer, which disconnects its output from the bus and allows another device to access the bus. Tri-state buffers are also useful for reducing
crosstalk In electronics, crosstalk (XT) is a phenomenon by which a signal transmitted on one circuit or channel of a transmission system creates an undesired effect in another circuit or channel. Crosstalk is usually caused by undesired capacitive, ...
and
noise Noise is sound, chiefly unwanted, unintentional, or harmful sound considered unpleasant, loud, or disruptive to mental or hearing faculties. From a physics standpoint, there is no distinction between noise and desired sound, as both are vibrat ...
on a bus. Tri-state output can be incorporated into various
logic gates A logic gate is a device that performs a Boolean function, a logical operation performed on one or more Binary number, binary inputs that produces a single binary output. Depending on the context, the term may refer to an ideal logic gate, one ...
,
flip-flops Flip-flops are a type of light sandal-like shoe, typically worn as a form of casual footwear. They consist of a flat sole held loosely on the foot by a Y-shaped strap known as a toe thong that passes between the first and second toes and around ...
,
microcontrollers A microcontroller (MC, uC, or μC) or microcontroller unit (MCU) is a small computer on a single integrated circuit. A microcontroller contains one or more CPUs (processor cores) along with memory and programmable input/output peripherals. Pro ...
, or other digital logic circuits.


Operation

A tri-state buffer behaves either like an open switch (i.e. presenting a Hi-Z output) when the enable signal B is off or as a regular non-inverting buffer (which duplicates and boosts the input onto the output) when the enable signal is on: : Unlike a simple transmission gate, a tri-state buffer when enabled additionally provides voltage level restoration to boost the input to be well within its valid logic voltage range. A tri-state buffer's behavior is given by the following
truth table A truth table is a mathematical table used in logic—specifically in connection with Boolean algebra, Boolean functions, and propositional calculus—which sets out the functional values of logical expressions on each of their functional arg ...
: : Alternatively, inverting tri-state buffers when enabled will invert the input A.


Uses

The Hi-Z state's purpose is to effectively remove a device's influence from the rest of the circuit. If multiple devices output to a shared wire, no device should drive the shared wire to one logical voltage level when another device drives the shared wire to another logical voltage level, since that competition would result in excessive current draw through the
short circuit A short circuit (sometimes abbreviated to short or s/c) is an electrical circuit that allows a current to travel along an unintended path with no or very low electrical impedance. This results in an excessive current flowing through the circuit ...
and an uncertain voltage level. Three-state devices on many shared electronic buses present a Hi-Z output when not actively communicating, so that shared wires are available to be driven. For example, in a Serial Peripheral Interface bus in multidrop configuration, only a single peripheral chip at a time may be selected using its (
chip select Chip select (CS) or slave select (SS) is the name of a control line in digital electronics used to select one (or a set) of integrated circuit An integrated circuit (IC), also known as a microchip or simply chip, is a set of electronic cir ...
), while all other peripheral chips present a Hi-Z output to avoid corrupting the data sent by the one selected chip. Three-state buses are typically used between chips on a single
printed circuit board A printed circuit board (PCB), also called printed wiring board (PWB), is a Lamination, laminated sandwich structure of electrical conduction, conductive and Insulator (electricity), insulating layers, each with a pattern of traces, planes ...
(PCB), or sometimes between PCBs plugged into a common
backplane A backplane or backplane system is a group of electrical connectors in parallel with each other, so that each pin of each connector is linked to the same relative pin of all the other connectors, forming a computer bus. It is used to connect s ...
. Three-state buffers can also be used to implement efficient
multiplexer In electronics, a multiplexer (or mux; spelled sometimes as multiplexor), also known as a data selector, is a device that selects between several Analog signal, analog or Digital signal (electronics), digital input signals and forwards the sel ...
s, especially those with large numbers of inputs. Tri-state multiplexing, also known as Charlieplexing, is used to reduce the number of wires needed to drive a set of light-emitting diodes.


Output enable vs. chip select

Many memory devices designed to connect to a bus (such as RAM and ROM chips) have both and (output enable) pins, which superficially appear to do the same thing. If is not asserted, the outputs are Hi-Z. The difference lies in the time needed to output the signal. When chip select is deasserted, the chip does not operate internally, and there will be a significant delay between providing an address and receiving the data. (An advantage of course, is that the chip consumes minimal power in this case.) When chip select is asserted, the chip internally performs the access, and only the final output drivers are disabled by deasserting output enable. This can be done while the bus is in use for other purposes, and when output enable is finally asserted, the data will appear with minimal delay. A ROM or static RAM chip with an output enable line will typically list two access times: one from chip select asserted and address valid, and a second, shorter time beginning when output enable is asserted.


Use of pull-ups and pull-downs

When outputs are tri-stated (in the Hi-Z state) their influence on the rest of the circuit is removed, and the circuit node will be "floating" if no other circuit element determines its state. Circuit designers will often use pull-up or pull-down resistors (usually within the range of 1–100 kΩ) to influence the circuit when the output is tri-stated. The PCI local bus provides pull-up resistors, but they would require several clock cycles to pull a signal high given the bus's large distributed
capacitance Capacitance is the ability of an object to store electric charge. It is measured by the change in charge in response to a difference in electric potential, expressed as the ratio of those quantities. Commonly recognized are two closely related ...
. To enable high-speed operation, the protocol requires that every device connecting to the bus drive the important control signals high for at least one clock cycle before going to the Hi-Z state. This way, the pull-up resistors are only responsible for maintaining the bus signals in the face of leakage current.
Intel Intel Corporation is an American multinational corporation and technology company headquartered in Santa Clara, California, and Delaware General Corporation Law, incorporated in Delaware. Intel designs, manufactures, and sells computer compo ...
refers to this convention as "sustained tri-state", and also uses it in the Low Pin Count bus.


Alternatives

Open collector output is an alternative to three-state logic. For example, the bidirectional
I²C I2C (Inter-Integrated Circuit; pronounced as "" or ""), alternatively known as I2C and IIC, is a synchronous, multi-master/multi-slave, single-ended, serial communication bus invented in 1980 by Philips Semiconductors (now NXP Semiconduct ...
bus uses
pull-up resistors In electronic logic circuits, a pull-up resistor (PU) or pull-down resistor (PD) is a resistor used to ensure a known state for a signal. More specifically, a pull-up resistor or pull-down resistor ensures that a wire will have a high logic lev ...
on its two shared communication lines. When not transmitting, devices present a Hi-Z output to effectively "release" control over the communication lines. When all devices on the bus are Hi-Z, the only influence on the circuit is the pull-up resistors, which pull the lines high. When a device wants to transmit, it comes out of the Hi-Z state and drives the line low. Devices communicating over I²C either let the line float high, or drive it low – thus preventing any bus contention situation where one device drives a line high and another low. Early
microcontroller A microcontroller (MC, uC, or μC) or microcontroller unit (MCU) is a small computer on a single integrated circuit. A microcontroller contains one or more CPUs (processor cores) along with memory and programmable input/output peripherals. Pro ...
s often have some pins that can only act as an input, other pins that can only act as a
push–pull output A push–pull amplifier is a type of electronic circuit that uses a pair of active devices that alternately supply current to, or absorb current from, a connected load. This kind of amplifier can enhance both the load capacity and switching s ...
, and a few pins that can only act as an open collector input/output. A typical modern
microcontroller A microcontroller (MC, uC, or μC) or microcontroller unit (MCU) is a small computer on a single integrated circuit. A microcontroller contains one or more CPUs (processor cores) along with memory and programmable input/output peripherals. Pro ...
has many three-state general-purpose input/output pins that can be programmed to act as any of those kinds of pins. Usage of three-state logic is not recommended for on-chip connections but rather for inter-chip connections. 경종민
''On-Chip Buses/Networks for SoC''
"On-Chip Buses
ave is a Latin word, used by the Roman Empire, Romans as a salutation (greeting), salutation and greeting, meaning 'wikt:hail, hail'. It is the singular imperative mood, imperative form of the verb , which meant 'Well-being, to be well'; thus on ...
No use of tri-state signals ecauseTri-state bus is difficult for static timing analysis"
Three-state buffers, when used to enable multi-device communication on a data bus, can be functionally replaced by a
multiplexer In electronics, a multiplexer (or mux; spelled sometimes as multiplexor), also known as a data selector, is a device that selects between several Analog signal, analog or Digital signal (electronics), digital input signals and forwards the sel ...
.{{cite web, title=Tri State Buffer, url=http://www.cs.umd.edu/class/sum2003/cmsc311/Notes/CompOrg/tristate.html That will help select output from a range of devices and write one to the bus.


See also

*
Buffer amplifier In electronics, a buffer amplifier is a unity gain amplifier that copies a signal from one circuit to another while transforming its electrical impedance to provide a more ideal source (with a ''lower'' output impedance for a voltage buffer or ...
*
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 ...
*
Metastability In chemistry and physics, metastability is an intermediate energetic state within a dynamical system other than the system's state of least energy. A ball resting in a hollow on a slope is a simple example of metastability. If the ball is onl ...
*
Three-valued logic In logic, a three-valued logic (also trinary logic, trivalent, ternary, or trilean, sometimes abbreviated 3VL) is any of several many-valued logic systems in which there are three truth values indicating ''true'', ''false'', and some third value ...
* Four-valued logic *
Nine-valued logic The IEEE 1164 standard (''Multivalue Logic System for VHDL Model Interoperability'') is a technical standard published by the IEEE in 1993. It describes the definitions of logic values to be used in electronic design automation, for the VHDL har ...
*
Don't care In digital logic, a don't-care term (abbreviated DC, historically also known as ''redundancies'', ''irrelevancies'', ''optional entries'', ''invalid combinations'', ''vacuous combinations'', ''forbidden combinations'', ''unused states'' or ''l ...
* Single pole, centre off (SPCO)


Notes and references


External links


Special-output Gates
on All About Circuits
Principle of Tristate Multiplexing
Digital electronics Ternary computers