Science
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
Go Back   Dev Hardware ForumsGENERAL GooSH!™Science

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Hardware Forums Sponsor:
  Trader Rating: 0 · #1  
Old March 30th, 2007, 03:58 AM
Drezard Drezard is offline
n00b DevH'er
Dev Hardware Newbie (0 - 499 posts)
 
Join Date: Feb 2007
Posts: 8 Drezard User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 1 m 38 sec
Reputation Power: 0
Basic Logic Circuit

Okay, so this is my basic basic logic circuit. It contains one logic gate and all it does is....

If two batterys are plugged in (in the proper places) then it makes the beeper beep... If only one or no batterys are plugged in then the beeper doesnt beep.

Now, my question is does this design (picture) look right? I think im missing a transitter somewhere or something like that...

design pic:
[IMG](URL address blocked: See forum rules)[/IMG][/URL]

Thanks, daniel

Reply With Quote
  Trader Rating: 0 · #2  
Old March 30th, 2007, 05:18 AM
tejas tejas is offline
अहम् ब्रह्मास्मि
Dev Hardware Specialist (4000 - 4499 posts)
 
Join Date: Sep 2004
Location: Resident Troll
Posts: 4,204 tejas User rank is General 91st Grade (Above 100000 Reputation Level)tejas User rank is General 91st Grade (Above 100000 Reputation Level)tejas User rank is General 91st Grade (Above 100000 Reputation Level)tejas User rank is General 91st Grade (Above 100000 Reputation Level)tejas User rank is General 91st Grade (Above 100000 Reputation Level)tejas User rank is General 91st Grade (Above 100000 Reputation Level)tejas User rank is General 91st Grade (Above 100000 Reputation Level)tejas User rank is General 91st Grade (Above 100000 Reputation Level)tejas User rank is General 91st Grade (Above 100000 Reputation Level)tejas User rank is General 91st Grade (Above 100000 Reputation Level)tejas User rank is General 91st Grade (Above 100000 Reputation Level)tejas User rank is General 91st Grade (Above 100000 Reputation Level)tejas User rank is General 91st Grade (Above 100000 Reputation Level)tejas User rank is General 91st Grade (Above 100000 Reputation Level)tejas User rank is General 91st Grade (Above 100000 Reputation Level)tejas User rank is General 91st Grade (Above 100000 Reputation Level)  Folding Points: 72253 Folding Title: Intermediate FolderFolding Points: 72253 Folding Title: Intermediate FolderFolding Points: 72253 Folding Title: Intermediate FolderFolding Points: 72253 Folding Title: Intermediate Folder
Time spent in forums: 4 Months 2 Days 2 h 25 m 58 sec
Reputation Power: 7048
Dude. No homework please. I would love to help, had it not been for your homework. And this problem is so basic, you don't even need us. Read your book, and that should be sufficient.

Reply With Quote
  Trader Rating: 0 · #3  
Old March 30th, 2007, 05:34 AM
Drezard Drezard is offline
n00b DevH'er
Dev Hardware Newbie (0 - 499 posts)
 
Join Date: Feb 2007
Posts: 8 Drezard User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 1 m 38 sec
Reputation Power: 0
Honestly, This isn't homework (note all the other questions about Microproessors and such)...

I want to learn to make a basic microprocessor and i thought a basic logic gate would be the way to start. now, what parts would be required to build a logic gate that just checks to see if 2 batteries are plugged in and then makes the beeper go off? also, how would I do it? (look, if i can get one logic gate going then 2 shouldn't be hard and so on)...

And I know, I hate it when people post homework for others to do on forums, i see people all the time since I'm a C++ programmer and visit C++ forums regulary.

- cheers, Daniel

Reply With Quote
  Trader Rating: 4 · #4  
Old March 30th, 2007, 06:34 AM
madhyena's Avatar
madhyena madhyena is online now
SץsAםмιи & Wяιτєя
Click here for more information.
 
Join Date: Sep 2004
Location: Romania - Târgu Mureş - the one and only
Posts: 4,749 madhyena User rank is General 198th Grade (Above 100000 Reputation Level)madhyena User rank is General 198th Grade (Above 100000 Reputation Level)madhyena User rank is General 198th Grade (Above 100000 Reputation Level)madhyena User rank is General 198th Grade (Above 100000 Reputation Level)madhyena User rank is General 198th Grade (Above 100000 Reputation Level)madhyena User rank is General 198th Grade (Above 100000 Reputation Level)madhyena User rank is General 198th Grade (Above 100000 Reputation Level)madhyena User rank is General 198th Grade (Above 100000 Reputation Level)madhyena User rank is General 198th Grade (Above 100000 Reputation Level)madhyena User rank is General 198th Grade (Above 100000 Reputation Level)madhyena User rank is General 198th Grade (Above 100000 Reputation Level)madhyena User rank is General 198th Grade (Above 100000 Reputation Level)madhyena User rank is General 198th Grade (Above 100000 Reputation Level)madhyena User rank is General 198th Grade (Above 100000 Reputation Level)madhyena User rank is General 198th Grade (Above 100000 Reputation Level)madhyena User rank is General 198th Grade (Above 100000 Reputation Level)  Folding Points: 305578 Folding Title: Super Ultimate Folder - Level 1Folding Points: 305578 Folding Title: Super Ultimate Folder - Level 1Folding Points: 305578 Folding Title: Super Ultimate Folder - Level 1Folding Points: 305578 Folding Title: Super Ultimate Folder - Level 1Folding Points: 305578 Folding Title: Super Ultimate Folder - Level 1Folding Points: 305578 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 2 Years 4 Months 1 Week 4 Days 9 h 25 m 30 sec
Reputation Power: 14178
Send a message via AIM to madhyena Send a message via MSN to madhyena Send a message via Yahoo to madhyena Send a message via Google Talk to madhyena
Further readings:

link, link, link, link.

Also, link - Lessons in Electric Circuits - Volume 3 - DIGI.

link - Automating Manufacturing Systems with PLCs - read 2nd and 15th chapter.

link - Complete Digital Design: A Comprehensive Guide to Digital Electronics and Computer System Architecture - read 1st chapter.

And, of course, be sure to check this, this and this out.

A really comprehensive image: here.

You really shouldn't miss this, this to practice and experiment, therefore deepening and enhancing your knowledge in the area of 'digital logic'.

That would be all in a nutshell. Reading the above links will guarantee you to succeed in your endeavors.

First of all, why didn't we helped? Because it sounds like a homework, even if it is not, it may be for someone else and answering questions similar like yours are violating our rules. No homeworks, please.

Second, you posted your diagram but it didn't appeared since you are a newcomer. You need at least 5 (five) posts to be able to post url's (and your screenshot contains http:// in it).

Third, try to reformulate your question, ask us specific terms and such so that we can help out easily and give you an indirect but helpful advice. Also, fix your diagram issues-- either post more until you reach 5 posts, or edit your posts and remove "http://" prefix, we know that we need to add that tag.

Good luck!

PS: This book looks very awesome, unfortunately it's very expensive. Anyway, you might want to look into...
__________________

“Greatness, combined with the hint of a 24-carat lifestyle, is within us striving to make it through, craving for attention,
and in the end, recognition, leaving a record worthy of biography on forging success stories.”
—ME

Check out MadHyeNa's Article Index. Visit PrimeRanks - We Rank You Into Pole-Position!
I succeed, conquer, and achieve, therefore I am.

Last edited by madhyena : March 30th, 2007 at 06:37 AM.

Reply With Quote
  Trader Rating: 0 · #5  
Old March 30th, 2007, 12:39 PM
tejas tejas is offline
अहम् ब्रह्मास्मि
Dev Hardware Specialist (4000 - 4499 posts)
 
Join Date: Sep 2004
Location: Resident Troll
Posts: 4,204 tejas User rank is General 91st Grade (Above 100000 Reputation Level)tejas User rank is General 91st Grade (Above 100000 Reputation Level)tejas User rank is General 91st Grade (Above 100000 Reputation Level)tejas User rank is General 91st Grade (Above 100000 Reputation Level)tejas User rank is General 91st Grade (Above 100000 Reputation Level)tejas User rank is General 91st Grade (Above 100000 Reputation Level)tejas User rank is General 91st Grade (Above 100000 Reputation Level)tejas User rank is General 91st Grade (Above 100000 Reputation Level)tejas User rank is General 91st Grade (Above 100000 Reputation Level)tejas User rank is General 91st Grade (Above 100000 Reputation Level)tejas User rank is General 91st Grade (Above 100000 Reputation Level)tejas User rank is General 91st Grade (Above 100000 Reputation Level)tejas User rank is General 91st Grade (Above 100000 Reputation Level)tejas User rank is General 91st Grade (Above 100000 Reputation Level)tejas User rank is General 91st Grade (Above 100000 Reputation Level)tejas User rank is General 91st Grade (Above 100000 Reputation Level)  Folding Points: 72253 Folding Title: Intermediate FolderFolding Points: 72253 Folding Title: Intermediate FolderFolding Points: 72253 Folding Title: Intermediate FolderFolding Points: 72253 Folding Title: Intermediate Folder
Time spent in forums: 4 Months 2 Days 2 h 25 m 58 sec
Reputation Power: 7048
You need an AND gate. Period. For the AND gate, from a CMOS perspective you would need 6 transistors. Read more here.
Comments on this post
madhyena agrees: True!
archnaid agrees: True, but I can hardly imagine implementing this via CMOS!

Last edited by tejas : March 31st, 2007 at 05:56 AM. Reason: Erroneous information..corrected now.

Reply With Quote
  Trader Rating: 0 · #6  
Old March 31st, 2007, 02:26 AM
Drezard Drezard is offline
n00b DevH'er
Dev Hardware Newbie (0 - 499 posts)
 
Join Date: Feb 2007
Posts: 8 Drezard User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 1 m 38 sec
Reputation Power: 0
Cheers, Ive been a C++ programmer for awhile now, and lately ive been thinking... hmmm wats inside that silicon chip on my motherboard... well im slowly learning.

- Cheers, Daniel
Comments on this post
madhyena agrees: lol

Reply With Quote
  Trader Rating: 0 · #7  
Old March 31st, 2007, 05:46 AM
tejas tejas is offline
अहम् ब्रह्मास्मि
Dev Hardware Specialist (4000 - 4499 posts)
 
Join Date: Sep 2004
Location: Resident Troll
Posts: 4,204 tejas User rank is General 91st Grade (Above 100000 Reputation Level)tejas User rank is General 91st Grade (Above 100000 Reputation Level)tejas User rank is General 91st Grade (Above 100000 Reputation Level)tejas User rank is General 91st Grade (Above 100000 Reputation Level)tejas User rank is General 91st Grade (Above 100000 Reputation Level)tejas User rank is General 91st Grade (Above 100000 Reputation Level)tejas User rank is General 91st Grade (Above 100000 Reputation Level)tejas User rank is General 91st Grade (Above 100000 Reputation Level)tejas User rank is General 91st Grade (Above 100000 Reputation Level)tejas User rank is General 91st Grade (Above 100000 Reputation Level)tejas User rank is General 91st Grade (Above 100000 Reputation Level)tejas User rank is General 91st Grade (Above 100000 Reputation Level)tejas User rank is General 91st Grade (Above 100000 Reputation Level)tejas User rank is General 91st Grade (Above 100000 Reputation Level)tejas User rank is General 91st Grade (Above 100000 Reputation Level)tejas User rank is General 91st Grade (Above 100000 Reputation Level)  Folding Points: 72253 Folding Title: Intermediate FolderFolding Points: 72253 Folding Title: Intermediate FolderFolding Points: 72253 Folding Title: Intermediate FolderFolding Points: 72253 Folding Title: Intermediate Folder
Time spent in forums: 4 Months 2 Days 2 h 25 m 58 sec
Reputation Power: 7048
It all begins with Transistors. They work as voltage controlled switches. Can be programmed to behave almost in any pattern. We covered the discussion here. this thread.

Quote:
archnaid agrees: True, but I can hardly imagine implementing this via CMOS!
Oh why not! A NAND gate coupled with an inverter - 6 transistors circuit. CMOS works on the fundamental of providing inverted outputs. It is easy or more practical to create a NAND gate and then invert it. The same can be done using NOR gate too. I am sure that link on Play-hookey will be very informative.

Edit: Yes. I just re-read my previous post and realized it was a mistake. 4 transistors is not possible. Sorry about that.

Last edited by tejas : March 31st, 2007 at 05:56 AM.

Reply With Quote
  Trader Rating: 0 · #8  
Old April 3rd, 2007, 02:18 AM
Drezard Drezard is offline
n00b DevH'er
Dev Hardware Newbie (0 - 499 posts)
 
Join Date: Feb 2007
Posts: 8 Drezard User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 1 m 38 sec
Reputation Power: 0
Wink

I honestly dont get this logic gate thing... I have been looking thro digital logic on play hookey and it shows the picture of an AND gate. But I dont get how the AND gate works. Where are all the transistors?

I've got a basic idea but not perfectly sure. Also if I was going to use 2 1.5volt batteries as my 2 switches (as the A and B) would i be using 1.5v or 3v transistors?

- Thanks, Daniel

Reply With Quote
  Trader Rating: 2 · #9  
Old April 3rd, 2007, 10:02 AM
Dngrsone's Avatar
Dngrsone Dngrsone is offline
Designated Asshole
Click here for more information.
 
Join Date: May 2004
Location: In the space between you and I
Posts: 8,636 Dngrsone User rank is General 172nd Grade (Above 100000 Reputation Level)Dngrsone User rank is General 172nd Grade (Above 100000 Reputation Level)Dngrsone User rank is General 172nd Grade (Above 100000 Reputation Level)Dngrsone User rank is General 172nd Grade (Above 100000 Reputation Level)Dngrsone User rank is General 172nd Grade (Above 100000 Reputation Level)Dngrsone User rank is General 172nd Grade (Above 100000 Reputation Level)Dngrsone User rank is General 172nd Grade (Above 100000 Reputation Level)Dngrsone User rank is General 172nd Grade (Above 100000 Reputation Level)Dngrsone User rank is General 172nd Grade (Above 100000 Reputation Level)Dngrsone User rank is General 172nd Grade (Above 100000 Reputation Level)Dngrsone User rank is General 172nd Grade (Above 100000 Reputation Level)Dngrsone User rank is General 172nd Grade (Above 100000 Reputation Level)Dngrsone User rank is General 172nd Grade (Above 100000 Reputation Level)Dngrsone User rank is General 172nd Grade (Above 100000 Reputation Level)Dngrsone User rank is General 172nd Grade (Above 100000 Reputation Level)Dngrsone User rank is General 172nd Grade (Above 100000 Reputation Level)  Folding Points: 471850 Folding Title: Super Ultimate Folder - Level 1Folding Points: 471850 Folding Title: Super Ultimate Folder - Level 1Folding Points: 471850 Folding Title: Super Ultimate Folder - Level 1Folding Points: 471850 Folding Title: Super Ultimate Folder - Level 1Folding Points: 471850 Folding Title: Super Ultimate Folder - Level 1Folding Points: 471850 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 5 Months 2 Days 19 h 18 m 44 sec
Reputation Power: 12453
There are a myriad of ways to build a logic gate. The AND gate you are looking at (that is, if this is what you are looking at) is composed of two diodes, instead of transistors. It is as effective as a transistor-based AND, but cheaper to produce and easier to understand.

The gate requires both inputs to be HI (in this case, +5vdc) for the output to be HI. If there is a LO on either or both inputs, then there will be a voltage drop across the resistor and the output will be LO.

If you look over here, you will find some transistor-based logic circuit diagrams, such as this one-- a three-input AND



In microcircuits, gate-type transistors are used, such as FETs, instead of the traditional bipolar models demonstrated here.
Comments on this post
tejas agrees: Right on!
madhyena agrees!
__________________
Ask Questions the Smart Way


"In front of a monitor is a dangerous place from which to view the world." --Terri Wells

Enable BSOD: Control Panel/Systems, Advanced Tab, hit the Settings button under Startup and Recovery, and under the System Failure area, uncheck the Automatically Restart checkbox.

Reply With Quote
  Trader Rating: 0 · #10  
Old April 3rd, 2007, 01:43 PM
archnaid's Avatar
archnaid archnaid is offline
Moderator
Dev Hardware Specialist (4000 - 4499 posts)
 
Join Date: Feb 2004
Posts: 4,034 archnaid User rank is General 68th Grade (Above 100000 Reputation Level)archnaid User rank is General 68th Grade (Above 100000 Reputation Level)archnaid User rank is General 68th Grade (Above 100000 Reputation Level)archnaid User rank is General 68th Grade (Above 100000 Reputation Level)archnaid User rank is General 68th Grade (Above 100000 Reputation Level)archnaid User rank is General 68th Grade (Above 100000 Reputation Level)archnaid User rank is General 68th Grade (Above 100000 Reputation Level)archnaid User rank is General 68th Grade (Above 100000 Reputation Level)archnaid User rank is General 68th Grade (Above 100000 Reputation Level)archnaid User rank is General 68th Grade (Above 100000 Reputation Level)archnaid User rank is General 68th Grade (Above 100000 Reputation Level)archnaid User rank is General 68th Grade (Above 100000 Reputation Level)archnaid User rank is General 68th Grade (Above 100000 Reputation Level)archnaid User rank is General 68th Grade (Above 100000 Reputation Level)archnaid User rank is General 68th Grade (Above 100000 Reputation Level)archnaid User rank is General 68th Grade (Above 100000 Reputation Level)  Folding Points: 650758 Folding Title: Super Ultimate Folder - Level 2Folding Points: 650758 Folding Title: Super Ultimate Folder - Level 2Folding Points: 650758 Folding Title: Super Ultimate Folder - Level 2Folding Points: 650758 Folding Title: Super Ultimate Folder - Level 2Folding Points: 650758 Folding Title: Super Ultimate Folder - Level 2Folding Points: 650758 Folding Title: Super Ultimate Folder - Level 2Folding Points: 650758 Folding Title: Super Ultimate Folder - Level 2
Time spent in forums: 1 Month 1 Week 18 h 41 m 41 sec
Reputation Power: 5485
Quote:
Originally Posted by tejas
Oh why not!


I would seem like a bigger pain to implement such a small circuit in CMOS and then have to worry about packaging and everything, and actually finding some place to fab you one of these


Or did you mean do it CMOS style, but non-integrated, using BJT's or something? Don't know if there even are complementary BJT's... I guess discrete FETS could work??
Comments on this post
madhyena agrees!
tejas agrees: Thanks for bringing up that question!

Reply With Quote
  Trader Rating: 0 · #11  
Old April 3rd, 2007, 03:37 PM
tejas tejas is offline
अहम् ब्रह्मास्मि
Dev Hardware Specialist (4000 - 4499 posts)
 
Join Date: Sep 2004
Location: Resident Troll
Posts: 4,204 tejas User rank is General 91st Grade (Above 100000 Reputation Level)tejas User rank is General 91st Grade (Above 100000 Reputation Level)tejas User rank is General 91st Grade (Above 100000 Reputation Level)tejas User rank is General 91st Grade (Above 100000 Reputation Level)tejas User rank is General 91st Grade (Above 100000 Reputation Level)tejas User rank is General 91st Grade (Above 100000 Reputation Level)tejas User rank is General 91st Grade (Above 100000 Reputation Level)tejas User rank is General 91st Grade (Above 100000 Reputation Level)tejas User rank is General 91st Grade (Above 100000 Reputation Level)tejas User rank is General 91st Grade (Above 100000 Reputation Level)tejas User rank is General 91st Grade (Above 100000 Reputation Level)tejas User rank is General 91st Grade (Above 100000 Reputation Level)tejas User rank is General 91st Grade (Above 100000 Reputation Level)tejas User rank is General 91st Grade (Above 100000 Reputation Level)tejas User rank is General 91st Grade (Above 100000 Reputation Level)tejas User rank is General 91st Grade (Above 100000 Reputation Level)  Folding Points: 72253 Folding Title: Intermediate FolderFolding Points: 72253 Folding Title: Intermediate FolderFolding Points: 72253 Folding Title: Intermediate FolderFolding Points: 72253 Folding Title: Intermediate Folder
Time spent in forums: 4 Months 2 Days 2 h 25 m 58 sec
Reputation Power: 7048
TBH, I don't have an answer to your question right now, arch. I will look up some more, but I am sure in the mean time D1 will come up with some sure-shot reply. He has worked in electronics far deeper and for far longer than I could even imagine.

My feeling is that NAND as a CMOS devise is just an idea to get your started. And that's a basic block for more complex logic circuits. So, as D1 put it, and as in all circuits at Play-hookey, it is constructed using complimentary transistors. But as a stand-alone component, it is made as shown here. Here's another example of it as IC 7400.

I hope it helps answer some of your questions. I will definitely look up more..
Thanks for bringing that up. I never thought of it..
Comments on this post
madhyena agrees!

Reply With Quote
  Trader Rating: 4 · #12  
Old April 3rd, 2007, 04:00 PM
madhyena's Avatar
madhyena madhyena is online now
SץsAםмιи & Wяιτєя
Click here for more information.
 
Join Date: Sep 2004
Location: Romania - Târgu Mureş - the one and only
Posts: 4,749 madhyena User rank is General 198th Grade (Above 100000 Reputation Level)madhyena User rank is General 198th Grade (Above 100000 Reputation Level)madhyena User rank is General 198th Grade (Above 100000 Reputation Level)madhyena User rank is General 198th Grade (Above 100000 Reputation Level)madhyena User rank is General 198th Grade (Above 100000 Reputation Level)madhyena User rank is General 198th Grade (Above 100000 Reputation Level)madhyena User rank is General 198th Grade (Above 100000 Reputation Level)madhyena User rank is General 198th Grade (Above 100000 Reputation Level)madhyena User rank is General 198th Grade (Above 100000 Reputation Level)madhyena User rank is General 198th Grade (Above 100000 Reputation Level)madhyena User rank is General 198th Grade (Above 100000 Reputation Level)madhyena User rank is General 198th Grade (Above 100000 Reputation Level)madhyena User rank is General 198th Grade (Above 100000 Reputation Level)madhyena User rank is General 198th Grade (Above 100000 Reputation Level)madhyena User rank is General 198th Grade (Above 100000 Reputation Level)madhyena User rank is General 198th Grade (Above 100000 Reputation Level)  Folding Points: 305578 Folding Title: Super Ultimate Folder - Level 1Folding Points: 305578 Folding Title: Super Ultimate Folder - Level 1Folding Points: 305578 Folding Title: Super Ultimate Folder - Level 1Folding Points: 305578 Folding Title: Super Ultimate Folder - Level 1Folding Points: 305578 Folding Title: Super Ultimate Folder - Level 1Folding Points: 305578 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 2 Years 4 Months 1 Week 4 Days 9 h 25 m 30 sec
Reputation Power: 14178
Send a message via AIM to madhyena Send a message via MSN to madhyena Send a message via Yahoo to madhyena Send a message via Google Talk to madhyena
This site should also be insightful to you.

By the way, Drezard, we still haven't seen your prior diagrams. You should have enough posts by now to 'post' again without cutting down the 'http://' prefix, otherwise do so and post it. We need to know what we're dealing with to provide you with better advices.
Comments on this post
tejas agrees!

Reply With Quote
  Trader Rating: 0 · #13  
Old April 4th, 2007, 03:29 AM
tejas tejas is offline
अहम् ब्रह्मास्मि
Dev Hardware Specialist (4000 - 4499 posts)
 
Join Date: Sep 2004
Location: Resident Troll
Posts: 4,204 tejas User rank is General 91st Grade (Above 100000 Reputation Level)tejas User rank is General 91st Grade (Above 100000 Reputation Level)tejas User rank is General 91st Grade (Above 100000 Reputation Level)tejas User rank is General 91st Grade (Above 100000 Reputation Level)tejas User rank is General 91st Grade (Above 100000 Reputation Level)tejas User rank is General 91st Grade (Above 100000 Reputation Level)tejas User rank is General 91st Grade (Above 100000 Reputation Level)tejas User rank is General 91st Grade (Above 100000 Reputation Level)tejas User rank is General 91st Grade (Above 100000 Reputation Level)tejas User rank is General 91st Grade (Above 100000 Reputation Level)tejas User rank is General 91st Grade (Above 100000 Reputation Level)tejas User rank is General 91st Grade (Above 100000 Reputation Level)tejas User rank is General 91st Grade (Above 100000 Reputation Level)tejas User rank is General 91st Grade (Above 100000 Reputation Level)tejas User rank is General 91st Grade (Above 100000 Reputation Level)tejas User rank is General 91st Grade (Above 100000 Reputation Level)  Folding Points: 72253 Folding Title: Intermediate FolderFolding Points: 72253 Folding Title: Intermediate FolderFolding Points: 72253 Folding Title: Intermediate FolderFolding Points: 72253 Folding Title: Intermediate Folder
Time spent in forums: 4 Months 2 Days 2 h 25 m 58 sec
Reputation Power: 7048
OK..just to make sure..I thought you were going to have a circuit where if both the buttons were pressed the beeper would turn on. That's a different circuit.

Transistors came into the picture because we thought you wanted to learn how microprocessors work. To learn about any digital logic circuit you need to learn about gates, which are made of transistors [for the purpose of understanding at least].

Now: Let's put gates on a side for the circuit you are talking about. You can have two buttons in parallel, and connect beeper to both of them. So, when you press either of them, the beeper turns on. To have a circuit where both buttons need to be pressed to turn the beeper on, these buttons will be connected in a series fashion.

If you read more, you will realize that gates run on the same basic principle of series and parallel connections. AND gate for that matter represents a series circuit, while OR represents a parallel circuit.

The basic equation for an AND gate would be
Output = X*Y [so Output is 1 if both the X and Y are 1] ------------ (1)
The same for an OR gate:
Output = X + Y [ Output is 1 if either X or Y is 1] ------------ (2)

Back to your question about transistors: Transistors work as a voltage controlled switch. When a negative voltage triggered* transistor is coupled with a positive voltage triggered* transistor, you achieve a circuit that works for both 0 and 1 cycle of an alternating input, or clock. But in this design, better known as Complimentary MOS, the output is negative logic. So, you can basically build NAND and NOR gates, which are negative-AND and negative-OR.

The equation for NAND gate:
Output = ~(X*Y) ----- (3)
The equation for NOR gate:
Output = ~(X+Y) ----- (4)
The equation for simple Inverter:
Output = ~Input ----- (5)

By now if you have looked at those circuit in those links, you would have realized that in a CMOS circuit, you have 2 transistors per input.

Following simple logic, if you have NAND and Inverter available, the way to create AND gate is to feed output of NAND to an inverter so that your output is complimented. Therefore from equations, AND = ~(NAND)
For 2 input circuit, you would be using 4 transistors in your NAND gate, and 2 in Inverter.

The discussion so far was for a digital logic circuit. If you are implementing the same, you would get ready-made AND gate, or NAND gate. Inside those gates, probably CMOS technology will not be used. So for your purpose, this much discussion should be more than sufficient. What you need to know is the circuit at an abstract level, and how it can be used for your design.

Feel free to shoot questions.

Edit: Why did you remove the question after I made painstaking efforts to type so much!!!
Comments on this post
madhyena agrees: Don't worry Tejas...

Reply With Quote
  Trader Rating: 0 · #14  
Old April 11th, 2007, 04:32 AM
Drezard Drezard is offline
n00b DevH'er
Dev Hardware Newbie (0 - 499 posts)
 
Join Date: Feb 2007
Posts: 8 Drezard User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 1 m 38 sec
Reputation Power: 0
Yea, but I was using the buttons and the beeper as an example to learn how logic gates work. I know that a circuit like I explained would be 100% useless but its the knowledge principal behind it.

I still don't understand what kind of transistors i would be using to create my logic gate.

- cheers, Daniel

Reply With Quote
  Trader Rating: 0 · #15  
Old April 11th, 2007, 05:15 AM
tejas tejas is offline
अहम् ब्रह्मास्मि
Dev Hardware Specialist (4000 - 4499 posts)
 
Join Date: Sep 2004
Location: Resident Troll
Posts: 4,204 tejas User rank is General 91st Grade (Above 100000 Reputation Level)tejas User rank is General 91st Grade (Above 100000 Reputation Level)tejas User rank is General 91st Grade (Above 100000 Reputation Level)tejas User rank is General 91st Grade (Above 100000 Reputation Level)tejas User rank is General 91st Grade (Above 100000 Reputation Level)tejas User rank is General 91st Grade (Above 100000 Reputation Level)tejas User rank is General 91st Grade (Above 100000 Reputation Level)tejas User rank is General 91st Grade (Above 100000 Reputation Level)tejas User rank is General 91st Grade (Above 100000 Reputation Level)tejas User rank is General 91st Grade (Above 100000 Reputation Level)tejas User rank is General 91st Grade (Above 100000 Reputation Level)tejas User rank is General 91st Grade (Above 100000 Reputation Level)tejas User rank is General 91st Grade (Above 100000 Reputation Level)tejas User rank is General 91st Grade (Above 100000 Reputation Level)tejas User rank is General 91st Grade (Above 100000 Reputation Level)tejas User rank is General 91st Grade (Above 100000 Reputation Level)  Folding Points: 72253 Folding Title: Intermediate FolderFolding Points: 72253 Folding Title: Intermediate FolderFolding Points: 72253 Folding Title: Intermediate FolderFolding Points: 72253 Folding Title: Intermediate Folder
Time spent in forums: 4 Months 2 Days 2 h 25 m 58 sec
Reputation Power: 7048
Dude. Tell me for once what you are using for creating gates.

If you are creating a software such as Pspice, you will be using a library component. It is necessary to state here that it is impossible to create physical gates at home. I am not sure if it's just me, but I am still unclear about your actual purpose. If you only want to learn, those links and explanations are the best way to start and after that lot of things are self-explanatory. But you CANNOT create logic gates at home. You can buy couple of ICs and understand their working, but you cannot fabricate them.
Comments on this post
madhyena agrees: Enough said.

Reply With Quote
Reply

Viewing: Dev Hardware ForumsGENERAL GooSH!™Science > Basic Logic Circuit


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump




 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
     
 




© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 1 Hosted by Hostway
Stay green...Green IT