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,203 tejas User rank is General 79th Grade (Above 100000 Reputation Level)tejas User rank is General 79th Grade (Above 100000 Reputation Level)tejas User rank is General 79th Grade (Above 100000 Reputation Level)tejas User rank is General 79th Grade (Above 100000 Reputation Level)tejas User rank is General 79th Grade (Above 100000 Reputation Level)tejas User rank is General 79th Grade (Above 100000 Reputation Level)tejas User rank is General 79th Grade (Above 100000 Reputation Level)tejas User rank is General 79th Grade (Above 100000 Reputation Level)tejas User rank is General 79th Grade (Above 100000 Reputation Level)tejas User rank is General 79th Grade (Above 100000 Reputation Level)tejas User rank is General 79th Grade (Above 100000 Reputation Level)tejas User rank is General 79th Grade (Above 100000 Reputation Level)tejas User rank is General 79th Grade (Above 100000 Reputation Level)tejas User rank is General 79th Grade (Above 100000 Reputation Level)tejas User rank is General 79th Grade (Above 100000 Reputation Level)tejas User rank is General 79th 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 1 Day 23 h 32 m
Reputation Power: 6217
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,595 madhyena User rank is General 106th Grade (Above 100000 Reputation Level)madhyena User rank is General 106th Grade (Above 100000 Reputation Level)madhyena User rank is General 106th Grade (Above 100000 Reputation Level)madhyena User rank is General 106th Grade (Above 100000 Reputation Level)madhyena User rank is General 106th Grade (Above 100000 Reputation Level)madhyena User rank is General 106th Grade (Above 100000 Reputation Level)madhyena User rank is General 106th Grade (Above 100000 Reputation Level)madhyena User rank is General 106th Grade (Above 100000 Reputation Level)madhyena User rank is General 106th Grade (Above 100000 Reputation Level)madhyena User rank is General 106th Grade (Above 100000 Reputation Level)madhyena User rank is General 106th Grade (Above 100000 Reputation Level)madhyena User rank is General 106th Grade (Above 100000 Reputation Level)madhyena User rank is General 106th Grade (Above 100000 Reputation Level)madhyena User rank is General 106th Grade (Above 100000 Reputation Level)madhyena User rank is General 106th Grade (Above 100000 Reputation Level)madhyena User rank is General 106th Grade (Above 100000 Reputation Level)  Folding Points: 65608 Folding Title: Intermediate FolderFolding Points: 65608 Folding Title: Intermediate FolderFolding Points: 65608 Folding Title: Intermediate FolderFolding Points: 65608 Folding Title: Intermediate Folder
Time spent in forums: 1 Year 4 Months 1 Week 1 Day 16 h 54 m 54 sec
Reputation Power: 8060
Send a message via AIM 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 Website & Article Index. Visit Nilpo.com - Ask the Windows Guru!™
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,203 tejas User rank is General 79th Grade (Above 100000 Reputation Level)tejas User rank is General 79th Grade (Above 100000 Reputation Level)tejas User rank is General 79th Grade (Above 100000 Reputation Level)tejas User rank is General 79th Grade (Above 100000 Reputation Level)tejas User rank is General 79th Grade (Above 100000 Reputation Level)tejas User rank is General 79th Grade (Above 100000 Reputation Level)tejas User rank is General 79th Grade (Above 100000 Reputation Level)tejas User rank is General 79th Grade (Above 100000 Reputation Level)tejas User rank is General 79th Grade (Above 100000 Reputation Level)tejas User rank is General 79th Grade (Above 100000 Reputation Level)tejas User rank is General 79th Grade (Above 100000 Reputation Level)tejas User rank is General 79th Grade (Above 100000 Reputation Level)tejas User rank is General 79th Grade (Above 100000 Reputation Level)tejas User rank is General 79th Grade (Above 100000 Reputation Level)tejas User rank is General 79th Grade (Above 100000 Reputation Level)tejas User rank is General 79th 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 1 Day 23 h 32 m
Reputation Power: 6217
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,203 tejas User rank is General 79th Grade (Above 100000 Reputation Level)tejas User rank is General 79th Grade (Above 100000 Reputation Level)tejas User rank is General 79th Grade (Above 100000 Reputation Level)tejas User rank is General 79th Grade (Above 100000 Reputation Level)tejas User rank is General 79th Grade (Above 100000 Reputation Level)tejas User rank is General 79th Grade (Above 100000 Reputation Level)tejas User rank is General 79th Grade (Above 100000 Reputation Level)tejas User rank is General 79th Grade (Above 100000 Reputation Level)tejas User rank is General 79th Grade (Above 100000 Reputation Level)tejas User rank is General 79th Grade (Above 100000 Reputation Level)tejas User rank is General 79th Grade (Above 100000 Reputation Level)tejas User rank is General 79th Grade (Above 100000 Reputation Level)tejas User rank is General 79th Grade (Above 100000 Reputation Level)tejas User rank is General 79th Grade (Above 100000 Reputation Level)tejas User rank is General 79th Grade (Above 100000 Reputation Level)tejas User rank is General 79th 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 1 Day 23 h 32 m
Reputation Power: 6217
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: 1 · #9  
Old April 3rd, 2007, 10:02 AM
Dngrsone Dngrsone is offline
Gone, gone gone
Dev Hardware God 6th Plane (7500 - 7999 posts)
 
Join Date: May 2004
Location: in the real world
Posts: 7,769 Dngrsone User rank is General 63rd Grade (Above 100000 Reputation Level)Dngrsone User rank is General 63rd Grade (Above 100000 Reputation Level)Dngrsone User rank is General 63rd Grade (Above 100000 Reputation Level)Dngrsone User rank is General 63rd Grade (Above 100000 Reputation Level)Dngrsone User rank is General 63rd Grade (Above 100000 Reputation Level)Dngrsone User rank is General 63rd Grade (Above 100000 Reputation Level)Dngrsone User rank is General 63rd Grade (Above 100000 Reputation Level)Dngrsone User rank is General 63rd Grade (Above 100000 Reputation Level)Dngrsone User rank is General 63rd Grade (Above 100000 Reputation Level)Dngrsone User rank is General 63rd Grade (Above 100000 Reputation Level)Dngrsone User rank is General 63rd Grade (Above 100000 Reputation Level)Dngrsone User rank is General 63rd Grade (Above 100000 Reputation Level)Dngrsone User rank is General 63rd Grade (Above 100000 Reputation Level)Dngrsone User rank is General 63rd Grade (Above 100000 Reputation Level)Dngrsone User rank is General 63rd Grade (Above 100000 Reputation Level)Dngrsone User rank is General 63rd Grade (Above 100000 Reputation Level)  Folding Points: 360964 Folding Title: Super Ultimate Folder - Level 1Folding Points: 360964 Folding Title: Super Ultimate Folder - Level 1Folding Points: 360964 Folding Title: Super Ultimate Folder - Level 1Folding Points: 360964 Folding Title: Super Ultimate Folder - Level 1Folding Points: 360964 Folding Title: Super Ultimate Folder - Level 1Folding Points: 360964 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 1 Month 3 Weeks 6 Days 23 h 42 m 13 sec
Reputation Power: 5198
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!
__________________
Yes, it is very possible, in fact, highly probable, that you are wrong.

You would be a better person if you would just admit that.

And I would be less annoyed.



"I like doggies....and apparently dinousaurs, mostly because they eat cats!" --Nilpo

Reply With Quote
  Trader Rating: 0 · #10  
Old April 3rd, 2007, 01:43 PM
archnaid's Avatar
archnaid archnaid is offline
Moderator
Dev Hardware Expert (3500 - 3999 posts)
 
Join Date: Feb 2004
Posts: 3,931 archnaid User rank is General 27th Grade (Above 100000 Reputation Level)archnaid User rank is General 27th Grade (Above 100000 Reputation Level)archnaid User rank is General 27th Grade (Above 100000 Reputation Level)archnaid User rank is General 27th Grade (Above 100000 Reputation Level)archnaid User rank is General 27th Grade (Above 100000 Reputation Level)archnaid User rank is General 27th Grade (Above 100000 Reputation Level)archnaid User rank is General 27th Grade (Above 100000 Reputation Level)archnaid User rank is General 27th Grade (Above 100000 Reputation Level)archnaid User rank is General 27th Grade (Above 100000 Reputation Level)archnaid User rank is General 27th Grade (Above 100000 Reputation Level)archnaid User rank is General 27th Grade (Above 100000 Reputation Level)archnaid User rank is General 27th Grade (Above 100000 Reputation Level)archnaid User rank is General 27th Grade (Above 100000 Reputation Level)archnaid User rank is General 27th Grade (Above 100000 Reputation Level)archnaid User rank is General 27th Grade (Above 100000 Reputation Level)archnaid User rank is General 27th Grade (Above 100000 Reputation Level)  Folding Points: 558418 Folding Title: Super Ultimate Folder - Level 2Folding Points: 558418 Folding Title: Super Ultimate Folder - Level 2Folding Points: 558418 Folding Title: Super Ultimate Folder - Level 2Folding Points: 558418 Folding Title: Super Ultimate Folder - Level 2Folding Points: 558418 Folding Title: Super Ultimate Folder - Level 2Folding Points: 558418 Folding Title: Super Ultimate Folder - Level 2Folding Points: 558418 Folding Title: Super Ultimate Folder - Level 2
Time spent in forums: 1 Month 4 Days 15 h 12 m 37 sec
Reputation Power: 2784
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,203 tejas User rank is General 79th Grade (Above 100000 Reputation Level)tejas User rank is General 79th Grade (Above 100000 Reputation Level)tejas User rank is General 79th Grade (Above 100000 Reputation Level)tejas User rank is General 79th Grade (Above 100000 Reputation Level)tejas User rank is General 79th Grade (Above 100000 Reputation Level)tejas User rank is General 79th Grade (Above 100000 Reputation Level)tejas User rank is General 79th Grade (Above 100000 Reputation Level)tejas User rank is General 79th Grade (Above 100000 Reputation Level)tejas User rank is General 79th Grade (Above 100000 Reputation Level)tejas User rank is General 79th Grade (Above 100000 Reputation Level)tejas User rank is General 79th Grade (Above 100000 Reputation Level)tejas User rank is General 79th Grade (Above 100000 Reputation Level)tejas User rank is General 79th Grade (Above 100000 Reputation Level)tejas User rank is General 79th Grade (Above 100000 Reputation Level)tejas User rank is General 79th Grade (Above 100000 Reputation Level)tejas User rank is General 79th 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 1 Day 23 h 32 m
Reputation Power: 6217
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!