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 14th November 2004, 04:44 AM   (permalink)
Default XOR Gate Chip SN74LS86

Hi All

Im trying to get the above chip to work but without any luck, probably something simple that Im missing. Looking at the data sheet for the chip I have all the pins sorted, 7 to ground, 5 volts to 14 and using pins 1 & 2 for inputs. However I can't get any change out of pin 3 (output) no matter what I do with pins 1 & 2. From what I understand if either of the inputs goes high, pin 3 will go high otherwise remain low. What voltage does either of the input pins require to be classed as high ? Is there a straight forward way to test the chip.

Many thanks for any help

:?
Strablan is offline  
Old 14th November 2004, 06:25 AM   (permalink)
Default Re: XOR Gate Chip SN74LS86

Quote:
Originally Posted by Strablan
Hi All

Im trying to get the above chip to work but without any luck, probably something simple that Im missing. Looking at the data sheet for the chip I have all the pins sorted, 7 to ground, 5 volts to 14 and using pins 1 & 2 for inputs. However I can't get any change out of pin 3 (output) no matter what I do with pins 1 & 2. From what I understand if either of the inputs goes high, pin 3 will go high otherwise remain low. What voltage does either of the input pins require to be classed as high ? Is there a straight forward way to test the chip.

Many thanks for any help

:?
yes either input can go high but not both...
did you try grounding one of the inputs and let the other one float high
Attached Images
File Type: jpg xor.jpg (17.0 KB, 324 views)
williB is offline  
Old 14th November 2004, 06:36 AM   (permalink)
Default

Thanks for your reply

Quote:
did you try grounding one of the inputs and let the other one float high
I tried that and got 0 volts from pin 3, then let both float and got 0.2 volts from pin 3. From further reading I gather when the output pin goes high I should get 5 volts, could the chip be damaged ?
Strablan is offline  
Old 14th November 2004, 07:09 AM   (permalink)
Default

The logic inputs need always definite levels. Connect one input to GND, another to +5V. Floating inputs most of case high level.
Sebi is offline  
Old 14th November 2004, 07:21 AM   (permalink)
Default

Quote:
Originally Posted by Strablan
Thanks for your reply

Quote:
did you try grounding one of the inputs and let the other one float high
I tried that and got 0 volts from pin 3, then let both float and got 0.2 volts from pin 3. From further reading I gather when the output pin goes high I should get 5 volts, could the chip be damaged ?
you have three other gates on that chip.. try another one..
williB is offline  
Old 14th November 2004, 08:21 AM   (permalink)
Default

I may have the answer : Upon reviewing the data sheet again I see the output low voltage is 8mA and output high voltage is -0.4mA. Does this explain the readings I was getting, if so apologies for not spotting this sooner ?

ops:
Strablan is offline  
Old 15th November 2004, 04:12 AM   (permalink)
Default

Quote:
Originally Posted by Strablan
I may have the answer : Upon reviewing the data sheet again I see the output low voltage is 8mA and output high voltage is -0.4mA. Does this explain the readings I was getting, if so apologies for not spotting this sooner ?

ops:
No, those are not voltages, those are the currents that an output can sink (output low) or source (output high) respectively, and still maintain a valid logic level. If you really have pin 14 to +5V and pin 7 to GND, and you connect one of the inputs to +5V and the other to GND, the output should go high (around 4V). If you connect both inputs to GND, or both inputs to +5V, the output should go low (around 0.2V). The reason for the current specs you mentioned is that TTL circuits draw current on their inputs, so there is a limit to how many TTL loads you can drive with a given output and still maintain valid logic levels.
Roff is online now  
Old 15th November 2004, 09:05 AM   (permalink)
Default

Have tried again with this chip and still the same result, I am seriously begining to think I may have inadvertantly damaged it somehow, possibly burnt it out. I will take a trip to the store tomorrow and purchase some replacements and try again.

Many thanks for all the help given.

I will post my progress with the new chips in due course
Strablan is offline  
Old 16th November 2004, 05:49 AM   (permalink)
Default

Success! The new chips worked perfectly. Many thanks again to everyone who answered my query.

This site rocks

Strablan is offline  
Old 16th November 2004, 06:48 AM   (permalink)
Default

lol Yes It indeed does..
williB is offline  
Old 17th November 2004, 12:46 PM   (permalink)
Default

As a bit of further info on an XOR, they can be cascaded as you would an AND or OR gate for more inputs, but you lose the "exclusivity" when you do this. The logic becomes, "if you have an odd number of inputs that are HIGH and the rest are LOW, the output will be HIGH; in all other cases, the output will be low." This is great logic if you're using the circuit for things like parity generation and parity checking.

But the formal definition of an XOR gate is more like, "if one and ONLY one input goes HIGH and all other inputs are LOW, the output will go HIGH; in all other cases, the output will be LOW." That's a lot tougher to achieve for multiple-input uses.

Ever notice that an XOR or XNOR gate is only available with two inputs while the AND and OR gates often are available with 3, 4 or even 8 inputs?

Dean
__________________
Dean Huster, Electronics Curmudgeon
Contributing Editor emeritus, "Q & A", of the former "Poptronics" magazine (formerly "Popular Electronics" and "Electronics Now" magazines).

R.I.P.
Dean Huster is offline  
Old 18th November 2004, 07:05 AM   (permalink)
Default

Thanks for that Dean, I will keep that in mind
Strablan is offline  
Reply

Bookmarks

Thread Tools
Display Modes





All times are GMT. The time now is 07:23 AM.


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

eXTReMe Tracker