Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Forums > General Electronics Chat


General Electronics Chat This forum is for general chat about electronics, eg: Dont know what a part does? Dont know how to read a circuit? Want to get an opinion?

Reply
 
LinkBack Thread Tools Display Modes
Old 30th July 2006, 12:27 AM   (permalink)
Default 3 state output?

What does "3 state output mean"? I know there is HIGH and there is LOW, what is #3?
Marks256 is offline  
Old 30th July 2006, 12:34 AM   (permalink)
Default

#3 is open circuit so you can have a bunch of outputs on a single wire and activate only one while the rest are disconnected by their 3-state.
__________________
Uncle $crooge
audioguru is offline  
Old 30th July 2006, 12:52 AM   (permalink)
Default

So it is serial? I am confused. What does "Open circuit mean"? Sorry if these questions are dumb, but you must give me credit, i am trying to learn.
Marks256 is offline  
Old 30th July 2006, 12:57 AM   (permalink)
Default

Open circuit means it is completely disconnected. You cannot connect two ordinary outputs together because they fight about whether their output is high or is low. But if you open circuit one of the outputs then there isn't the problem.
__________________
Uncle $crooge
audioguru is offline  
Old 30th July 2006, 02:10 AM   (permalink)
Default

so it is muliplexing?
Marks256 is offline  
Old 30th July 2006, 02:14 AM   (permalink)
Default

not to quibble but the third state of a tri-state pin is usually described as high impedence (often called high-Z). On microcontrollers, it is done by changing the pin to an input. many logic chips have a high z contol pin. It doesn't truely disconnect the pin, though it draws an insignificant amount of current so for design purposes, you can ignore it. On a pic, you set the coresponding bit in the TRIS registor - TRIS is short for tri-state.
philba is offline  
Old 30th July 2006, 02:41 AM   (permalink)
Default

Ok, i have heard of high impendence. What does that mean though? I looked up the definetion, but led me to more questions? Can you explain the tri-state pins to me please? Also, could you give examples? Thanks for all of your help so far!
Marks256 is offline  
Old 30th July 2006, 02:47 AM   (permalink)
Default

HIgh impedence means high resistance- disconnected. Impedence is "complex resistance". It's resistance with a real and imaginary number parts. Resistance usually means impedence with 0 for the imaginary part.

So you the states you have are a 1, 0, and disconnected (or floating).

Pins sometimes have a high impedence state so you can use pull-resistors on the line. You output a 0 when you want a 0, and you output high impedence when you want a one, rather than outputting 1. THis allows a 5V device to have output a 1 that is higher than 5V (more than the device can supply), all that is needed is for one end of the pull-up resistor to be connected to the line (obviously) and the other end is connected a voltage supply however high you need the 1 to be.

Last edited by dknguyen; 30th July 2006 at 02:50 AM.
dknguyen is offline  
Old 30th July 2006, 02:51 AM   (permalink)
Default

Impedance is a general term which may inclued capacitive or inductive reactance and resistance. It would be more accurate to say the 3rd state is high resistance because a frequency is not specified.
__________________
see my website: www.geocities.com/russlk
Russlk is offline  
Old 30th July 2006, 02:52 AM   (permalink)
Default

So, if you were to turn on the third output, then a one nor a zero would show up? It would just be nothing?
Marks256 is offline  
Old 30th July 2006, 03:05 AM   (permalink)
Default

Imagine a wire at ground potential, or at 5V. These are the two states we are familiar with. Now imagine the wire is disconnected from the rest of the circuit. That is the "tri" or 3rd state.
__________________
"Everything that is done in the world is done by hope." -Martin Luther
"There are two ways to live your life. One is as though nothing is a miracle. The other is as though everything is a miracle."-Albert Einstein
Analog is offline  
Old 30th July 2006, 03:06 AM   (permalink)
Default

It would show up as something...but what that something is, is unknown and unpredictable. It changes all the time and floats around, some ever changing voltage. It's basically "disconnected". Using a voltmeter to measure the voltage between power supply ground and a high impedence pin is simiilar to measuring the voltage between that same ground and some random piece of metal lying around somewhere.
dknguyen is offline  
Old 30th July 2006, 03:17 AM   (permalink)
Default

Oh! I see now! Thanks! But then what is the purpose of the pin state? If it is so unstable, what is it good for?
Marks256 is offline  
Old 30th July 2006, 04:52 AM   (permalink)
Default

Quote:
Originally Posted by Marks256
Oh! I see now! Thanks! But then what is the purpose of the pin state? If it is so unstable, what is it good for?
You make the output pin of a device its disconnected 3rd state when you want to use the wire that its output is connected to by another IC's output.

Like I said before, the wire that the output pin is connected to can be used by many IC's that have 3-state outputs when only one output is enabled at a time.
__________________
Uncle $crooge
audioguru is offline  
Old 30th July 2006, 06:46 AM   (permalink)
Default

Quote:
Originally Posted by Marks256
Oh! I see now! Thanks! But then what is the purpose of the pin state? If it is so unstable, what is it good for?
YOu can use it for as an open collector output with the pull-up resistors so you can have a high voltage that is larger than the device's supply voltage.

And like audioguru said, if you have a Y connection between 3 pins, you can use the high-impedence to switch back and forth between one branch and the other. So you could conceivably have 3 or 4 uC using the same sensor over the same wire one after another. Similar to demultiplexing. (Right now, let's just say one output to several inputs instead of multiplexing which is several outputs to one inputs)

Last edited by dknguyen; 30th July 2006 at 07:05 AM.
dknguyen is offline  
Reply

Bookmarks

Thread Tools
Display Modes





All times are GMT. The time now is 11:17 AM.


Electronic Circuits  |  Learning Electronics
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.

eXTReMe Tracker