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

                                Wikipedia:Vital articles Мазмуну Biography - Өмүр баян Philosophy and psychology - Философия жана психология Religion - Дин Social sciences - Коомдук илимдер Language and literature - Тил жана адабият Science - Илим Technology - Технология Arts and recreation - Искусство жана эс алуу History and geography - Тарых жана география Навигация менюсу

                                Bruxelas-Capital Índice Historia | Composición | Situación lingüística | Clima | Cidades irmandadas | Notas | Véxase tamén | Menú de navegacióneO uso das linguas en Bruxelas e a situación do neerlandés"Rexión de Bruxelas Capital"o orixinalSitio da rexiónPáxina de Bruselas no sitio da Oficina de Promoción Turística de Valonia e BruxelasMapa Interactivo da Rexión de Bruxelas-CapitaleeWorldCat332144929079854441105155190212ID28008674080552-90000 0001 0666 3698n94104302ID540940339365017018237

                                What should I write in an apology letter, since I have decided not to join a company after accepting an offer letterShould I keep looking after accepting a job offer?What should I do when I've been verbally told I would get an offer letter, but still haven't gotten one after 4 weeks?Do I accept an offer from a company that I am not likely to join?New job hasn't confirmed starting date and I want to give current employer as much notice as possibleHow should I address my manager in my resignation letter?HR delayed background verification, now jobless as resignedNo email communication after accepting a formal written offer. How should I phrase the call?What should I do if after receiving a verbal offer letter I am informed that my written job offer is put on hold due to some internal issues?Should I inform the current employer that I am about to resign within 1-2 weeks since I have signed the offer letter and waiting for visa?What company will do, if I send their offer letter to another company