Register to reply

Making a logic circuit

by Xyius
Tags: circuit, logic
Share this thread:
Xyius
#1
May4-12, 12:53 AM
P: 437
Hello all,

I recently started working with circuits and in my classes I learned and used some logic circuits. It was pretty cool but we never actually went over what makes up an IC of one of the logic components.

I really want to know what goes on inside the IC, so I was wondering, how would I go about making, say an OR gate from normal circuit components? Is it possible? Can anyone shed some light into the workings of an OR gate or any other type of gate?

Thanks!!
Phys.Org News Partner Engineering news on Phys.org
Tricorder XPRIZE: 10 teams advance in global competition to develop consumer-focused diagnostic device
Study shows local seismic isolation and damping methods provide optimal protection for essential computing equipment
New filter technology uses inert gas to bore holes in high-quality steel
Bobbywhy
#2
May4-12, 02:40 AM
PF Gold
P: 1,909
Xyius, We used diode logic long before microcrocircuits were invented, and they work just fine. Google is your friend. I recommend you learn to use it when you have some question such as above. I Googled "diode logic gate" and within 0.014 seconds found this:

http://en.wikipedia.org/wiki/Diode_logic

Check it out, and after you study it if you would like to learn more, or see more applications, use the links near the bottom of the page. Good luck.
Bobbywhy
vk6kro
#3
May4-12, 02:40 AM
Sci Advisor
P: 4,032
Quote Quote by Xyius View Post
Hello all,

I recently started working with circuits and in my classes I learned and used some logic circuits. It was pretty cool but we never actually went over what makes up an IC of one of the logic components.

I really want to know what goes on inside the IC, so I was wondering, how would I go about making, say an OR gate from normal circuit components? Is it possible? Can anyone shed some light into the workings of an OR gate or any other type of gate?

Thanks!!

If either of the inputs is high, the output will be high.


If both of the inputs are high, the output will be high.

Xyius
#4
May4-12, 11:37 AM
P: 437
Making a logic circuit

Thanks everyone!

I think I can see how the OR gate works but how exactly does the AND gate circuit work? How come the light wouldn't be on all the time? (Assuming we attached an LED to OUT) It looks to me like there is a straight path from V through the resistor through OUT and to ground. (Again, excuse my ignorance im still new at this! :] )
vk6kro
#5
May4-12, 12:05 PM
Sci Advisor
P: 4,032
Yes, that is right.

But can you see that if either of the inputs was grounded, that the output would be low?

So, they both have to be high for the output to be high.
Xyius
#6
May4-12, 02:44 PM
P: 437
Oh I see! I just made both of them and it all makes sense now. Thanks! :D!
Xyius
#7
May4-12, 07:50 PM
P: 437
I was messing around with these circuits again, is there any way I can make the AND gate take positive signals? What I mean is, right now I need to apply ground (as you said) to change the gate status. But how could I make it so that I have to give it positive signals? I know it probably isn't a big deal but how would I be able to do this?
davenn
#8
May4-12, 09:00 PM
Sci Advisor
PF Gold
davenn's Avatar
P: 2,646
Quote Quote by Xyius View Post
I was messing around with these circuits again, is there any way I can make the AND gate take positive signals? What I mean is, right now I need to apply ground (as you said) to change the gate status. But how could I make it so that I have to give it positive signals? I know it probably isn't a big deal but how would I be able to do this?
if you tied the inputs A and B of the diodes permanently LOW to ground via say a 1k to 4k7 resistor then you could apply a positive voltage to that point then the inputs A and B would be HI and therefore the output would be HI
Not the best way to show it but it has the desired effect ;)



its sorta defeating the purpose of it being an AND gate ...am trying to think of another way to show it
logic ccts are not my forte haha
if you have been actually making up the diode gates that vk6kro showed, try using individual resistors off A and B to ground. see what happens when you apply a positive voltage to A or B ... does the output go HI ? or do you need voltage applied to A and B to make the output go HI ?

Dave

cheers
Dave
Attached Thumbnails
diand.JPG  
vk6kro
#9
May4-12, 09:19 PM
Sci Advisor
P: 4,032
I knew you would ask that.

That was a simple example to show the principle.

You could do this:


In the left diagram, you would have to have both inputs high to get current into the resistor at the bottom.


However, the main point is why would you do something as pointless as this? Why use AND gates at all?

Suppose you gave a friend a switch connected to one of the inputs and told him to switch it on and off continuously.
So, he could turn a light on or off just by switching the switch.

Secretly, though, you have a switch connected to the other input. Unless you switch your switch high, your friend cannot switch the light on and off.

Now, suppose you could switch your switch high for exactly 1 minute. If you count your friend's total number of light pulses, you would know how many pulses per minute he is sending.

So, one of the inputs could work as a control for the other input.

Or, you might turn your garden sprinklers on, but they wouldn't go on if it was raining. You could do this with AND gates. You have to have two conditions apply before something will happen.
Xyius
#10
May4-12, 10:48 PM
P: 437
Thanks a lot! I will try both these methods.

To answer vk6kro, I simply just want to make the logic gates. I haven't really done much with using logical circuits and I didn't like using the IC's without knowing how they work.

So basically im just doing experiments for educational purposes. :]
dlgoff
#11
May4-12, 10:51 PM
Sci Advisor
PF Gold
dlgoff's Avatar
P: 2,725
Quote Quote by Xyius View Post
So basically im just doing experiments for educational purposes. :]
This makes me happy.


Register to reply

Related Discussions
Differences between Logic Function and Logic Circuit Engineering, Comp Sci, & Technology Homework 2
Making circuit diagram in LaTeX Electrical Engineering 1
Need a help in making logic circuits Engineering, Comp Sci, & Technology Homework 5
Making a circuit from a given data Engineering, Comp Sci, & Technology Homework 3
Help making a digital delay circuit Electrical Engineering 4