Question:
What is Tri-state logic?
Answer:
Three Logic Levels are used and they are High, Low, High impedance state. The high and low are normal logic levels & high impedance state is electrical open circuit conditions. Tri-state logic has a third line called enable line. Source: CoolInterview.com
Understanding Tri-State bus is very important for all Electronics students. So let us start from simple electrical concepts.
In the below diagram a switch is connected between the Input (A) and Output (Y)
Now let us make the switch ON and apply 5V in the Input.
Since the Switch is ON, Input goes to Output. Since Input is 5V, the output is also 5V
Now let us apply 0V in the Input.
Since the Switch is ON and the Input is 0V, the output is also 0V
Now let us OFF the switch and give Input as 0V or 5V and see what is the output.
What is the output in both the cases when switch is OFF? In both the cases the general answer from people is "0". But that is not true. There is big difference between "No Voltage" and "Zero Voltage".
If the Potential difference between any point and the Common Point (Ground) is Zero then that point is having "Zero Voltage". If that point is not connected to the Common point directly or through any components the that point is having "No Voltage".
If you connect a 5V supply to 0V point then there will be a Short circuit. But the 5V supply can be connected to "No Voltage" point. Then the "No Voltage point becomes 5V.
It is like our Railway Network. Train can run on a track, Train may stop on a track or No train on a track. When a Train is stopped on a Track that track can not be used by any other train. But when no train is on a track, that track can be used by other trains.
In the above diagram based on which switch is ON the output Y gets A1 or A2 or A3. The only condition is at any given time more than one switch should never be ON.
No let us replace the Manual switch with Electronic Switch ( Transistor)
In the above diagram A is a Signal Input, Y is a Signal output and En is Control Input.
Now Let us create a table to show various possibilities of A, Y and En signals.
In the above table "En" Input is having two states 0 & 1. The "A" input is having 2 states 0 and 1. But the Y output is having 3 states 0, 1 and Open. This switch is called "Tri-state" switch and the output is called Tri-state output.
Since we use transistor a switch, due to drifting electrons, a very small current will flow through the Tri-state switch. Also the transistors are modeled as Resistor/Capacitor circuit, the Open state is called as High Impedance State.
Source: CoolInterview.com
Answered by: Om Gupta | Date: 7/12/2016
| Contact Om Gupta
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
- There should not be any Spelling Mistakes.
- There should not be any Gramatical Errors.
- Answers must not contain any bad words.
- Answers should not be the repeat of same answer, already approved.
- Answer should be complete in itself.
|