29
\$\begingroup\$

I know that a NOT gate always inverts its input.

When the input is "ON" I can imagine the gate stopping the flow of current.

But how does the gate generates flow of current when the input is OFF?

Please could you explain how this happens as simply as possible, I'm new to electronics ;)

\$\endgroup\$
4
  • 12
    \$\begingroup\$ The gate always stops the flow of current, whether the input is LOW or HIGH. The gate measures voltage, not current. Likewise, the output can drive a small amount of current, whether H or L. \$\endgroup\$
    – endolith
    Commented Aug 17, 2015 at 17:59
  • \$\begingroup\$ To oversimplify at the possible risk of being slightly erroneous: When the input is OFF, the gate doesn't stop the flow of current, so the output is ON. When the input is ON, the gate stops the flow of current, so the output is OFF. \$\endgroup\$ Commented Aug 17, 2015 at 21:28
  • 1
    \$\begingroup\$ Nice intuition check! I remember wondering the same thing earlier in my EE career. It didn't help that I was book-focused, rather than hands-on, and many schematics elect to omit drawing the Vcc and Gnd lines on Not gates... \$\endgroup\$
    – Cort Ammon
    Commented Aug 17, 2015 at 21:29
  • \$\begingroup\$ It doesn't. Gates are an abstraction for actual circuits, where we only draw the really important bits (and not pesky annoying things like power supplies) \$\endgroup\$ Commented Aug 17, 2015 at 23:57

2 Answers 2

37
\$\begingroup\$

Logical gates are electronic circuits having their power supplies in addition to the logical IO. If you look at the ICs implementing the NOT gate, you will notice Vcc and GND pins for that purpose. On logical diagram you are not usually seeing them, because they are unnecessary for the logical description.

\$\endgroup\$
2
  • \$\begingroup\$ So if there are multiple NOT gates in a circuit, should each of them to be powered independently? \$\endgroup\$
    – The King
    Commented Aug 17, 2015 at 16:55
  • 10
    \$\begingroup\$ They can share the same Vcc and Gnd, of course. Again, if you look at some of the ICs, you will see there are several gates packed in one chip with singe power supply. \$\endgroup\$
    – Eugene Sh.
    Commented Aug 17, 2015 at 16:56
58
\$\begingroup\$

The gate does not generate power. This is how a NOT gate might look inside (from Wikipedia):

enter image description here

When A = 0 (an off input), the transistor on the top conducts and the bottom transistor doesn't, thus Q will be approximatelly Vdd (used Falstad's circuit simulator to get this image and the next one).

enter image description here

The opposite is true, when A = 1, the transistor on the bottom conducts and the transistor on the top doesn't, giving Q = Vss.

enter image description here

\$\endgroup\$
1
  • 10
    \$\begingroup\$ IMHO this is a much better answer. On logic and other diagrams, the component level view is not important, so we don't worry about VCC or GND or completing the circuit. We don't care how a NOT gate or an AND gate is implemented, and IIRC there are multiple ways to implement them on a transistor level. \$\endgroup\$
    – jfa
    Commented Aug 17, 2015 at 21:30

Not the answer you're looking for? Browse other questions tagged or ask your own question.