Buffer-and-Tri-State-Buffer
Buffer-and-Tri-State-Buffer
Let’s say, the output of the circuit A is connected to the input of the Circuit B. The input
impedance of the circuit B is 250 ohm (low impedance load). And let’s say, the maximum current
which can be supplied by the circuit A is 10mA.
So, when the output of the circuit A is 5V or logic ‘1’, then the current drawn by the circuit B
from the circuit A is 5V/ 250 Ω = 20mA. But the maximum supplied current by circuit A is only
10mA. That means circuit A will not be able to supply the enough current. And because of that,
the loading will occur. And the voltage at the input of the circuit B will be less than 5V. (It may
not be logic ‘1’)
This issue can be avoided if the buffer is used between the two circuits.
The buffer has high input impedance. So, it draws a very little current from the circuit A. And it
passes the same signal towards circuit B. Also, the buffer has high current driving capability. Let’s
say, the current driving capability of the buffer is 50 mA. So, in this given case, it can easily drive
250 ohm load.
Apart from that, buffers are also used when we want to increase the fanout of the circuit.
For example, the same circuit A, will not be able to drive 3 AND gates, where each AND gate is
drawing 10 mA current.
But if we introduce a buffer in between, then buffer can easily drive 3 AND gates.
The buffer which we have discussed so far is the single input buffer. Because it has only one
input. But the Tri-State buffer has two inputs.
1) Data Input
2) Control Input
The control input acts as a valve and it decides when the input will reach the output side.
When the control input is 1 then Tri-State buffer will act as a normal buffer and the output is
same as the input.
When control input is 0 then it operates in Hi-Z (High Impedance) mode. In this mode, there is a
high impedance between input and output side. And effectively, input and output side are
isolated from each other. In this mode, the circuit on the output side is not drawing any current
from the input side.
The truth table of the active High Tri-State Buffer is shown below:
As seen from the truth table, the output of the Tri-State Buffer has three output states. The logic
‘0’, logic ‘1’ and Hi-Z mode. And since it has three output states, it is known as Tri-State or Three-
State Buffer.
Similarly, the symbol and truth table of active low Tri-State Buffer is shown below. In this buffer,
when control input (enable input) is low then it will act as a normal buffer and when control input
is 1 then it will operate in Hi-Z mode.
Applications of Tri-State Buffer
Without Tri-State buffer, when multiple devices are connected together to a single pin, then short
circuit may happen. Because if one device puts logic ‘1’ on the pin and another device puts logic
‘0’ on the same pin, then data will get corrupted and it may a cause a short circuit and can damage
the devices.
Using the Tri-State buffer, it can be avoided.
Using a Tri-State buffer, only specific device can be enabled. For example, if the control input of
only device A is made logic ‘1’ and remaining control inputs are kept logic ‘0’ then only device A
can send the data to controller. And remaining devices will remain isolated from the controller
pin. So, in this way, using Tri-State buffer, multiple devices can be multiplexed to a single pin or
wire.
To connect the multiple memories or multiple devices to a data bus, Tri-State Buffers are used.
Without Tri-State buffers, when multiple devices are connected to the data bus, then bus
contention may occur. It can be avoided using the Tri-State buffer.
Typically, the commercially available devices or memories (which needs to be connected with
data bus) have built-in Tri-state buffers.
Bi-Directional Buffer:
The buffer which have discussed so far is the single directional buffer. Meaning that, in this buffer,
data movement will happen only in one direction. But using two Tri-State buffers, it is possible
to make bi-directional buffer.
Here, the control / Enable input decides the direction of the data movement. When the E =1,
then the output of the NOT gate is 0. So, lower Tri-State buffer will operate in Hi-Z mode, while
the upper Tri-State buffer will operate like a normal buffer. So, in this case, the left side will act
as input and right side will act as an output.
Similarly, when E = 0, then output of the NOT gate will be 1. So, lower Tri-State Buffer will get
enabled while the upper Tri-State buffer will operate in Hi-Z mode. And in this case, the right side
will act as an input and right side will act as an output.
Using one Active High Tri-State Buffer and one Active Low Tri-State buffer also we can design
the Bi-directional Buffer.
This bi-directional buffer is used in Bus Transceivers.