How does a NAND gate work? (Very basic question)Why doesn't current flow through the common part of a circuit?What is the voltage of Vo in this circuit without a closed loop?How does the OR gate work?If there is a branch and the two paths lead back to the same ground, will they both recieve power?How does a Miller cap physically create a pole in circuits?Detecting a connection to a distinct circuit with no current returnIs the flow of current in this RL circuit ambiguously defined?Question About Current Flow DirectionWhat's the reason for this symmetry argument?Will I be able to keep this circuit on by routing the emitter to the base?

Which spells are in some way related to shadows or the Shadowfell?

Lorentz invariance of Maxwell's equations in matter

Is it a good idea to copy a trader when investing?

Has there been evidence of any other gods?

Origins of the "array like" strings in BASIC

Are there vaccine ingredients which may not be disclosed ("hidden", "trade secret", or similar)?

What's the difference between "ricochet" and "bounce"?

Why is it wrong to *implement* myself a known, published, widely believed to be secure crypto algorithm?

How to avoid making self and former employee look bad when reporting on fixing former employee's work?

What's an appropriate age to involve kids in life changing decisions?

What replaces x86 intrinsics for C when Apple ditches Intel CPUs for their own chips?

Why use steam instead of just hot air?

Was there a contingency plan in place if Little Boy failed to detonate?

Has everyone forgotten about wildfire?

Passport stamps art, can it be done?

Why did Missandei say this?

Integral with DiracDelta. Can Mathematica be made to solve this?

Are wands in any sort of book going to be too much like Harry Potter?

Examples where existence is harder than evaluation

How likely are Coriolis-effect-based quirks to develop in starship crew members?

Are on’yomi words loanwords?

What is the radius of the circle in this problem?

Is it a Munchausen Number?

How did Captain Marvel know where to find these characters?



How does a NAND gate work? (Very basic question)


Why doesn't current flow through the common part of a circuit?What is the voltage of Vo in this circuit without a closed loop?How does the OR gate work?If there is a branch and the two paths lead back to the same ground, will they both recieve power?How does a Miller cap physically create a pole in circuits?Detecting a connection to a distinct circuit with no current returnIs the flow of current in this RL circuit ambiguously defined?Question About Current Flow DirectionWhat's the reason for this symmetry argument?Will I be able to keep this circuit on by routing the emitter to the base?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








6












$begingroup$


I'll preface this question by saying that I am a software developer just starting to learn the basics of electronics, so it's very likely I'm missing some fundamental intuition here.



Below is a mechanical NAND gate with two switches. I think it's supposed to be obvious that when the switches are closed, the output Q is 0 rather than 1. I don't see why this is.



I see that when the two switches are closed, there is a path from V+ to ground, and that current will flow to ground. But there's also a path from V+ to Q, so won't some current still flow to the output, putting it in a 1 state?



The intuition I'm using (which may be totally wrong) is this:



  • Current acts like water gushing from V+ down all available paths.

  • At a junction, current will flow through both paths in an amount inversely proportional to resistance. In this case, both paths have no additional resistance so they should split the current equally.

  • The boolean equivalent of a 1 is that current is flowing through a point.

Please help me understand what I'm missing! And if you can point me to a book or online resource explaining these fundamentals, that would be very helpful. I've tried looking at a lot of "circuit tutorial" content on Google, but surprisingly haven't been able to resolve my confusion here.



schematic diagram










share|improve this question











$endgroup$











  • $begingroup$
    The source impedance of the switch is 0 while in normal logic it is <=50 Ohms so the load impedance being much higher permits many loads to applied without significant change in voltage. For TTL, the limit was 10 units of load. But for static CMOS , the limit depends on the equivalent input capacitance and current limit of the switch as this affects rise/fall time. T=RC
    $endgroup$
    – Sunnyskyguy EE75
    Apr 30 at 1:02











  • $begingroup$
    "I see that when the two switches are closed, there is a path from V+ to ground, and that current will flow to ground. But there's also a path from V+ to Q,". No, there is only 1 path, V+ to ground, Q is a point on that path. And, when the switches are closed, Q is at the same potential as ground.
    $endgroup$
    – Glen Yates
    Apr 30 at 15:13

















6












$begingroup$


I'll preface this question by saying that I am a software developer just starting to learn the basics of electronics, so it's very likely I'm missing some fundamental intuition here.



Below is a mechanical NAND gate with two switches. I think it's supposed to be obvious that when the switches are closed, the output Q is 0 rather than 1. I don't see why this is.



I see that when the two switches are closed, there is a path from V+ to ground, and that current will flow to ground. But there's also a path from V+ to Q, so won't some current still flow to the output, putting it in a 1 state?



The intuition I'm using (which may be totally wrong) is this:



  • Current acts like water gushing from V+ down all available paths.

  • At a junction, current will flow through both paths in an amount inversely proportional to resistance. In this case, both paths have no additional resistance so they should split the current equally.

  • The boolean equivalent of a 1 is that current is flowing through a point.

Please help me understand what I'm missing! And if you can point me to a book or online resource explaining these fundamentals, that would be very helpful. I've tried looking at a lot of "circuit tutorial" content on Google, but surprisingly haven't been able to resolve my confusion here.



schematic diagram










share|improve this question











$endgroup$











  • $begingroup$
    The source impedance of the switch is 0 while in normal logic it is <=50 Ohms so the load impedance being much higher permits many loads to applied without significant change in voltage. For TTL, the limit was 10 units of load. But for static CMOS , the limit depends on the equivalent input capacitance and current limit of the switch as this affects rise/fall time. T=RC
    $endgroup$
    – Sunnyskyguy EE75
    Apr 30 at 1:02











  • $begingroup$
    "I see that when the two switches are closed, there is a path from V+ to ground, and that current will flow to ground. But there's also a path from V+ to Q,". No, there is only 1 path, V+ to ground, Q is a point on that path. And, when the switches are closed, Q is at the same potential as ground.
    $endgroup$
    – Glen Yates
    Apr 30 at 15:13













6












6








6


4



$begingroup$


I'll preface this question by saying that I am a software developer just starting to learn the basics of electronics, so it's very likely I'm missing some fundamental intuition here.



Below is a mechanical NAND gate with two switches. I think it's supposed to be obvious that when the switches are closed, the output Q is 0 rather than 1. I don't see why this is.



I see that when the two switches are closed, there is a path from V+ to ground, and that current will flow to ground. But there's also a path from V+ to Q, so won't some current still flow to the output, putting it in a 1 state?



The intuition I'm using (which may be totally wrong) is this:



  • Current acts like water gushing from V+ down all available paths.

  • At a junction, current will flow through both paths in an amount inversely proportional to resistance. In this case, both paths have no additional resistance so they should split the current equally.

  • The boolean equivalent of a 1 is that current is flowing through a point.

Please help me understand what I'm missing! And if you can point me to a book or online resource explaining these fundamentals, that would be very helpful. I've tried looking at a lot of "circuit tutorial" content on Google, but surprisingly haven't been able to resolve my confusion here.



schematic diagram










share|improve this question











$endgroup$




I'll preface this question by saying that I am a software developer just starting to learn the basics of electronics, so it's very likely I'm missing some fundamental intuition here.



Below is a mechanical NAND gate with two switches. I think it's supposed to be obvious that when the switches are closed, the output Q is 0 rather than 1. I don't see why this is.



I see that when the two switches are closed, there is a path from V+ to ground, and that current will flow to ground. But there's also a path from V+ to Q, so won't some current still flow to the output, putting it in a 1 state?



The intuition I'm using (which may be totally wrong) is this:



  • Current acts like water gushing from V+ down all available paths.

  • At a junction, current will flow through both paths in an amount inversely proportional to resistance. In this case, both paths have no additional resistance so they should split the current equally.

  • The boolean equivalent of a 1 is that current is flowing through a point.

Please help me understand what I'm missing! And if you can point me to a book or online resource explaining these fundamentals, that would be very helpful. I've tried looking at a lot of "circuit tutorial" content on Google, but surprisingly haven't been able to resolve my confusion here.



schematic diagram







circuit-analysis logic-gates






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Apr 30 at 16:23









psmears

55335




55335










asked Apr 30 at 0:54









rampatowlrampatowl

1394




1394











  • $begingroup$
    The source impedance of the switch is 0 while in normal logic it is <=50 Ohms so the load impedance being much higher permits many loads to applied without significant change in voltage. For TTL, the limit was 10 units of load. But for static CMOS , the limit depends on the equivalent input capacitance and current limit of the switch as this affects rise/fall time. T=RC
    $endgroup$
    – Sunnyskyguy EE75
    Apr 30 at 1:02











  • $begingroup$
    "I see that when the two switches are closed, there is a path from V+ to ground, and that current will flow to ground. But there's also a path from V+ to Q,". No, there is only 1 path, V+ to ground, Q is a point on that path. And, when the switches are closed, Q is at the same potential as ground.
    $endgroup$
    – Glen Yates
    Apr 30 at 15:13
















  • $begingroup$
    The source impedance of the switch is 0 while in normal logic it is <=50 Ohms so the load impedance being much higher permits many loads to applied without significant change in voltage. For TTL, the limit was 10 units of load. But for static CMOS , the limit depends on the equivalent input capacitance and current limit of the switch as this affects rise/fall time. T=RC
    $endgroup$
    – Sunnyskyguy EE75
    Apr 30 at 1:02











  • $begingroup$
    "I see that when the two switches are closed, there is a path from V+ to ground, and that current will flow to ground. But there's also a path from V+ to Q,". No, there is only 1 path, V+ to ground, Q is a point on that path. And, when the switches are closed, Q is at the same potential as ground.
    $endgroup$
    – Glen Yates
    Apr 30 at 15:13















$begingroup$
The source impedance of the switch is 0 while in normal logic it is <=50 Ohms so the load impedance being much higher permits many loads to applied without significant change in voltage. For TTL, the limit was 10 units of load. But for static CMOS , the limit depends on the equivalent input capacitance and current limit of the switch as this affects rise/fall time. T=RC
$endgroup$
– Sunnyskyguy EE75
Apr 30 at 1:02





$begingroup$
The source impedance of the switch is 0 while in normal logic it is <=50 Ohms so the load impedance being much higher permits many loads to applied without significant change in voltage. For TTL, the limit was 10 units of load. But for static CMOS , the limit depends on the equivalent input capacitance and current limit of the switch as this affects rise/fall time. T=RC
$endgroup$
– Sunnyskyguy EE75
Apr 30 at 1:02













$begingroup$
"I see that when the two switches are closed, there is a path from V+ to ground, and that current will flow to ground. But there's also a path from V+ to Q,". No, there is only 1 path, V+ to ground, Q is a point on that path. And, when the switches are closed, Q is at the same potential as ground.
$endgroup$
– Glen Yates
Apr 30 at 15:13




$begingroup$
"I see that when the two switches are closed, there is a path from V+ to ground, and that current will flow to ground. But there's also a path from V+ to Q,". No, there is only 1 path, V+ to ground, Q is a point on that path. And, when the switches are closed, Q is at the same potential as ground.
$endgroup$
– Glen Yates
Apr 30 at 15:13










5 Answers
5






active

oldest

votes


















15












$begingroup$


The boolean equivalent of a 1 is that current is flowing through a point.




That's the fundamental confusion leading to difficulty in understanding the circuit.



Single ended logic like this encodes state as voltage not current.



Inputs of logic gates are designed to source or sink very little current, so the output of the previous stage is easily able to impose its intended voltage on the connection between output and the following input with very little current needing to flow.



Current-mode signaling does exist, but it's generally used only in noisy situations, for example the time-tested 4-20 mA current loop standard.






share|improve this answer











$endgroup$












  • $begingroup$
    Gotcha. Can you explain why the voltage of Q is only positive when there is no path from V+ to ground?
    $endgroup$
    – rampatowl
    Apr 30 at 1:34






  • 2




    $begingroup$
    Because in a "tug of war" the low resistance switches win over the pulling resistor in imposing the voltage on their far side.
    $endgroup$
    – Chris Stratton
    Apr 30 at 1:46










  • $begingroup$
    Oh of course! So is the rule something like: to determine whether an input pin is high or low, look at every defined component it is connected to, and it will take on the value of the defined component with the least resistance along the path to that component?
    $endgroup$
    – rampatowl
    Apr 30 at 1:56






  • 3




    $begingroup$
    Approximately: but not just the components but what is behind them, in this case "stiff" voltage rails. And if the difference in resistances is not drastic then the voltage may end up intermediate.
    $endgroup$
    – Chris Stratton
    Apr 30 at 2:02


















3












$begingroup$

First off the "N" means that it inverts the input the schematic is sort of doing the same but it gets off track of how the gates work. If you drew it with a relay it would make more sense





schematic





simulate this circuit – Schematic created using CircuitLab



You need to study pull down and pull up resistors, the value of the resistor limits the voltage, current is not an issue really because this is all at "logic level". I had a hard time with the logic stuff at first and then all of a sudden it all made sense, good luck my friend.






share|improve this answer











$endgroup$




















    2












    $begingroup$

    I also had this problem since I started learning a bit about electronics (I'm also a software engineer).



    Electricity always wants to balance. If there is GND, all electricity will flow to there (actually the electrons move in reverse direction but let's ignore that for now).



    This means if the switches are closed, and if Q > 0 V, all electricity will flow to GND, meaning Q will be 0 V in a very short time (read: almost instantly).



    However, when one of the switches is open, the voltage from V+ will flow to Q if Q has less voltage than V+ (which is likely so), so Q will end up having the same voltage as V+.






    share|improve this answer









    $endgroup$




















      0












      $begingroup$

      It is indeed a basic question but I think it is a very valid one. I am an electrical engineer and agree that it seems that the logic is broken but read on and you'll see how easy it is.



      As it was answered before, electronic logic gates are named for its voltage behavior, but that's the easy part. Whenever both SW1 and SW2 are pressed (i.e. its value is "1"), the voltage in the point Q is "0". We can translate it to using logic gate symbols.





      schematic





      simulate this circuit – Schematic created using CircuitLab



      The voltage at Q (i.e. Q to GND) is *Logic 0" when both buttons are pressed.



      Now comes the not complicated but rather confusing part. Suppose you have the following circuit:





      schematic





      simulate this circuit



      I'm sure you will say that's definitively an AND. But let's keep in mind the fact that the point Q voltage drops to 0 when both buttons are pressed and let's translate the circuit to using logic gates.





      schematic





      simulate this circuit



      Now, you will see that the relay will turn on only when the point Q voltage drops to zero (i.e. when both buttons are pressed.) So, think it this way; if you were going to do your own physical implementation of this circuit with logic gates, you would have to buy a NAND. Now you have a Wired AND despite the fact that you are actually using a NAND gate. So don't worry, your computational logic is safe.






      share|improve this answer









      $endgroup$




















        0












        $begingroup$

        I found very useful the simple description of a NAND gate to act thusly
        "any zero in causes a one out". This circuit will do that.



        In this circuit, if either switch is pressed, which causes a ZERO volts input to the inverter, then a logic HIGH appears out of the circuit.



        Note we mixed logic 1 and logic HIGH and VDD and TRUE, along with logic 0 and FALSE and GROUND and logic LOW.





        schematic





        simulate this circuit – Schematic created using CircuitLab






        share|improve this answer











        $endgroup$








        • 2




          $begingroup$
          Looks like an 'OR' gate to me... but maybe I just don't understand how you intend for those switches to work (that's a problem with your answer -- you didn't even try to describe their behavior)
          $endgroup$
          – Ben Voigt
          Apr 30 at 3:18











        Your Answer






        StackExchange.ifUsing("editor", function ()
        return StackExchange.using("schematics", function ()
        StackExchange.schematics.init();
        );
        , "cicuitlab");

        StackExchange.ready(function()
        var channelOptions =
        tags: "".split(" "),
        id: "135"
        ;
        initTagRenderer("".split(" "), "".split(" "), channelOptions);

        StackExchange.using("externalEditor", function()
        // Have to fire editor after snippets, if snippets enabled
        if (StackExchange.settings.snippets.snippetsEnabled)
        StackExchange.using("snippets", function()
        createEditor();
        );

        else
        createEditor();

        );

        function createEditor()
        StackExchange.prepareEditor(
        heartbeatType: 'answer',
        autoActivateHeartbeat: false,
        convertImagesToLinks: false,
        noModals: true,
        showLowRepImageUploadWarning: true,
        reputationToPostImages: null,
        bindNavPrevention: true,
        postfix: "",
        imageUploader:
        brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
        contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
        allowUrls: true
        ,
        onDemand: true,
        discardSelector: ".discard-answer"
        ,immediatelyShowMarkdownHelp:true
        );



        );













        draft saved

        draft discarded


















        StackExchange.ready(
        function ()
        StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2felectronics.stackexchange.com%2fquestions%2f436144%2fhow-does-a-nand-gate-work-very-basic-question%23new-answer', 'question_page');

        );

        Post as a guest















        Required, but never shown

























        5 Answers
        5






        active

        oldest

        votes








        5 Answers
        5






        active

        oldest

        votes









        active

        oldest

        votes






        active

        oldest

        votes









        15












        $begingroup$


        The boolean equivalent of a 1 is that current is flowing through a point.




        That's the fundamental confusion leading to difficulty in understanding the circuit.



        Single ended logic like this encodes state as voltage not current.



        Inputs of logic gates are designed to source or sink very little current, so the output of the previous stage is easily able to impose its intended voltage on the connection between output and the following input with very little current needing to flow.



        Current-mode signaling does exist, but it's generally used only in noisy situations, for example the time-tested 4-20 mA current loop standard.






        share|improve this answer











        $endgroup$












        • $begingroup$
          Gotcha. Can you explain why the voltage of Q is only positive when there is no path from V+ to ground?
          $endgroup$
          – rampatowl
          Apr 30 at 1:34






        • 2




          $begingroup$
          Because in a "tug of war" the low resistance switches win over the pulling resistor in imposing the voltage on their far side.
          $endgroup$
          – Chris Stratton
          Apr 30 at 1:46










        • $begingroup$
          Oh of course! So is the rule something like: to determine whether an input pin is high or low, look at every defined component it is connected to, and it will take on the value of the defined component with the least resistance along the path to that component?
          $endgroup$
          – rampatowl
          Apr 30 at 1:56






        • 3




          $begingroup$
          Approximately: but not just the components but what is behind them, in this case "stiff" voltage rails. And if the difference in resistances is not drastic then the voltage may end up intermediate.
          $endgroup$
          – Chris Stratton
          Apr 30 at 2:02















        15












        $begingroup$


        The boolean equivalent of a 1 is that current is flowing through a point.




        That's the fundamental confusion leading to difficulty in understanding the circuit.



        Single ended logic like this encodes state as voltage not current.



        Inputs of logic gates are designed to source or sink very little current, so the output of the previous stage is easily able to impose its intended voltage on the connection between output and the following input with very little current needing to flow.



        Current-mode signaling does exist, but it's generally used only in noisy situations, for example the time-tested 4-20 mA current loop standard.






        share|improve this answer











        $endgroup$












        • $begingroup$
          Gotcha. Can you explain why the voltage of Q is only positive when there is no path from V+ to ground?
          $endgroup$
          – rampatowl
          Apr 30 at 1:34






        • 2




          $begingroup$
          Because in a "tug of war" the low resistance switches win over the pulling resistor in imposing the voltage on their far side.
          $endgroup$
          – Chris Stratton
          Apr 30 at 1:46










        • $begingroup$
          Oh of course! So is the rule something like: to determine whether an input pin is high or low, look at every defined component it is connected to, and it will take on the value of the defined component with the least resistance along the path to that component?
          $endgroup$
          – rampatowl
          Apr 30 at 1:56






        • 3




          $begingroup$
          Approximately: but not just the components but what is behind them, in this case "stiff" voltage rails. And if the difference in resistances is not drastic then the voltage may end up intermediate.
          $endgroup$
          – Chris Stratton
          Apr 30 at 2:02













        15












        15








        15





        $begingroup$


        The boolean equivalent of a 1 is that current is flowing through a point.




        That's the fundamental confusion leading to difficulty in understanding the circuit.



        Single ended logic like this encodes state as voltage not current.



        Inputs of logic gates are designed to source or sink very little current, so the output of the previous stage is easily able to impose its intended voltage on the connection between output and the following input with very little current needing to flow.



        Current-mode signaling does exist, but it's generally used only in noisy situations, for example the time-tested 4-20 mA current loop standard.






        share|improve this answer











        $endgroup$




        The boolean equivalent of a 1 is that current is flowing through a point.




        That's the fundamental confusion leading to difficulty in understanding the circuit.



        Single ended logic like this encodes state as voltage not current.



        Inputs of logic gates are designed to source or sink very little current, so the output of the previous stage is easily able to impose its intended voltage on the connection between output and the following input with very little current needing to flow.



        Current-mode signaling does exist, but it's generally used only in noisy situations, for example the time-tested 4-20 mA current loop standard.







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Apr 30 at 1:04

























        answered Apr 30 at 0:59









        Chris StrattonChris Stratton

        24.1k22968




        24.1k22968











        • $begingroup$
          Gotcha. Can you explain why the voltage of Q is only positive when there is no path from V+ to ground?
          $endgroup$
          – rampatowl
          Apr 30 at 1:34






        • 2




          $begingroup$
          Because in a "tug of war" the low resistance switches win over the pulling resistor in imposing the voltage on their far side.
          $endgroup$
          – Chris Stratton
          Apr 30 at 1:46










        • $begingroup$
          Oh of course! So is the rule something like: to determine whether an input pin is high or low, look at every defined component it is connected to, and it will take on the value of the defined component with the least resistance along the path to that component?
          $endgroup$
          – rampatowl
          Apr 30 at 1:56






        • 3




          $begingroup$
          Approximately: but not just the components but what is behind them, in this case "stiff" voltage rails. And if the difference in resistances is not drastic then the voltage may end up intermediate.
          $endgroup$
          – Chris Stratton
          Apr 30 at 2:02
















        • $begingroup$
          Gotcha. Can you explain why the voltage of Q is only positive when there is no path from V+ to ground?
          $endgroup$
          – rampatowl
          Apr 30 at 1:34






        • 2




          $begingroup$
          Because in a "tug of war" the low resistance switches win over the pulling resistor in imposing the voltage on their far side.
          $endgroup$
          – Chris Stratton
          Apr 30 at 1:46










        • $begingroup$
          Oh of course! So is the rule something like: to determine whether an input pin is high or low, look at every defined component it is connected to, and it will take on the value of the defined component with the least resistance along the path to that component?
          $endgroup$
          – rampatowl
          Apr 30 at 1:56






        • 3




          $begingroup$
          Approximately: but not just the components but what is behind them, in this case "stiff" voltage rails. And if the difference in resistances is not drastic then the voltage may end up intermediate.
          $endgroup$
          – Chris Stratton
          Apr 30 at 2:02















        $begingroup$
        Gotcha. Can you explain why the voltage of Q is only positive when there is no path from V+ to ground?
        $endgroup$
        – rampatowl
        Apr 30 at 1:34




        $begingroup$
        Gotcha. Can you explain why the voltage of Q is only positive when there is no path from V+ to ground?
        $endgroup$
        – rampatowl
        Apr 30 at 1:34




        2




        2




        $begingroup$
        Because in a "tug of war" the low resistance switches win over the pulling resistor in imposing the voltage on their far side.
        $endgroup$
        – Chris Stratton
        Apr 30 at 1:46




        $begingroup$
        Because in a "tug of war" the low resistance switches win over the pulling resistor in imposing the voltage on their far side.
        $endgroup$
        – Chris Stratton
        Apr 30 at 1:46












        $begingroup$
        Oh of course! So is the rule something like: to determine whether an input pin is high or low, look at every defined component it is connected to, and it will take on the value of the defined component with the least resistance along the path to that component?
        $endgroup$
        – rampatowl
        Apr 30 at 1:56




        $begingroup$
        Oh of course! So is the rule something like: to determine whether an input pin is high or low, look at every defined component it is connected to, and it will take on the value of the defined component with the least resistance along the path to that component?
        $endgroup$
        – rampatowl
        Apr 30 at 1:56




        3




        3




        $begingroup$
        Approximately: but not just the components but what is behind them, in this case "stiff" voltage rails. And if the difference in resistances is not drastic then the voltage may end up intermediate.
        $endgroup$
        – Chris Stratton
        Apr 30 at 2:02




        $begingroup$
        Approximately: but not just the components but what is behind them, in this case "stiff" voltage rails. And if the difference in resistances is not drastic then the voltage may end up intermediate.
        $endgroup$
        – Chris Stratton
        Apr 30 at 2:02













        3












        $begingroup$

        First off the "N" means that it inverts the input the schematic is sort of doing the same but it gets off track of how the gates work. If you drew it with a relay it would make more sense





        schematic





        simulate this circuit – Schematic created using CircuitLab



        You need to study pull down and pull up resistors, the value of the resistor limits the voltage, current is not an issue really because this is all at "logic level". I had a hard time with the logic stuff at first and then all of a sudden it all made sense, good luck my friend.






        share|improve this answer











        $endgroup$

















          3












          $begingroup$

          First off the "N" means that it inverts the input the schematic is sort of doing the same but it gets off track of how the gates work. If you drew it with a relay it would make more sense





          schematic





          simulate this circuit – Schematic created using CircuitLab



          You need to study pull down and pull up resistors, the value of the resistor limits the voltage, current is not an issue really because this is all at "logic level". I had a hard time with the logic stuff at first and then all of a sudden it all made sense, good luck my friend.






          share|improve this answer











          $endgroup$















            3












            3








            3





            $begingroup$

            First off the "N" means that it inverts the input the schematic is sort of doing the same but it gets off track of how the gates work. If you drew it with a relay it would make more sense





            schematic





            simulate this circuit – Schematic created using CircuitLab



            You need to study pull down and pull up resistors, the value of the resistor limits the voltage, current is not an issue really because this is all at "logic level". I had a hard time with the logic stuff at first and then all of a sudden it all made sense, good luck my friend.






            share|improve this answer











            $endgroup$



            First off the "N" means that it inverts the input the schematic is sort of doing the same but it gets off track of how the gates work. If you drew it with a relay it would make more sense





            schematic





            simulate this circuit – Schematic created using CircuitLab



            You need to study pull down and pull up resistors, the value of the resistor limits the voltage, current is not an issue really because this is all at "logic level". I had a hard time with the logic stuff at first and then all of a sudden it all made sense, good luck my friend.







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Apr 30 at 1:50

























            answered Apr 30 at 1:34









            vaporlockvaporlock

            313




            313





















                2












                $begingroup$

                I also had this problem since I started learning a bit about electronics (I'm also a software engineer).



                Electricity always wants to balance. If there is GND, all electricity will flow to there (actually the electrons move in reverse direction but let's ignore that for now).



                This means if the switches are closed, and if Q > 0 V, all electricity will flow to GND, meaning Q will be 0 V in a very short time (read: almost instantly).



                However, when one of the switches is open, the voltage from V+ will flow to Q if Q has less voltage than V+ (which is likely so), so Q will end up having the same voltage as V+.






                share|improve this answer









                $endgroup$

















                  2












                  $begingroup$

                  I also had this problem since I started learning a bit about electronics (I'm also a software engineer).



                  Electricity always wants to balance. If there is GND, all electricity will flow to there (actually the electrons move in reverse direction but let's ignore that for now).



                  This means if the switches are closed, and if Q > 0 V, all electricity will flow to GND, meaning Q will be 0 V in a very short time (read: almost instantly).



                  However, when one of the switches is open, the voltage from V+ will flow to Q if Q has less voltage than V+ (which is likely so), so Q will end up having the same voltage as V+.






                  share|improve this answer









                  $endgroup$















                    2












                    2








                    2





                    $begingroup$

                    I also had this problem since I started learning a bit about electronics (I'm also a software engineer).



                    Electricity always wants to balance. If there is GND, all electricity will flow to there (actually the electrons move in reverse direction but let's ignore that for now).



                    This means if the switches are closed, and if Q > 0 V, all electricity will flow to GND, meaning Q will be 0 V in a very short time (read: almost instantly).



                    However, when one of the switches is open, the voltage from V+ will flow to Q if Q has less voltage than V+ (which is likely so), so Q will end up having the same voltage as V+.






                    share|improve this answer









                    $endgroup$



                    I also had this problem since I started learning a bit about electronics (I'm also a software engineer).



                    Electricity always wants to balance. If there is GND, all electricity will flow to there (actually the electrons move in reverse direction but let's ignore that for now).



                    This means if the switches are closed, and if Q > 0 V, all electricity will flow to GND, meaning Q will be 0 V in a very short time (read: almost instantly).



                    However, when one of the switches is open, the voltage from V+ will flow to Q if Q has less voltage than V+ (which is likely so), so Q will end up having the same voltage as V+.







                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Apr 30 at 1:02









                    Michel KeijzersMichel Keijzers

                    7,34093373




                    7,34093373





















                        0












                        $begingroup$

                        It is indeed a basic question but I think it is a very valid one. I am an electrical engineer and agree that it seems that the logic is broken but read on and you'll see how easy it is.



                        As it was answered before, electronic logic gates are named for its voltage behavior, but that's the easy part. Whenever both SW1 and SW2 are pressed (i.e. its value is "1"), the voltage in the point Q is "0". We can translate it to using logic gate symbols.





                        schematic





                        simulate this circuit – Schematic created using CircuitLab



                        The voltage at Q (i.e. Q to GND) is *Logic 0" when both buttons are pressed.



                        Now comes the not complicated but rather confusing part. Suppose you have the following circuit:





                        schematic





                        simulate this circuit



                        I'm sure you will say that's definitively an AND. But let's keep in mind the fact that the point Q voltage drops to 0 when both buttons are pressed and let's translate the circuit to using logic gates.





                        schematic





                        simulate this circuit



                        Now, you will see that the relay will turn on only when the point Q voltage drops to zero (i.e. when both buttons are pressed.) So, think it this way; if you were going to do your own physical implementation of this circuit with logic gates, you would have to buy a NAND. Now you have a Wired AND despite the fact that you are actually using a NAND gate. So don't worry, your computational logic is safe.






                        share|improve this answer









                        $endgroup$

















                          0












                          $begingroup$

                          It is indeed a basic question but I think it is a very valid one. I am an electrical engineer and agree that it seems that the logic is broken but read on and you'll see how easy it is.



                          As it was answered before, electronic logic gates are named for its voltage behavior, but that's the easy part. Whenever both SW1 and SW2 are pressed (i.e. its value is "1"), the voltage in the point Q is "0". We can translate it to using logic gate symbols.





                          schematic





                          simulate this circuit – Schematic created using CircuitLab



                          The voltage at Q (i.e. Q to GND) is *Logic 0" when both buttons are pressed.



                          Now comes the not complicated but rather confusing part. Suppose you have the following circuit:





                          schematic





                          simulate this circuit



                          I'm sure you will say that's definitively an AND. But let's keep in mind the fact that the point Q voltage drops to 0 when both buttons are pressed and let's translate the circuit to using logic gates.





                          schematic





                          simulate this circuit



                          Now, you will see that the relay will turn on only when the point Q voltage drops to zero (i.e. when both buttons are pressed.) So, think it this way; if you were going to do your own physical implementation of this circuit with logic gates, you would have to buy a NAND. Now you have a Wired AND despite the fact that you are actually using a NAND gate. So don't worry, your computational logic is safe.






                          share|improve this answer









                          $endgroup$















                            0












                            0








                            0





                            $begingroup$

                            It is indeed a basic question but I think it is a very valid one. I am an electrical engineer and agree that it seems that the logic is broken but read on and you'll see how easy it is.



                            As it was answered before, electronic logic gates are named for its voltage behavior, but that's the easy part. Whenever both SW1 and SW2 are pressed (i.e. its value is "1"), the voltage in the point Q is "0". We can translate it to using logic gate symbols.





                            schematic





                            simulate this circuit – Schematic created using CircuitLab



                            The voltage at Q (i.e. Q to GND) is *Logic 0" when both buttons are pressed.



                            Now comes the not complicated but rather confusing part. Suppose you have the following circuit:





                            schematic





                            simulate this circuit



                            I'm sure you will say that's definitively an AND. But let's keep in mind the fact that the point Q voltage drops to 0 when both buttons are pressed and let's translate the circuit to using logic gates.





                            schematic





                            simulate this circuit



                            Now, you will see that the relay will turn on only when the point Q voltage drops to zero (i.e. when both buttons are pressed.) So, think it this way; if you were going to do your own physical implementation of this circuit with logic gates, you would have to buy a NAND. Now you have a Wired AND despite the fact that you are actually using a NAND gate. So don't worry, your computational logic is safe.






                            share|improve this answer









                            $endgroup$



                            It is indeed a basic question but I think it is a very valid one. I am an electrical engineer and agree that it seems that the logic is broken but read on and you'll see how easy it is.



                            As it was answered before, electronic logic gates are named for its voltage behavior, but that's the easy part. Whenever both SW1 and SW2 are pressed (i.e. its value is "1"), the voltage in the point Q is "0". We can translate it to using logic gate symbols.





                            schematic





                            simulate this circuit – Schematic created using CircuitLab



                            The voltage at Q (i.e. Q to GND) is *Logic 0" when both buttons are pressed.



                            Now comes the not complicated but rather confusing part. Suppose you have the following circuit:





                            schematic





                            simulate this circuit



                            I'm sure you will say that's definitively an AND. But let's keep in mind the fact that the point Q voltage drops to 0 when both buttons are pressed and let's translate the circuit to using logic gates.





                            schematic





                            simulate this circuit



                            Now, you will see that the relay will turn on only when the point Q voltage drops to zero (i.e. when both buttons are pressed.) So, think it this way; if you were going to do your own physical implementation of this circuit with logic gates, you would have to buy a NAND. Now you have a Wired AND despite the fact that you are actually using a NAND gate. So don't worry, your computational logic is safe.







                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered Apr 30 at 11:11









                            KraussKrauss

                            268111




                            268111





















                                0












                                $begingroup$

                                I found very useful the simple description of a NAND gate to act thusly
                                "any zero in causes a one out". This circuit will do that.



                                In this circuit, if either switch is pressed, which causes a ZERO volts input to the inverter, then a logic HIGH appears out of the circuit.



                                Note we mixed logic 1 and logic HIGH and VDD and TRUE, along with logic 0 and FALSE and GROUND and logic LOW.





                                schematic





                                simulate this circuit – Schematic created using CircuitLab






                                share|improve this answer











                                $endgroup$








                                • 2




                                  $begingroup$
                                  Looks like an 'OR' gate to me... but maybe I just don't understand how you intend for those switches to work (that's a problem with your answer -- you didn't even try to describe their behavior)
                                  $endgroup$
                                  – Ben Voigt
                                  Apr 30 at 3:18















                                0












                                $begingroup$

                                I found very useful the simple description of a NAND gate to act thusly
                                "any zero in causes a one out". This circuit will do that.



                                In this circuit, if either switch is pressed, which causes a ZERO volts input to the inverter, then a logic HIGH appears out of the circuit.



                                Note we mixed logic 1 and logic HIGH and VDD and TRUE, along with logic 0 and FALSE and GROUND and logic LOW.





                                schematic





                                simulate this circuit – Schematic created using CircuitLab






                                share|improve this answer











                                $endgroup$








                                • 2




                                  $begingroup$
                                  Looks like an 'OR' gate to me... but maybe I just don't understand how you intend for those switches to work (that's a problem with your answer -- you didn't even try to describe their behavior)
                                  $endgroup$
                                  – Ben Voigt
                                  Apr 30 at 3:18













                                0












                                0








                                0





                                $begingroup$

                                I found very useful the simple description of a NAND gate to act thusly
                                "any zero in causes a one out". This circuit will do that.



                                In this circuit, if either switch is pressed, which causes a ZERO volts input to the inverter, then a logic HIGH appears out of the circuit.



                                Note we mixed logic 1 and logic HIGH and VDD and TRUE, along with logic 0 and FALSE and GROUND and logic LOW.





                                schematic





                                simulate this circuit – Schematic created using CircuitLab






                                share|improve this answer











                                $endgroup$



                                I found very useful the simple description of a NAND gate to act thusly
                                "any zero in causes a one out". This circuit will do that.



                                In this circuit, if either switch is pressed, which causes a ZERO volts input to the inverter, then a logic HIGH appears out of the circuit.



                                Note we mixed logic 1 and logic HIGH and VDD and TRUE, along with logic 0 and FALSE and GROUND and logic LOW.





                                schematic





                                simulate this circuit – Schematic created using CircuitLab







                                share|improve this answer














                                share|improve this answer



                                share|improve this answer








                                edited Apr 30 at 13:13

























                                answered Apr 30 at 2:26









                                analogsystemsrfanalogsystemsrf

                                16.7k2823




                                16.7k2823







                                • 2




                                  $begingroup$
                                  Looks like an 'OR' gate to me... but maybe I just don't understand how you intend for those switches to work (that's a problem with your answer -- you didn't even try to describe their behavior)
                                  $endgroup$
                                  – Ben Voigt
                                  Apr 30 at 3:18












                                • 2




                                  $begingroup$
                                  Looks like an 'OR' gate to me... but maybe I just don't understand how you intend for those switches to work (that's a problem with your answer -- you didn't even try to describe their behavior)
                                  $endgroup$
                                  – Ben Voigt
                                  Apr 30 at 3:18







                                2




                                2




                                $begingroup$
                                Looks like an 'OR' gate to me... but maybe I just don't understand how you intend for those switches to work (that's a problem with your answer -- you didn't even try to describe their behavior)
                                $endgroup$
                                – Ben Voigt
                                Apr 30 at 3:18




                                $begingroup$
                                Looks like an 'OR' gate to me... but maybe I just don't understand how you intend for those switches to work (that's a problem with your answer -- you didn't even try to describe their behavior)
                                $endgroup$
                                – Ben Voigt
                                Apr 30 at 3:18

















                                draft saved

                                draft discarded
















































                                Thanks for contributing an answer to Electrical Engineering Stack Exchange!


                                • Please be sure to answer the question. Provide details and share your research!

                                But avoid


                                • Asking for help, clarification, or responding to other answers.

                                • Making statements based on opinion; back them up with references or personal experience.

                                Use MathJax to format equations. MathJax reference.


                                To learn more, see our tips on writing great answers.




                                draft saved


                                draft discarded














                                StackExchange.ready(
                                function ()
                                StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2felectronics.stackexchange.com%2fquestions%2f436144%2fhow-does-a-nand-gate-work-very-basic-question%23new-answer', 'question_page');

                                );

                                Post as a guest















                                Required, but never shown





















































                                Required, but never shown














                                Required, but never shown












                                Required, but never shown







                                Required, but never shown

































                                Required, but never shown














                                Required, but never shown












                                Required, but never shown







                                Required, but never shown







                                Popular posts from this blog

                                Club Baloncesto Breogán Índice Historia | Pavillón | Nome | O Breogán na cultura popular | Xogadores | Adestradores | Presidentes | Palmarés | Historial | Líderes | Notas | Véxase tamén | Menú de navegacióncbbreogan.galCadroGuía oficial da ACB 2009-10, páxina 201Guía oficial ACB 1992, páxina 183. Editorial DB.É de 6.500 espectadores sentados axeitándose á última normativa"Estudiantes Junior, entre as mellores canteiras"o orixinalHemeroteca El Mundo Deportivo, 16 setembro de 1970, páxina 12Historia do BreogánAlfredo Pérez, o último canoneiroHistoria C.B. BreogánHemeroteca de El Mundo DeportivoJimmy Wright, norteamericano do Breogán deixará Lugo por ameazas de morteResultados de Breogán en 1986-87Resultados de Breogán en 1990-91Ficha de Velimir Perasović en acb.comResultados de Breogán en 1994-95Breogán arrasa al Barça. "El Mundo Deportivo", 27 de setembro de 1999, páxina 58CB Breogán - FC BarcelonaA FEB invita a participar nunha nova Liga EuropeaCharlie Bell na prensa estatalMáximos anotadores 2005Tempada 2005-06 : Tódolos Xogadores da Xornada""Non quero pensar nunha man negra, mais pregúntome que está a pasar""o orixinalRaúl López, orgulloso dos xogadores, presume da boa saúde económica do BreogánJulio González confirma que cesa como presidente del BreogánHomenaxe a Lisardo GómezA tempada do rexurdimento celesteEntrevista a Lisardo GómezEl COB dinamita el Pazo para forzar el quinto (69-73)Cafés Candelas, patrocinador del CB Breogán"Suso Lázare, novo presidente do Breogán"o orixinalCafés Candelas Breogán firma el mayor triunfo de la historiaEl Breogán realizará 17 homenajes por su cincuenta aniversario"O Breogán honra ao seu fundador e primeiro presidente"o orixinalMiguel Giao recibiu a homenaxe do PazoHomenaxe aos primeiros gladiadores celestesO home que nos amosa como ver o Breo co corazónTita Franco será homenaxeada polos #50anosdeBreoJulio Vila recibirá unha homenaxe in memoriam polos #50anosdeBreo"O Breogán homenaxeará aos seus aboados máis veteráns"Pechada ovación a «Capi» Sanmartín e Ricardo «Corazón de González»Homenaxe por décadas de informaciónPaco García volve ao Pazo con motivo do 50 aniversario"Resultados y clasificaciones""O Cafés Candelas Breogán, campión da Copa Princesa""O Cafés Candelas Breogán, equipo ACB"C.B. Breogán"Proxecto social"o orixinal"Centros asociados"o orixinalFicha en imdb.comMario Camus trata la recuperación del amor en 'La vieja música', su última película"Páxina web oficial""Club Baloncesto Breogán""C. B. Breogán S.A.D."eehttp://www.fegaba.com

                                Vilaño, A Laracha Índice Patrimonio | Lugares e parroquias | Véxase tamén | Menú de navegación43°14′52″N 8°36′03″O / 43.24775, -8.60070

                                Cegueira Índice Epidemioloxía | Deficiencia visual | Tipos de cegueira | Principais causas de cegueira | Tratamento | Técnicas de adaptación e axudas | Vida dos cegos | Primeiros auxilios | Crenzas respecto das persoas cegas | Crenzas das persoas cegas | O neno deficiente visual | Aspectos psicolóxicos da cegueira | Notas | Véxase tamén | Menú de navegación54.054.154.436928256blindnessDicionario da Real Academia GalegaPortal das Palabras"International Standards: Visual Standards — Aspects and Ranges of Vision Loss with Emphasis on Population Surveys.""Visual impairment and blindness""Presentan un plan para previr a cegueira"o orixinalACCDV Associació Catalana de Cecs i Disminuïts Visuals - PMFTrachoma"Effect of gene therapy on visual function in Leber's congenital amaurosis"1844137110.1056/NEJMoa0802268Cans guía - os mellores amigos dos cegosArquivadoEscola de cans guía para cegos en Mortágua, PortugalArquivado"Tecnología para ciegos y deficientes visuales. Recopilación de recursos gratuitos en la Red""Colorino""‘COL.diesis’, escuchar los sonidos del color""COL.diesis: Transforming Colour into Melody and Implementing the Result in a Colour Sensor Device"o orixinal"Sistema de desarrollo de sinestesia color-sonido para invidentes utilizando un protocolo de audio""Enseñanza táctil - geometría y color. Juegos didácticos para niños ciegos y videntes""Sistema Constanz"L'ocupació laboral dels cecs a l'Estat espanyol està pràcticament equiparada a la de les persones amb visió, entrevista amb Pedro ZuritaONCE (Organización Nacional de Cegos de España)Prevención da cegueiraDescrición de deficiencias visuais (Disc@pnet)Braillín, un boneco atractivo para calquera neno, con ou sen discapacidade, que permite familiarizarse co sistema de escritura e lectura brailleAxudas Técnicas36838ID00897494007150-90057129528256DOID:1432HP:0000618D001766C10.597.751.941.162C97109C0155020