Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

I don't understand how gates work.

  1. Sep 19, 2009 #1
    I'm not sure if this is the right board.

    Gates work based on binary input, 0 and 1. But what defines "input?" Is it the presence of voltage?
     
  2. jcsd
  3. Sep 20, 2009 #2

    Janus

    User Avatar
    Staff Emeritus
    Science Advisor
    Gold Member

    Yes, it the presence of voltage. Typically, a voltage below a certain level is considered a "0"(low) and one above a certain level is a "1"(high), with a "undefined" region between the two.
     
  4. Sep 20, 2009 #3

    dlgoff

    User Avatar
    Science Advisor
    Gold Member

    Last edited by a moderator: May 4, 2017
  5. Sep 21, 2009 #4
    A lot of things can confuse people when first learning electronics so don't let it get you down. Binary, logic 1's and zero's are all different terms for ON and OFF. A logic gate is operated either ON or OFF. Each logic gate has different voltage levels as to what is classed as ON. It usually varies between 5V and 12V but there are many other values. You have to consult the data sheet for the logic gate that you are using. OFF is 0V.
    Therefore for a 5V AND gate, 1 input at 0V and 1 input at 5V will output 0V. Both inputs at 5V will output 5V. Both inputs at 0V the output is 0V.
    I hope this helps.
    Keep up with the studying. It will all make sense in the end!

    Craig

    http://www.calibrepower.com" [Broken]
     
    Last edited by a moderator: May 4, 2017
  6. Sep 21, 2009 #5

    vk6kro

    User Avatar
    Science Advisor

    If you consider an AND gate.
    If both inputs are "1" then the output is a "1". Simple rule, but very powerful.

    But what if you had one input high all the time?
    Can you see that what comes out of the output would depend on what is coming into the other input. If it was a stream of pulses, they would come out of the output. If they were high, both inputs would be high so the output would be high. If they were low, one input is high but one is low so the output is low.

    Now make that first input a Zero.
    Now, it doesn't matter what comes into the other input. Nothing will get sent to the output.
    At least one input is low so the output is low.

    So, you can control the outputting of that stream of pulses just by putting a 1 or a 0 on the other input. Put a 1 there and they get through. Put a 0 there and they don't.
     
  7. Sep 21, 2009 #6
  8. Sep 21, 2009 #7

    jambaugh

    User Avatar
    Science Advisor
    Gold Member

    One other comment. You'll often see TTL applied to certain circuits which stands for "Transistor-Transistor Logic" and means silicon based bijunction transistors which saturate "switch" at 5 volts. This as compared to CMOS (complementary metal oxide semiconductor) which uses FET transistors switching around 3.5 volts.

    Think of a transistor amplifier circuit. It can't amplify arbitrarily large signals and hits some maximum voltage (generally the supply voltage). The shape of the output for a given linear input voltage will be a flat line in the negative domain then curving upward (linear amplifying domain) then leveling off at saturation.

    Zoom out and this looks like a simple step function indicating the transition from switched off to switched on.

    AND gates can be made by requiring two inputs both be on to switch on the output (A FET with two gates or simply two transistors in series (emitter to collector) with the bases being the inputs), inverters by simply constructing inverting amplifiers. With AND and NOT you can construct any other logic.
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook