Tri-state buffer
|
In digital circuits, a tri-state or three state buffer is used to allow multiple logic gates to drive the same output, usually a bus. This circuit is so-called because it has three output states: high (1), low (0), and high impedance (Z).
The high and low states work the same as any other logic gate, by driving the output high or low respectively. The high impedance state, however, ideally does not drive the output at all, allowing another circuit (usually another tri-state buffer) to drive it instead.
Below is an example truth table for a tri-state buffer.
In | En | Out |
---|---|---|
0 | 0 | Z |
1 | 0 | Z |
0 | 1 | 0 |
1 | 1 | 1 |
Other implementations are possible, for example, the output may instead be enabled by a low value of En. Which is used often depends on the underlying technology.
Tri-state buffers can be used to implement efficient multiplexers, especially those with large numbers of inputs.